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
j...@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.:
j...@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

______________________________________________
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