Pass file name to perl from R -


i want pass file name perl r. example, system command r execute perl works well

system("perl file.pl name.txt") 

name.txt existing in r working directory. now,

a<-"name.txt" 

how pass perl?

if understand correctly think may work:

a <- "name.txt" system(sprintf("perl file.pl %s", a)) 

Comments

Popular posts from this blog

c++ - How to add Crypto++ library to Qt project -

c++ - Serialize a class with a Qlist of custom classes as member (using QDataStream) -

Read video using VideoReader function in Matlab? -