After creating a new golem project with golem::create_golem(), I've tried using the packer::scaffold_golem() function, but received the following error:
r$> golem::create_golem(package_name = "jsTest",overwrite = T,path = ".")
-- Checking package name ------------------------------v Valid package name
* Overwriting existing project.
-- Copying package skeleton ---------------------------v Copied app skeleton
-- Setting the default config -------------------------v Configured app
-- Running project hook function ----------------------v All set
v Setting active project to 'C:/Users/leeroyaus/jsTest'
-- Done -----------------------------------------------A new golem named jsTest was created at C:\Users\leeroyaus\jsTest .
To continue working on your app, start editing the 01_start.R file.
r$> packer::scaffold_golem()
INFO: Could not find files for the given pattern(s).
-- Scaffolding golem -----------------------------------------------------------------------
INFO: Could not find files for the given pattern(s).
Error in system2(engine, ..., stdout = TRUE, stderr = TRUE) :
'"NA"' not found
r$> sessionInfo()
R version 4.2.2 (2022-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)
Matrix products: default
locale:
[1] LC_COLLATE=English_Australia.1252 LC_CTYPE=English_Australia.1252
[3] LC_MONETARY=English_Australia.1252 LC_NUMERIC=C
[5] LC_TIME=English_Australia.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] Rcpp_1.0.9 later_1.3.0 pillar_1.8.1 compiler_4.2.2 tools_4.2.2
[6] testthat_3.1.4 digest_0.6.31 pkgload_1.2.4 jsonlite_1.8.4 lifecycle_1.0.3
[11] tibble_3.1.8 pkgconfig_2.0.3 rlang_1.0.6 shiny_1.7.2 cli_3.5.0
[16] rstudioapi_0.14 yaml_2.3.6 golem_0.3.5 xfun_0.36 fastmap_1.1.0
[21] withr_2.5.0 packer_0.1.3 stringr_1.5.0 roxygen2_7.1.2 xml2_1.3.3
[26] knitr_1.41 desc_1.4.1 fs_1.5.2 vctrs_0.5.1 attempt_0.3.1
[31] rprojroot_2.0.3 glue_1.6.2 R6_2.5.1 fansi_1.0.3 purrr_1.0.0
[36] magrittr_2.0.3 usethis_2.1.5 ellipsis_0.3.2 promises_1.2.0.1 htmltools_0.5.4
[41] assertthat_0.2.1 xtable_1.8-4 mime_0.12 httpuv_1.6.5 config_0.3.1
[46] utf8_1.2.2 stringi_1.7.8 crayon_1.5.1 brio_1.1.3
After creating a new golem project with
golem::create_golem()
, I've tried using thepacker::scaffold_golem()
function, but received the following error: