Skip to content

Commit 8da91de

Browse files
committed
Properly restore renv when generating binder
Fixes #7720
1 parent e6fbd41 commit 8da91de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/command/use/commands/binder/binder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ async function binderFileOperations(
409409
const renvPath = join(context.dir, "renv.lock");
410410
if (existsSync(renvPath)) {
411411
// Create an install.R file
412-
const installRText = "install.packages('renv')\nrenv::activate()";
412+
const installRText = "install.packages('renv')\nrenv::restore()";
413413
operations.push({
414414
file: "install.R",
415415
desc: "Activates the R environment described in renv.lock",

0 commit comments

Comments
 (0)