Jaya has asked for the wisdom of the Perl Monks concerning the following question:
Now I like to call the R script from perl.
what i did is :to invoke R from perl
after which i need to run the R script file called "commands.R" from the R prompt. the command from R prompt issystem("R");
does anyone have an idea of how i should call this from my perl program to run in R prompt so that i can completely automate this call.source("commands.R")
i tried with
but this will not work for it will run this from command prompt, not from R prompt.system("source(\"commands.R\"));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl & R ?
by SciDude (Friar) on Mar 29, 2005 at 05:32 UTC | |
|
Re: Perl & R ?
by Errto (Vicar) on Mar 29, 2005 at 05:29 UTC | |
by Jaya (Acolyte) on Mar 29, 2005 at 06:14 UTC | |
by BUU (Prior) on Mar 29, 2005 at 06:43 UTC | |
by Jaya (Acolyte) on Mar 29, 2005 at 07:11 UTC | |
by Anonymous Monk on Mar 29, 2005 at 07:37 UTC | |
| |
|
Re: Perl & R ?
by tlm (Prior) on Mar 29, 2005 at 10:18 UTC | |
|
Re: Perl & R ?
by nerfherder (Monk) on Mar 29, 2005 at 08:14 UTC | |
|
Re: Perl & R ?
by Anonymous Monk on Mar 29, 2005 at 12:27 UTC | |
by ikegami (Patriarch) on Mar 29, 2005 at 15:52 UTC |