search for: loadnew

Displaying 4 results from an estimated 4 matches for "loadnew".

Did you mean: loaded
2004 Sep 24
5
using tcltk in R under ESS/XEmacs on Windows
Sorry for the cross-post. Not sure where the problem is... A while back I posted an R function to R-help: cd <- function (dir = tclvalue(tkchooseDirectory()), saveOld = FALSE, loadNew = TRUE) { stopifnot(require(tcltk)) if (saveOld) save.image(compress = TRUE) setwd(dir) rm(list = ls(all = TRUE, envir = .GlobalEnv), envir = .GlobalEnv) if (loadNew && file.exists(".RData")) { loaded <- load(".RData", envir = .Glo...
2005 Sep 25
0
Tip: Working directory in titlebar
...rgui.exe under Windows and with RECENT versions of R only. ----- For changing directories during a session, I use the following function, a slight modification of Andy Liaw's cd() function that also changes the titlebar: cd <- function(dir = tclvalue(tkchooseDirectory()), saveOld=NA, loadNew=TRUE) { # From Andy Liaw ... additions by MHP # Change the working directory during an R session # # First check that the tcl-tk package is available: stopifnot(require(tcltk)) # Print any error message from trying to load: if (.Platform$OS.type=="windows") fl...
2004 Jul 15
3
More on global environment
To follow up on my previous question, suppose a user R session wants to unload one workspace and load another within an R session. Is the following the correct sequence? 1. save.image() to save the current workspace as .Rdata in the current working directory. 2. rm(list=ls()) to remove everything from the workspace. 3. setcwd("xxx") to set the new working directory. 4.
2004 Feb 10
3
how to get the GUI directory chooser on Windows?
Dear R-help, Can anyone tell me if it's possible to call up the "directory chooser" (the one you get when you click on "File" -> "Change Dir...") in Rgui from the R command line? Seems like file.choose() can't be used to choose a directory. This is in R-1.8.1 on WinXPPro. Any help much appreciated! Andy