You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just discovered the great feature of covr (Coverage of Examples). However, I can not get my examples running with covr
Although all of them run with devtools::run_examples or devtools::check. R CMD check etc I cant get them running with :
package_coverage( type="example" )
The error is always:
could not find function "xyz"
in the code generated from the examples of the exported function xyz
Which seems that the package isn't loaded.
I would be happy to debug the problem more closely however, the directory containing the file package-Ex.Rout.fail
is deleted after covr::package_coverage.
Error: Failure in C:/Users/wolski/AppData/Local/Temp/Rtmp2xqd5e/R_LIBS52c0555e627/LFQService/LFQService-Ex.Rout.fail
The text was updated successfully, but these errors were encountered:
Thanks, But can't get package_coverage( type="example" )
Still same problem "could not find function xyz" all over the place.
Only way to get it working is to call
library(abc) at the beginning of each example and then in addition reference all methods within functions expclicitely with abc::xyz.
It is as if all all import and importFrom directives are complete ignored.
Just discovered the great feature of
covr
(Coverage of Examples). However, I can not get my examples running withcovr
Although all of them run with devtools::run_examples or devtools::check. R CMD check etc I cant get them running with :
package_coverage( type="example" )
The error is always:
could not find function "xyz"
in the code generated from the examples of the exported function xyz
Which seems that the package isn't loaded.
I would be happy to debug the problem more closely however, the directory containing the file package-Ex.Rout.fail
is deleted after covr::package_coverage.
Error: Failure in
C:/Users/wolski/AppData/Local/Temp/Rtmp2xqd5e/R_LIBS52c0555e627/LFQService/LFQService-Ex.Rout.fail
The text was updated successfully, but these errors were encountered: