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

export proj_path #415

Closed
jimhester opened this issue Jul 20, 2018 · 3 comments
Closed

export proj_path #415

jimhester opened this issue Jul 20, 2018 · 3 comments
Milestone

Comments

@jimhester
Copy link
Member

jimhester commented Jul 20, 2018

For devtools I often need to construct the full paths to files inside a package, so it would be useful to have proj_path() exported so I wouldn't have to use something like file.path(usethis::proj_get() ...).

@jennybc
Copy link
Member

jennybc commented Jul 20, 2018

The party line on that in usethis itself is that end users are supposed to use rprojroot (or here) to build paths within a project. Do you think that also applies to you (or, more generally, developers of packages that use usethis) or is the situation different? If I export proj_path(), we'd put the same caveats as with proj_get()/proj_set() about being for internal/package use, not end-user script use.

@jimhester
Copy link
Member Author

I see, I guess this makes sense, you can close this if you don't think it is worthwhile.

@jennybc
Copy link
Member

jennybc commented Jul 20, 2018

I think it probably does make sense to export it, for use in other packages. It just comes with same risk / downsides as exporting proj_get() and proj_set().

jennybc added a commit that referenced this issue Aug 5, 2018
@jennybc jennybc added this to the v1.4.0 milestone Aug 5, 2018
jennybc added a commit that referenced this issue Aug 6, 2018
* Rearrange this file

* Export proj_path()

Fixes #415

* NEWS bullet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants