http://www.perlmonks.org?node_id=443066


in reply to Perl & R ?

You might be able to use a separate file, say sourcelist.R, to contain the source("commands.R") command, then do the following:

system("R < sourcelist.R");

Good luck!