Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error message when running roxygenize in the wrong dir #704

Closed
ColinFay opened this issue Jan 26, 2018 · 0 comments · Fixed by #756
Closed

Better error message when running roxygenize in the wrong dir #704

ColinFay opened this issue Jan 26, 2018 · 0 comments · Fixed by #756
Labels
feature a feature request or enhancement good first issue ❤️ good issue for first-time contributors help wanted ❤️ we'd love your help!

Comments

@ColinFay
Copy link

Following this conversation on Twitter :

I think the error message we get when trying to roxygenize() in a dir which is not the package root dir could be improved. For now, it's Error: File file does not exist

> getwd()
[1] "/Users/colin/Seafile/documents_colin/R/attempt"
> # Setting a path that is not the pkg root
> setwd("R/")
> getwd()
[1] "/Users/colin/Seafile/documents_colin/R/attempt/R"
> 
> roxygen2::roxygenise()
First time using roxygen2. Upgrading automatically...
Erreur : File file does not exist
> # Setting the wd to the package root
> setwd("..")
> getwd()
[1] "/Users/colin/Seafile/documents_colin/R/attempt"
# No pblm :
> roxygen2::roxygenise()

Maybe something like Are you calling roxygenise() in a directory which is not the package root directory?.

Colin

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement good first issue ❤️ good issue for first-time contributors help wanted ❤️ we'd love your help!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants