Displaying 1 result from an estimated 1 matches for "enery".
Did you mean:
energy
2007 Apr 17
1
Runing R in a bash script
...script is executed from cron.
I can generate a pdf file, but when I try to write to a png, the file is
created, but nothing is written. If I execute the bash script from my
console, everything works file. Any ideas?
In my cron I have SHELL=/bin/bash - otherwise /bin/shell is used and the
folowing enery, so example is executed every minute
* * * * * [path]/example.sh
I am running
R version 2.4.1 (2006-12-18)
Here's a minimal example - two files one R-script ('example.r') and one
bash-script ('example.sh')
example.r
# Example R-script
x <- c(1:10)
y <- x^2
png(file=&quo...