Skip to content
New issue

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

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

Already on GitHub? # to your account

could 'install_deps()' work within project sub-directory? #1905

Closed
kevinushey opened this issue Oct 25, 2018 · 4 comments
Closed

could 'install_deps()' work within project sub-directory? #1905

kevinushey opened this issue Oct 25, 2018 · 4 comments

Comments

@kevinushey
Copy link
Contributor

E.g.

> devtools::install_deps()
Warning in read.dcf(path) :
  cannot open compressed file '/Users/kevin/r/pkg/Rcpp/inst/unitTests/DESCRIPTION', probable reason 'No such file or directory'
Error in read.dcf(path) : cannot open the connection

I was briefly working in the inst/unitTests folder for Rcpp; discovered I was missing some development dependencies, and was hoping an install_deps() would do the trick. It'd be nice if this function looked upwards for a package root + associated DESCRIPTION file.

@jimhester
Copy link
Member

This is how it used to work when install_deps() was in devtools, but the functions in remotes don't do this so we no longer have this functionality.

One way to get it back is to use devtools::package_file(), e.g.

devtools::install_deps(devtools::package_file())

@kevinushey
Copy link
Contributor Author

Do you think devtools / remotes should do this? Could they use rprojroot::find_package_root_file() as a default? Or should I just learn to live with the change in behavior?

@kevinushey
Copy link
Contributor Author

Thanks!

@lock
Copy link

lock bot commented Apr 24, 2019

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/

@lock lock bot locked and limited conversation to collaborators Apr 24, 2019
HughParsonage pushed a commit to HughParsonage/devtools that referenced this issue Jul 2, 2019
This is how it used to work, so we will restore that functionality.

Fixes r-lib#1905
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants