R CMD check: Error in get("ptime", pos = "CheckExEnv") ...
Prof Brian Ripley wrote:
On 30/01/2013 06:02, Johannes Graumann wrote:
Hi, Does anyboody have insight into what this error terminating "R CMD check" on an in-house package may imply?
You have re-defined cat(), so I guess you re-defined get() too.
Aha! "cat" not, but one of my functions contains indeed
#' @method get rcfpdsuperclass
setGeneric("get", function(object, slot) standardGeneric("get"))
setMethod(
"get",
signature = signature(object = "rcfpdsuperclass",slot="character"),
definition=function(object,slot){
result <- slot(object,slot)
if(inherits(x=result,what="RcfpdStoredObject")){
return(evalObject(result))
} else {
return(result)
}
})
How does one prevent interference like the one I see. Is the only way to re- name the "Get"? Thanks for any hints. Sincerely, Joh
###
cat("Time elapsed: ", proc.time() - get("ptime", pos =
'CheckExEnv'),"\n")
Error in get("ptime", pos = "CheckExEnv") :
unused argument(s) (pos = "CheckExEnv")
Calls: cat -> cat.default -> <Anonymous> -> get
Execution halted
It happens in the "* checking examples ... ERROR" section, yet the
example code in the file cited as the most likely source works just fine
when executed manually ...
thanks for any hint.
Sincerely, Joh
______________________________________________ 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.