We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The testthat package is listed as Suggests, but load_all() calls library(testthat):
testthat
load_all()
library(testthat)
> pkgload::load_all() ℹ Loading <my-package> Error in ("base" %:::% "library")("testthat", warn.conflicts = FALSE) : there is no package called ‘testthat’ > traceback() 3: stop(packageNotFoundError(package, lib.loc, sys.call())) 2: ("base" %:::% "library")("testthat", warn.conflicts = FALSE) 1: pkgload::load_all()
To reproduce:
pkgload::load_all()
I think this could be fixed by checking if testthat is present beforehand.
The text was updated successfully, but these errors were encountered:
A workaround is to call load_all with attach_testthat = FALSE.
attach_testthat = FALSE
However we could probably add a test to uses_testthat() to handle this case as well.
uses_testthat()
Sorry, something went wrong.
dece602
No branches or pull requests
The
testthat
package is listed as Suggests, butload_all()
callslibrary(testthat)
:To reproduce:
testthat
.pkgload::load_all()
on any package.I think this could be fixed by checking if
testthat
is present beforehand.The text was updated successfully, but these errors were encountered: