[R] R CMD BATCH question under Ubuntu 9.04
David Winsemius
dwinsemius at comcast.net
Tue Aug 18 21:06:56 CEST 2009
On Aug 18, 2009, at 1:54 PM, julien cuisinier wrote:
>
> Dear list,
>
>
> I could not find a mailing list of R under ubuntu, so I give it a
> try here...any direction/suggestion welcome
I am under the impression that the Ubuntu's are Debian ports:
https://stat.ethz.ch/mailman/listinfo/r-sig-debian
... and sorry, I don't know the answer to the rest of you question.
>
>
> I run R 2.8.1 under Ubuntu 9.04
>
>> From the terminal I am able to run a R CMD BATCH command when I am
>> on my home folder /home/user
> jc at jc-laptop:~$ R CMD BATCH /var/www/test.R
>
> The file "test.R" contains simply:
> a <- 1
> write.csv(a,"/var/www/test.csv")
>
> BUT if I change the directory in the terminal, the same command "R
> CMD BATCH /var/www/test.R" does not function & gives me the
> following message:
>
> e.g.:
> jc at jc-laptop:~/var/www$ R CMD BATCH /var/www/test.R
> bash: R CMD BATCH /var/www/test.R: No such file or directory
>
> I am not sure how this possible...any idea?
>
> for the background, I try to run this command from php through exec
> function...hence I start from the folder /var/www...
>
David Winsemius, MD
Heritage Laboratories
West Hartford, CT
More information about the R-help
mailing list