What is the best way (if possible) to pass the name of a workspace file to R when it starts so it is loaded instead of .RData ? I would like to know this for Linux and windows version. For windows I would like to associate the .RData extension so doubleclicking the file starts R and loads it. Thanks -- Victor Moreno V.Moreno at ico.scs.es Servei d'Epidemiologia i Registre del Cancer http://lbe.uab.es Institut Catala d'Oncologia tel +34 932607401 Gran Via km 2.7, 08907 Hospitalet, Barcelona, Spain -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Thu, 10 May 2001, Victor Moreno wrote:> What is the best way (if possible) to pass the name of a workspace file to R > when it starts so it is loaded instead of .RData ?Why do you want to do that? R loads the .Rdata in the working directory, the directory from which it is started, so just cd and then launch R.> I would like to know this for Linux and windows version. For windows I would > like to associate the .RData extension so doubleclicking the file starts R > and loads it.Then please submit a patch for that. (You could probably do this via a .bat file.) Drag-and-drop to a Desktop icon might be nice while you are at it, too. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Victor Moreno wrote:> > What is the best way (if possible) to pass the name of a workspace file to R > when it starts so it is loaded instead of .RData ? > > I would like to know this for Linux and windows version. For windows I would > like to associate the .RData extension so doubleclicking the file starts R > and loads it. >Hi! I needed different .RData files for different computers linked via nfs in order not to overwrite configurations. I did the following: ".First" <- function () { image <- paste(".RData.",Sys.getenv("HOSTNAME"),sep="") print("restoring session <",image,"> ...") load(image,globalenv()) if (interactive()) options(error=quote(dump.frames())) else options(error=quote({dump.frames(to.file=TRUE); q()})) options(warn=1) gc() } marcusE -- +------------------------------------------------------- | Marcus Eger | Philipps Universitaet Marburg | Fachbereich Physik AG Neurophysik | Renthof 7 | 35032 Marburg | Tel. ++49 +6421 282-4169 | Fax ++49 +6421 282-7034 +-------- ><> ------------------------------------------- | E-Mail: eger.m at gmx.de (NEW) | marcus.eger at physik.uni-marburg.de (OLD) | WWW: http://neuro.physik.uni-marburg.de/~eger (NEW) +-------------------------------------------------------- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Prof Brian Ripley wrote:> > On Thu, 10 May 2001, Marcus Eger wrote: > > I needed different .RData files for different computers linked via nfs > > in > > order not to overwrite configurations. I did the following: > > Why? > > Unless you don't have XDR on one of your systems, the same workspace > should work everywhere (and that includes Windows and Mac). I share > workspaces between Solaris, i686 Linux and Windows all the time.If you run several programs in parallel on many different machines with one home directory it might be very useful. marcusE -- +------------------------------------------------------- | Marcus Eger | Philipps Universitaet Marburg | Fachbereich Physik AG Neurophysik | Renthof 7 | 35032 Marburg | Tel. ++49 +6421 282-4169 | Fax ++49 +6421 282-7034 +-------- ><> ------------------------------------------- | E-Mail: eger.m at gmx.de (NEW) | marcus.eger at physik.uni-marburg.de (OLD) | WWW: http://neuro.physik.uni-marburg.de/~eger (NEW) +-------------------------------------------------------- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Victor Moreno wrote:> What is the best way (if possible) to pass the name of a workspacefile to R? If what you want to do is to load functions that have been saved in another workspace, there is a Q&D workaround for this in "Kickstarting R", a new version of which should be appearing as soon as I get to work. http://cran.r-projects.org and look in Contributed - Documentation Jim -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Seemingly Similar Threads
- using browser() in complex programs - where am I?
- segmentation faults when unused argument
- still problem with installation of locfit on DEC alphaev56-dec-osf4.0d
- POLYGON: fill pattern instead of colors?
- Problem with R INSTALL locfit on DEC alphaev56-dec-osf4.0d