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 -

jQuery Mobile app not scrolling in Firefox -

How to use vim as editor in Matlab GUI -