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
I have a package with no functions, only datasets. I have some regression tests but I think this doesn't matter because those tests don't map to any code in R.
covr::package_coverage() passes silently, as it has nothing really to report.
> covr::package_coverage()
>
I expected goodpractice::gp() to also pass, reporting whatever it has to say about my package, and maybe say nothing about my tests. Instead I get an error.
> goodpractice::gp() Preparing: covr Error in aggregate.data.frame(mf[1L], mf[-1L], FUN = FUN, ...) :
no rows to aggregate
>
One way I hacked this is by adding a toy function in R/, e.g.:
# R/toy.R
toy <- function() "A hack to https://github.com/MangoTheCat/goodpractice/issues/140"
And I now see the report. Here is an image:
The text was updated successfully, but these errors were encountered:
I have a package with no functions, only datasets. I have some regression tests but I think this doesn't matter because those tests don't map to any code in R.
covr::package_coverage()
passes silently, as it has nothing really to report.I expected
goodpractice::gp()
to also pass, reporting whatever it has to say about my package, and maybe say nothing about my tests. Instead I get an error.One way I hacked this is by adding a toy function in R/, e.g.:
And I now see the report. Here is an image:
The text was updated successfully, but these errors were encountered: