You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After reading about devtools::dev_sitrep() I tried it blindly on a non-package directory. After checking #2105 and args(devtools::dev_sitrep) I realized that I should be running this function inside a package directory (unless I change the argument values) and that it works perfectly. However, the error message Error: Could not find package root. was confusing to me and maybe this could be improved.
## My default terminal directory is: /Users/lcollado/Dropbox/Code/## I did this with `cd recount` but well, setwd() will work too:> setwd('recount')
>devtools::dev_sitrep()
── R ───────────────────────────────────────────────────────────────────────────
*version:3.6.1*path:'/Library/Frameworks/R.framework/Versions/3.6/Resources/'
── devtools ────────────────────────────────────────────────────────────────────
*version:2.2.1
── devpackage ─────────────────────────────────────────────────────────────────
*package:'recount'*path:'/Users/lcollado/Dropbox/Code/recount/'
✔ Allcheckspassed
The text was updated successfully, but these errors were encountered:
I improved the error message when you run devtools functions outside of a package directory in (894bd53). You are actually the second person today who has misinterpreted the error to mean you need to install the 'root' package, so clearly it was confusing.
I also have modified dev_sitrep() to work without error when run outside a package directory in b722f80, which should close this issue.
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/
lockbot
locked and limited conversation to collaborators
Mar 27, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
After reading about
devtools::dev_sitrep()
I tried it blindly on a non-package directory. After checking #2105 andargs(devtools::dev_sitrep)
I realized that I should be running this function inside a package directory (unless I change the argument values) and that it works perfectly. However, the error messageError: Could not find package root.
was confusing to me and maybe this could be improved.Best,
Leo
R info
Incorrect use with confusing error:
Correct use:
The text was updated successfully, but these errors were encountered: