plumbpkg icon indicating copy to clipboard operation
plumbpkg copied to clipboard

Tests not passing

Open gshotwell opened this issue 4 years ago • 2 comments

It looks like the plumber tests are not passing on callr 3.6 and plumber 1.10.

gshotwell avatar Apr 16 '21 12:04 gshotwell

Got same issue.

dietrichson avatar May 11 '21 14:05 dietrichson

Probably you are running the tests after loading the package with devtools::load_all() and run devtools::test(). Instead, if you run devtools::check() to run the tests with R CMD check, all works fine, at least for me.

It look to me that packages loaded with load_all() cannot run the call to the API in the background because it can not find functions with the reference to the package loaded, for instance, plumbpkg:::hello().

I asked a question related to this issue in stackoverflow

pep1024 avatar Nov 30 '21 18:11 pep1024