Hi All, I have recently created an Rcmdr plugin package and it passed all the checks and was uploaded to CRAN. I then downloaded it from CRAN and tried running it from my local R program and received this error:
... Error in f(libname, pkgname) : could not find function "getRcmdr" Error in library(pkg, character.only = TRUE) : .First.lib failed for 'RcmdrPlugin.MAc' In my .R file with all the relevant functions that are read into the package, I have placed this at the top, which seems to be related to one of the sources of error (?): .packageName <- "RcmdrPlugin.MAc" .First.lib <- function(libname, pkgname){ if (!interactive()) return() Rcmdr <- options()$Rcmdr plugins <- Rcmdr$plugins if ((!pkgname %in% plugins) && !getRcmdr("autoRestart")) { Rcmdr$plugins <- c(plugins, pkgname) options(Rcmdr=Rcmdr) closeCommander(ask=FALSE, ask.save=TRUE) Commander() } } I am not exactly sure how to proceed--I appreciate any suggestions. AC ______________________________________________ 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.