Closed dmurdoch closed 10 months ago
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.
As it is unlikely that this will be implemented here, I am going to close it.
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:
and have it check for updates to the package, and print a warning like
or
(I want a warning on the last one so I can see all the uninstalled packages in one run.)