Error in loadNamespace(x) : there is no package called ‘with’

There quiet literally are 0 packages named with. There is a package called withr. When running package_coverage() on fs this error message continues to persist. What is my machine missing? withr is there as well...

It is a bug/typo in covr: https://github.com/r-lib/covr/blob/2f5c519e2c6e3c1bd259ddbad857e89905554084/R/covr.R#L540

Thanks so much!! The solution is to just change it to withr?

It is fixed already: Fix typo by gaborcsardi · Pull Request #545 · r-lib/covr · GitHub

The changes have been made in CRAN. Hope this helps anyone who got tripped up like me!!

I don't think the changes are on CRAN. But the bug is not on CRAN, either. The CRAN version never had this bug, AFAICT.

I installed it from CRAN yesterday or the day before and ran package_coverage(). The error message that i received is the subject of this post. I ran package_coverage() on the package 'fs'. The container I was using's image instructions had install.packages('covr'). So whatever happened was because that typo had been left in.

Well, this is the cran version, released in March, that surely does not have that typo: GitHub - cran/covr: ❗ This is a read-only mirror of the CRAN R package repository. covr — Test Coverage for Packages. Homepage: https://covr.r-lib.org, https://github.com/r-lib/covr Report bugs for this package: https://github.com/r-lib/covr/issues

/tmp
❯ git clone https://github.com/cran/covr
Cloning into 'covr'...
remote: Enumerating objects: 942, done.
remote: Counting objects: 100% (103/103), done.
remote: Compressing objects: 100% (76/76), done.
remote: Total 942 (delta 24), reused 65 (delta 21), pack-reused 839
Receiving objects: 100% (942/942), 366.39 KiB | 2.91 MiB/s, done.
Resolving deltas: 100% (491/491), done.

/tmp
❯ cd covr

/tmp/covr master
❯ ag with::

/tmp/covr master

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.