I am running the command: devtools::use_testthat()
and I get the error:
Error: Could not find package root.
Why this happens?
My problem was very similar, but running devtools::document(setwd(...))
. The only thing that worked for me:
devtools::document(setwd(...))
again;devtools::document(setwd(...))
.devtools
appears now to require the user to setwd("~/path/to/package")
, even if functions like devtools::release()
have the pkg=
parameter set correctly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With