Closed toph-allen closed 1 year ago
@aronatkins I updated logic to remove one of the conditional statements by just capturing the command to use. Now the message at the top of renv.R
includes the git clone
command used and the timestamp at which it was called. The message also includes the renv
version and the hash.
verified on packrat branch toph-update-renv
RemoteRef: toph-update-renv
RemoteSha: 7d423359b75a1fd0214ccbfb2078d7a16dee812e
GithubRepo: packrat
GithubUsername: rstudio
GithubRef: toph-update-renv
GithubSHA1: 7d423359b75a1fd0214ccbfb2078d7a16dee812e
NeedsCompilation: no
Packaged: 2022-08-10 14:37:32 UTC; chaitamacpro
Built: R 4.1.1; ; 2022-08-10 14:37:33 UTC; unix
This PR updates the embedded version of
renv
used by Packrat. Since the currentHEAD
on therenv
repo is not passing CI, I took the previous version. To do this, I modified thetools-sync-renv.R
script to allow passing a single argument, like so:If there are zero arguments, the script will proceed as before. If there is one argument, it uses that in a modified
git checkout
command. If there is more than one argument, it stops and emits a warning.QA notes
These are taken from the last "bump renv" PR.
We want to ensure that this change doesn't break dependency detection, which is currently the only place we use
renv
. One way to exercise this is to deploy a simple Shiny app to an RStudio Connect instance.After installing the version of Packrat in this PR, deploy the following Shiny app to a Connect instance and ensure that it runs.