diff --git a/src/command/use/commands/binder/binder.ts b/src/command/use/commands/binder/binder.ts index 1f098bd1da..7c9c00f523 100644 --- a/src/command/use/commands/binder/binder.ts +++ b/src/command/use/commands/binder/binder.ts @@ -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",