Hi,

I'm trying to run an R script from the command line and I do it in the 
following way:

R CMD BATCH -q <something.R> <output file>*

*I write the R script from inside a Perl program (on UNIX of course!) 
and execute the shell command using the function "system".**What 
intrigues me is the strange error that I see in the output file:

Error: embedded nul in string: '\0'
Execution halted

When I copy and paste the commands manually in the R command prompt, I 
get exactly what I expect to get. I've never come across this error 
before. I did some brief searches on the net but cannot find any 
comprehensive on how this problem can be fixed. I would appreciate some 
help in the matter.

As a general question, are there any mature Perl modules that help one 
interface R with Perl without having to resort to more cumbersome 
methods such as using system calls from within?

Many thanks.

Abhi

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org 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