syrvn <[email protected]> writes:

> If I store the path in a variable/object and call the perl script again it
> does not run and I don't know how to overcome that issue.
>
> p1 <- "../path1"
> p2 <- "../path2"
> p3 <- "../path3"
>
> system("perl p1 p2 p3")

You want something like:

  system(paste("perl", p1, p2, p3"))

Strings don't do interpolation by themselves; you need to tell R, via
the "paste" function, that you want to concatenate the strings together.

-Johann

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to