David, thank you for your helpful reply. a) The sessionInfo goof is actually kind of enlightening. I'm assuming that the purpose of adding the "()" symbols is to tell R that sessionInfo is a function to be invoked, and leaving "()" empty says to use default arguments?
b) In the R GUI, I end my session by using the menu File > Exit. A dialog appears, asking, "Save workspace image?", and I choose Yes. In fact, I just did it and got a message, never seen this one before "Console not found. Error in structure(.External"dotTclObjv:,objv, PACKAGE - "tcltk"), class = "tclObj"):[tcl]invalid command name ".6.1". Closed that message, another similar message was behind it, but now the command name was "17.1" c) yes, agreed --- John Fox has been helpful to me a couple of times. I like the R Commander (it automatically adds those pesky details like () that elude me), but I can't go the CRAN to get packages from it, so I end up back at the GUI to install a package. John has told me that moving back and forth between the GUI and Commander is not how Commander was intended to be used. Perhaps this practice has led to some of the present confusions. Let's say I save a script or history or similar file that I would like to recall at a later time, If I save the file using RCommander, should I only open the file using R Commander? Ditto for R GUI? Regardless of which platform I'm saving the files with, they seem to have some of the same extensions, ".R", ".r", ".Rdata", etc. Thanks, Paul Paul Prew | Statistician 651-795-5942 | fax 651-204-7504 Ecolab Research Center | Mail Stop ESC-F4412-A 655 Lone Oak Drive | Eagan, MN 55121-1560 -----Original Message----- From: David Winsemius [mailto:dwinsem...@comcast.net] Sent: Thursday, April 09, 2009 12:17 PM To: Prew, Paul Cc: r-help@r-project.org Subject: Re: [R] Error in saveLog(currentLogFileName This is just two suggestions and a guess. a) When you desire the information from sessionInfo ,you need to type : sessionInfo() # not sessionInfo ... results come from function calls and all you got was the sessionInfo code produced by the implicit print function to which you gave the argument sessionInfo. b) Tell us exactly the methods you used to save "my script", "my workspace", "etc"? c) As a guess, you had the Zelig package loaded under R-Commander yesterday but not today. The right person to ask this question of might be one of those package maintainers. (John Fox is very good about supporting R-Commander.) On Apr 9, 2009, at 12:18 PM, Prew, Paul wrote: > Hello, very basic question from a user who is baffled by the > workings of computers in general > > When logging off R, a dialog box asked if I wanted to save my log, > I chose yes. Then I noticed that the following message appeared in > the Command Window > > Error in saveLog(currentLogFileName) : > unused argument(s) ("C:/Documents and Settings/prewpj/My Documents/ > Data/Analyses/Healthcare/Hand Care Panel Test_KMolinaro/ > soapfeel_ZeligMixedLogit.R") > > My attempts to find the parameters that saveLog requires haven’t > been successful, so I’m wondering if someone on this list could > advise me. Yesterday, I saved several files: my script, my > workspace, etc. to the above filepath, but today they are not > there. A Windows search of my C:drive using the names of the files > came up empty. They didn’t show up when I listed the objects from > the default R directory, either --- ls() command didn’t list > yesterday’s files. > > Further, the sessionInfo output is like nothing I’ve seen before. > Typically, it starts out with > “R version 2.8.1 (2008-12-22) > i386-pc-mingw32 > … > > Thank you, Paul > >> ?saveLog > No documentation for 'saveLog' in specified packages and libraries: > you could try '??saveLog' >> ??saveLog > No help files found with alias or concept or title matching 'saveLog' > using fuzzy matching. >> help.search(saveLog) > Error in help.search(saveLog) : object "saveLog" not found >> help.search("saveLog") > No help files found with alias or concept or title matching > 'saveLog' using fuzzy matching. > >> sessionInfo > function (package = NULL) > { > z <- list() > z$R.version <- R.Version() > z$locale <- Sys.getlocale() > if (is.null(package)) { > package <- grep("^package:", search(), value = TRUE) > keep <- sapply(package, function(x) x == "package:base" || > !is.null(attr(as.environment(x), "path"))) > package <- sub("^package:", "", package[keep]) > } > pkgDesc <- lapply(package, packageDescription) > if (length(package) == 0) > stop("no valid packages were specified") > basePkgs <- sapply(pkgDesc, function(x) !is.null(x$Priority) && > x$Priority == "base") > z$basePkgs <- package[basePkgs] > if (any(!basePkgs)) { > z$otherPkgs <- pkgDesc[!basePkgs] > names(z$otherPkgs) <- package[!basePkgs] > } > loadedOnly <- loadedNamespaces() > loadedOnly <- loadedOnly[!(loadedOnly %in% package)] > if (length(loadedOnly)) { > names(loadedOnly) <- loadedOnly > pkgDesc <- c(pkgDesc, lapply(loadedOnly, packageDescription)) > z$loadedOnly <- pkgDesc[loadedOnly] > } > class(z) <- "sessionInfo" > z > } > <environment: namespace:utils> > > Paul Prew ▪ Statistician > 651-795-5942 ▪ fax 651-204-7504 > Ecolab Research Center ▪ Mail Stop ESC-F4412-A > 655 Lone Oak Drive ▪ Eagan, MN 55121-1560 > > > > CONFIDENTIALITY NOTICE: > This e-mail communication and any attachments may contain > proprietary and privileged information for the use of the designated > recipients named above. > Any unauthorized review, use, disclosure or distribution is > prohibited. > If you are not the intended recipient, please contact the sender by > reply e-mail and destroy all copies of the original message. > > > [[alternative HTML version deleted]] > > ______________________________________________ > 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. David Winsemius, MD Heritage Laboratories West Hartford, CT CONFIDENTIALITY NOTICE: This e-mail communication and any attachments may contain proprietary and privileged information for the use of the designated recipients named above. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. ______________________________________________ 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.