
BarryHall
Novice
Jun 18, 2010, 5:01 PM
Post #7 of 11
(860 views)
|
|
Re: [FishMonger] Calling the program "R" from within a perl script fails in Windows
[In reply to]
|
Can't Post
|
|
Many thanks. I modified the code to read my $R = "C:\\Program Files\\R\\R-2.11.1\\bin\\R"; my @args = ("$R","--vanilla", "--quiet", "--file=Rblock"); It now works just fine. The only issue is that other users may install different versions of R or install it elsewhere. I think I will need to have my perl script search for the location of R.exe, use getcwd() to get the path to that folder, then use that to set the value of $R.
|