Johannes Graumann
2013-Jan-30 06:02 UTC
[R] R CMD check: Error in get("ptime", pos = "CheckExEnv") ...
Hi, Does anyboody have insight into what this error terminating "R CMD check" on an in-house package may imply?> ### > 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
Prof Brian Ripley
2013-Jan-30 06:13 UTC
[R] R CMD check: Error in get("ptime", pos = "CheckExEnv") ...
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.> >> ### >> 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. >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595