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
Post a Comment