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

Add a simple function to install upstream dependencies without RStudio addin #156

Open
danielinteractive opened this issue May 20, 2022 · 2 comments

Comments

@danielinteractive
Copy link

Yesterday I could not use RStudio, so tried to use staged dependencies just from the R console. However I did not find the function to call quickly to install upstream dependencies. Also looking at the output from the addin:
image
it seems like there is no quick simple function call that one can use.

Generally I would recommend to get a bit more independent of the RStudio IDE so that also users from other IDEs or console can use staged.dependencies nicely.

@kpagacz
Copy link

kpagacz commented May 20, 2022

staged.dependencies is independent of RStudio IDE. They provide functions to do everything the plugin can do and more.

Here are the docs: https://openpharma.github.io/staged.dependencies/reference/index.html

And here's my wrapper around staged.deps that I use on a daily basis in VSCode:

staged.install <- function(package) {
  staged.dependencies::install_deps(staged.dependencies::dependency_table(package))
}

where package is the system file path to the package being installed.

EDIT: There's also a short tutorial on using staged.dependencies in console: https://openpharma.github.io/staged.dependencies/#console

@danielinteractive
Copy link
Author

Thanks @kpagacz ! That is a nice start. I would suggest then to add something like staged.install() directly to the package.

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