Skip to content

Commit

Permalink
Properly restore renv when generating binder
Browse files Browse the repository at this point in the history
Fixes #7720
  • Loading branch information
dragonstyle committed Nov 28, 2023
1 parent e6fbd41 commit 8da91de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/command/use/commands/binder/binder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ async function binderFileOperations(
const renvPath = join(context.dir, "renv.lock");
if (existsSync(renvPath)) {
// Create an install.R file
const installRText = "install.packages('renv')\nrenv::activate()";
const installRText = "install.packages('renv')\nrenv::restore()";
operations.push({
file: "install.R",
desc: "Activates the R environment described in renv.lock",
Expand Down

0 comments on commit 8da91de

Please sign in to comment.