sol-eng / plumbpkg

Example R package that includes Plumber APIs
Other
48 stars 9 forks source link

Tests not passing #3

Open gshotwell opened 3 years ago

gshotwell commented 3 years ago

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

dietrichson commented 3 years ago

Got same issue.

pep1024 commented 2 years ago

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