Skip to content

Commit d656de8

Browse files
committed
minor bug fix
* fix bug in rendering .Rmd from write_rmd = TRUE due incorrect path to renv
1 parent a51d1f0 commit d656de8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inst/rmd/results.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ show_recipe <- function(field_name = c(
343343
if (write_flag) {
344344
recipe <- write_code_chunk(
345345
sprintf(
346-
"print_renv(renv::lockfile_read(), '%s', print_table = TRUE)", what
346+
"print_renv(renv::lockfile_read(project = here::here()), '%s', print_table = TRUE)", what
347347
),
348348
chunk_args = "results = 'asis'"
349349
) |>
@@ -363,7 +363,7 @@ show_recipe <- function(field_name = c(
363363
if (write_flag) {
364364
recipe <- write_code_chunk(
365365
sprintf(
366-
"print_renv(renv::lockfile_read(), '%s', print_table = FALSE)", what
366+
"print_renv(renv::lockfile_read(project = here::here()), '%s', print_table = FALSE)", what
367367
),
368368
chunk_args = "max.height='700px'"
369369
) |>

0 commit comments

Comments
 (0)