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

Feature request: "Dry run" of install #748

Closed
dmurdoch opened this issue Feb 16, 2023 · 2 comments
Closed

Feature request: "Dry run" of install #748

dmurdoch opened this issue Feb 16, 2023 · 2 comments

Comments

@dmurdoch
Copy link
Contributor

dmurdoch commented Feb 16, 2023

I'm working on a Bookdown project with several authors, using a number of packages that are on CRAN and Github. I think it's bad for code in a book to install packages without asking, but it would be helpful to check whether the currently installed packages are up to date. So what I'd like to put in a code chunk is something like this:

do_installs <- "never"     # Modelled after the upgrade arg
install_github("dmurdoch/tables", do_install = do_installs)
... same for several other packages ...

and have it check for updates to the package, and print a warning like

Warning:  package "tables" is not up to date with the Github version

or

Warning:  package "tables" is not installed

(I want a warning on the last one so I can see all the uninstalled packages in one run.)

@gaborcsardi
Copy link
Member

A workaround is to set up a temporary library for the examples, and install there.

Nevertheless this would indeed make sense, but we are focusing on r-lib/pak, so it is unlikely that we'll implement this in remotes.

@gaborcsardi
Copy link
Member

As it is unlikely that this will be implemented here, I am going to close it.

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