[R] Error in saveLog(currentLogFileName

David Winsemius dwinsemius at comcast.net
Thu Apr 9 19:17:15 CEST 2009


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 at 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




More information about the R-help mailing list