Displaying 1 result from an estimated 1 matches for "methodstest".
Did you mean:
methodslist
2014 Feb 11
2
$new cannot be accessed when running from Rscript and methods package is not loaded
...uot; methods and imports either the setRefClass function
(scenario "import-setRefClass") or the whole package (scenario
"import-methods")
It succeeds if the newTest function calls require(methods) (scenario
"require").
The script at
https://raw2.github.com/krlmlr/methodsTest/master/test-all.sh creates an
empty user library in subdirectory r-lib of the current directory,
installs devtools, and tests the four scenarios by repeatedly installing
the corresponding version of the package and trying to execute newTest()
from Rscript. I have attached the output. The packag...