Skip to content

Commit c269d00

Browse files
fix instructions
1 parent eb8ec93 commit c269d00

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

R/slurmworkflow_helpers.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,10 @@ step_tmpl_renv_restore <- function(git_branch, setup_lines = NULL, lockfile = NU
147147
if (is.null(lockfile)) {
148148
instructions <- c(instructions, "Rscript -e \"renv::restore()\"")
149149
} else {
150-
instructions <- c(instructions,
151-
"Rscript -e \"renv::restore(lockfile = lockfile)\"")
150+
instructions <- c(
151+
instructions,
152+
paste0("Rscript -e \"renv::restore(lockfile = ", lockfile, ")\"")
153+
)
152154
}
153155

154156
instructions <- slurmworkflow::helper_use_setup_lines(instructions, setup_lines)

0 commit comments

Comments
 (0)