Displaying 2 results from an estimated 2 matches for "assoctestregress".
2012 Jan 10
1
importing S3 methods with importFrom
...rom lmtest, I tried to use importFrom in my NAMESPACE:
importFrom(lmtest, lrtest)
However, this fails R CMD check in the examples:
Error in UseMethod("lrtest") :
no applicable method for 'lrtest' applied to an object of class
"c('glm', 'lm')"
Calls: assocTestRegression ... append -> RunRegression -> append ->
unlist -> lrtest
Relevant line of code in assocTestRegression is
tmp <- append(tmp, unlist(lrtest(mod, mod0))[c(8,10)])
where mod and mod0 are both results of the glm() function.
If I instead import the entire package in my NAMESPACE:
i...
2011 Sep 19
1
"could not find function" after import
...heck on my package, I get the following error during
checking of examples:
* using R Under development (unstable) (2011-08-29 r56828)
* using platform: x86_64-apple-darwin9.8.0 (64-bit)
...
* checking examples ... ERROR
...
Error in estfun.glm(x) : could not find function "is.zoo"
Calls: assocTestRegression ... meatHC -> rowMeans -> is.data.frame ->
estfun -> estfun.glm
I import sandwich, sandwich depends on zoo, but a function in zoo cannot
be found during execution.
I tried to get around this by explicitly including a "require" statement
in assocTestRegression:
require(...