Reputation: 686
I am running the command: devtools::use_testthat()
and I get the error:
Error: Could not find package root.
Why this happens?
Upvotes: 14
Views: 16778
Reputation: 133
My problem was very similar, but running devtools::document(setwd(...))
. The only thing that worked for me:
devtools::document(setwd(...))
again;devtools::document(setwd(...))
.Upvotes: 5
Reputation: 3608
devtools
appears now to require the user to setwd("~/path/to/package")
, even if functions like devtools::release()
have the pkg=
parameter set correctly.
Upvotes: 8