-
Help
DescriptionHi I am trying to use Any advice would be much appreciate, thanks! library(targets)
library(tarchetypes)
targets::tar_dir({ # tar_dir() runs code from a temporary directory.
# Unparameterized Quarto document:
lines <- c(
"---",
"title: report.qmd source file",
"output_format: html",
"---",
"Assume these lines are in report.qmd.",
"```{r}",
"targets::tar_read(data)",
"```"
)
# In tar_dir(), not part of the user's file space:
writeLines(lines, "report.qmd")
# Include the report in a pipeline as follows.
targets::tar_script(
{
library(tarchetypes)
list(
tar_target(data, data.frame(x = seq_len(26), y = letters)),
tar_quarto_raw("report", path = "report.qmd")
)
},
ask = FALSE
)
# error
tar_glimpse()
})
#> Error:
#> ! Error running targets::tar_glimpse()
#> Error messages: targets::tar_meta(fields = error, complete_only = TRUE)
#> Debugging guide: https://books.ropensci.org/targets/debugging.html
#> How to ask for help: https://books.ropensci.org/targets/help.html
#> Last error: x must be a language object
#> Backtrace:
#> ▆
#> 1. └─targets::tar_glimpse()
#> 2. └─targets:::callr_outer(...)
#> 3. ├─targets:::if_any(...)
#> 4. └─targets:::callr_error(condition = out, fun = fun)
#> 5. └─targets::tar_throw_run(message, class = class(condition))
#> 6. └─targets::tar_error(...)
#> 7. └─rlang::abort(message = message, class = class, call = tar_empty_envir)
sessionInfo()
#> R version 4.2.0 (2022-04-22)
#> Platform: x86_64-apple-darwin17.0 (64-bit)
#> Running under: macOS Big Sur/Monterey 10.16
#>
#> Matrix products: default
#> BLAS: /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRblas.0.dylib
#> LAPACK: /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRlapack.dylib
#>
#> locale:
#> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
#>
#> attached base packages:
#> [1] stats graphics grDevices utils datasets methods base
#>
#> other attached packages:
#> [1] tarchetypes_0.7.7 targets_1.2.0
#>
#> loaded via a namespace (and not attached):
#> [1] compiler_4.2.0 pillar_1.9.0 R.methodsS3_1.8.2 R.utils_2.12.2
#> [5] tools_4.2.0 digest_0.6.31 jsonlite_1.8.5 evaluate_0.21
#> [9] lifecycle_1.0.3 tibble_3.2.1 R.cache_0.16.0 pkgconfig_2.0.3
#> [13] rlang_1.1.1 reprex_2.0.2 igraph_1.5.0 cli_3.6.1
#> [17] rstudioapi_0.14 parallel_4.2.0 yaml_2.3.7 xfun_0.39
#> [21] fastmap_1.1.1 future.callr_0.8.1 furrr_0.3.1 dplyr_1.1.2
#> [25] withr_2.5.0 styler_1.10.1 knitr_1.43 htmlwidgets_1.6.2
#> [29] globals_0.16.2 generics_0.1.3 fs_1.6.2 vctrs_0.6.3
#> [33] tidyselect_1.2.0 glue_1.6.2 data.table_1.14.8 listenv_0.9.0
#> [37] R6_2.5.1 processx_3.8.1 parallelly_1.36.0 fansi_1.0.4
#> [41] base64url_1.4 rmarkdown_2.22 purrr_1.0.1 callr_3.7.3
#> [45] magrittr_2.0.3 backports_1.4.1 ps_1.7.5 codetools_0.2-19
#> [49] htmltools_0.5.5 future_1.32.0 utf8_1.2.3 visNetwork_2.1.2
#> [53] R.oo_1.25.0 Created on 2023-06-27 with reprex v2.0.2 |
Beta Was this translation helpful? Give feedback.
Answered by
wlandau
Jun 27, 2023
Replies: 1 comment 1 reply
-
Thanks, looks like you found a bug. Should be fixed now in the development version. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
rmgpanw
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks, looks like you found a bug. Should be fixed now in the development version.