Dear all,
thanks for your help which solves the problem!
However, I would like to remark that I find the R CMD BATCH command options
inconsistent and incomplete, since the .RData path and file name is not
(always) the same as the R script and there is no easy control over the
The root directory or script
file name should be given only in one place (the R CMD BATCH
command argument) and the other file names should be derived from it.
Why?
I can think of lots of instances where it would be very unwise to assume that
data files would be in the same directory
Dear all,
I would like to fully document an analysis in R including script, output and
workspace data. To do this I currently run under Linux
$ R CMD BATCH myscript.R
This command combines and saves only the script commands and the output
./myscript.Rout. To save the
Hi Will,
I think that save.image() is the way to go. Regarding the directory,
its possible to pass arguments to an R script from the command line,
or as long as the R script is in the directory you want the image
saved in, just save it to the current working directory.
Cheers,
Josh
On Thu,
On 04/04/2013 10:18 AM, will.ea...@gmx.net wrote:
Dear all,
I would like to fully document an analysis in R including script, output and
workspace data. To do this I currently run under Linux
$ R CMD BATCH myscript.R
This command combines and saves only the script commands
5 matches
Mail list logo