R Under development (unstable) (2026-02-18 r89435 ucrt) -- "Unsuffered Consequences" Copyright (C) 2026 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(testthat) > library(worcs) Welcome to WORCS: Workflow for Open Reproducible Code in Science. Run `check_worcs_installation()` to make sure all dependencies are installed. For more information, see the package vignettes () and accompanying paper: Van Lissa and colleagues (2020) () > > test_check("worcs") v Creating manuscript files. v Creating manuscript files. v Creating manuscript files. v Creating preregistration files. v Creating preregistration files. v Creating manuscript files. v Creating manuscript files. v Creating manuscript files. v Creating manuscript files. v Creating manuscript files. [1] "_targets.Rmd" "references.bib" Linking to libgit2 v1.9.1, ssh support: YES Global config: C:\Users\CRAN\.gitconfig Default user: yourname v Setting active project to "D:/temp/2026_02_22_13_40_16_22806/Rtmp6LVF4C/aaa537425085e4d". v Storing original data in 'dat.csv' and updating the checksum in '.worcs'. v Updating '.gitignore'. v Creating a codebook in 'codebook_dat.Rmd'. processing file: manuscript.Rmd output file: manuscript.knit.md "C:/PROGRA~1/Pandoc/pandoc" +RTS -K512m -RTS manuscript.knit.md --to gfm+tex_math_dollars-yaml_metadata_block --from markdown+autolink_bare_uris+tex_math_single_backslash --output manuscript.md --template "D:\RCompile\CRANpkg\lib\4.6\rmarkdown\rmarkdown\templates\github_document\resources\default.md" "C:/PROGRA~1/Pandoc/pandoc" +RTS -K512m -RTS manuscript.md --to html4 --from gfm+tex_math_dollars --output manuscript.html --embed-resources --standalone --highlight-style pygments --template "D:\RCompile\CRANpkg\lib\4.6\rmarkdown\rmarkdown\templates\github_document\resources\preview.html" --variable "github-markdown-css:D:\RCompile\CRANpkg\lib\4.6\rmarkdown\rmarkdown\templates\github_document\resources\github.css" --metadata pagetitle=PREVIEW --mathjax Preview created: manuscript.html Output created: manuscript.md v Setting active project to "". processing file: test.Rmd output file: test.knit.md Preview created: test.html Output created: test.md processing file: test.Rmd output file: test.knit.md Preview created: test.html Output created: test.md processing file: test.Rmd output file: test.knit.md Preview created: test.html Output created: test.md processing file: test.Rmd output file: test.knit.md Preview created: test.html Output created: test.md processing file: test.Rmd output file: test.knit.md Preview created: test.html Output created: test.md processing file: test.Rmd output file: test.knit.md Preview created: test.html Output created: test.md processing file: test.Rmd output file: test.knit.md Preview created: test.html Output created: test.md processing file: test.Rmd output file: test.knit.md Preview created: test.html Output created: test.md v Storing original data in 'iris.csv' and updating the checksum in '.worcs'. v Updating '.gitignore'. v Creating a codebook in 'codebook_iris.Rmd'. v Storing value labels in 'value_labels_iris.yml'. v Loading original data from 'iris.csv'. v Loading original data from 'iris.csv'. v Loading original data from 'iris.csv'. v Loading original data from 'iris.csv'. x Checksum for file 'D:/temp/2026_02_22_13_40_16_22806/Rtmp6LVF4C/saveload/iris.csv' did not match the checksum on record (in '.worcs'). This means that the file has changed since the checksum was stored. v Loading original data from 'iris.csv'. v Storing original data in 'iris.csv' and updating the checksum in '.worcs'. v Generating synthetic data for public use. Ensure that no identifying information is included. | | | 0% | |============== | 20% | |============================ | 40% | |========================================== | 60% | |======================================================== | 80% | |======================================================================| 100% i Storing synthetic data in "fn_write_synth_rel" and updating the checksum in... v Updating '.gitignore'. i Storing synthetic data in "fn_write_synth_rel" and updating the checksum in... v Storing synthetic data in "fn_write_synth_rel" and updating the checksum in... v Updating '.gitignore'. v Storing value labels in 'value_labels_iris.yml'. v Loading original data from 'iris.csv'. v Loading synthetic data from 'synthetic_iris.csv'. v Storing original data in 'iris.csv' and updating the checksum in '.worcs'. v Updating '.gitignore'. v Storing value labels in 'value_labels_iris.yml'. v Storing original data in 'iris.csv' and updating the checksum in '.worcs'. v Updating '.gitignore'. v Creating a codebook in 'codebook_iris.Rmd'. v Storing value labels in 'value_labels_iris.yml'. v Storing original data in 'cars.csv' and updating the checksum in '.worcs'. v Generating synthetic data for public use. Ensure that no identifying information is included. | | | 0% | |=================================== | 50% | |======================================================================| 100% i Storing synthetic data in "fn_write_synth_rel" and updating the checksum in... v Updating '.gitignore'. i Storing synthetic data in "fn_write_synth_rel" and updating the checksum in... v Storing synthetic data in "fn_write_synth_rel" and updating the checksum in... v Updating '.gitignore'. v Creating a codebook in 'codebook_cars.Rmd'. v Loading original data from 'iris.csv'. v Loading synthetic data from 'synthetic_cars.csv'. v Loading original data from 'iris.csv'. v Loading synthetic data from 'synthetic_cars.csv'. v Storing original data in 'df.csv' and updating the checksum in '.worcs'. v Generating synthetic data for public use. Ensure that no identifying information is included. | | | 0% | |============== | 20% | |============================ | 40% | |========================================== | 60% | |======================================================== | 80% | |======================================================================| 100% i Storing synthetic data in "fn_write_synth_rel" and updating the checksum in... v Updating '.gitignore'. i Storing synthetic data in "fn_write_synth_rel" and updating the checksum in... v Storing synthetic data in "fn_write_synth_rel" and updating the checksum in... v Updating '.gitignore'. v Storing value labels in 'value_labels_df.yml'. v Setting active project to "D:/temp/2026_02_22_13_40_16_22806/Rtmp6LVF4C/savedat253744acb2cb4". v Creating manuscript files. v Storing original data in 'df1.csv' and updating the checksum in '.worcs'. v Generating synthetic data for public use. Ensure that no identifying information is included. | | | 0% | |================== | 25% | |=================================== | 50% | |==================================================== | 75% | |======================================================================| 100% i Storing synthetic data in "fn_write_synth_rel" and updating the checksum in... v Updating '.gitignore'. i Storing synthetic data in "fn_write_synth_rel" and updating the checksum in... v Storing synthetic data in "fn_write_synth_rel" and updating the checksum in... v Updating '.gitignore'. v Creating a codebook in 'codebook_df1.Rmd'. v Storing original data in 'df2.csv' and updating the checksum in '.worcs'. v Generating synthetic data for public use. Ensure that no identifying information is included. | | | 0% | |================== | 25% | |=================================== | 50% | |==================================================== | 75% | |======================================================================| 100% i Storing synthetic data in "fn_write_synth_rel" and updating the checksum in... v Updating '.gitignore'. i Storing synthetic data in "fn_write_synth_rel" and updating the checksum in... v Storing synthetic data in "fn_write_synth_rel" and updating the checksum in... v Updating '.gitignore'. v Creating a codebook in 'codebook_df2.Rmd'. v Setting active project to "". v Setting active project to "D:/temp/2026_02_22_13_40_16_22806/Rtmp6LVF4C/aaa537451292719". v Adding recipe to '.worcs'. v Creating first commit (committing README.md). v Setting active project to "D:/temp/2026_02_22_13_40_16_22806/Rtmp6LVF4C/zip". v Setting active project to "D:/temp/2026_02_22_13_40_16_22806/Rtmp6LVF4C/aaa537451292719". v Setting active project to "". v Adding recipe to '.worcs'. v Adding recipe to '.worcs'. [1] "writeLines(test, test.txt)" v Storing original data in 'dat.dat' and updating the checksum in '.worcs'. v Updating '.gitignore'. v Storing value labels in 'value_labels_dat.yml'. v Loading original data from 'dat.dat'. x No valid codebook found. v Loading original data from 'dat.dat'. x No valid codebook found. v Loading original data from 'dat.dat'. x No valid codebook found. v Loading original data from 'dat.dat'. x No valid codebook found. x Checksum for file 'D:/temp/2026_02_22_13_40_16_22806/Rtmp6LVF4C/save_expression/dat.dat' did not match the checksum on record (in '.worcs'). This means that the file has changed since the checksum was stored. v Loading original data from 'dat.dat'. x No valid codebook found. v Storing original data in 'dat.dat' and updating the checksum in '.worcs'. v Generating synthetic data for public use. Ensure that no identifying information is included. | | | 0% | |============== | 20% | |============================ | 40% | |========================================== | 60% | |======================================================== | 80% | |======================================================================| 100% i Storing synthetic data in "fn_write_synth_rel" and updating the checksum in... v Updating '.gitignore'. i Storing synthetic data in "fn_write_synth_rel" and updating the checksum in... v Storing synthetic data in "fn_write_synth_rel" and updating the checksum in... v Updating '.gitignore'. v Storing value labels in 'value_labels_dat.yml'. v Loading original data from 'dat.dat'. x No valid codebook found. v Loading synthetic data from 'synthetic_dat.dat'. x No valid codebook found. | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% | | | 0% | |=================================== | 50% | |======================================================================| 100% | | | 0% | |============== | 20% | |============================ | 40% | |========================================== | 60% | |======================================================== | 80% | |======================================================================| 100% | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% v Synthetic variable 'Seed' did not have identical classes to its original counterpart. Attempted to convert to its original type. Check the input types of your variables, and check whether the data are synthesized correctly. | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% | | | 0% | |================== | 25% | |=================================== | 50% | |==================================================== | 75% | |======================================================================| 100% | | | 0% | |=================================== | 50% | |======================================================================| 100% | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% | | | 0% | |============== | 20% | |============================ | 40% | |========================================== | 60% | |======================================================== | 80% | |======================================================================| 100% | | | 0% | |============== | 20% | |============================ | 40% | |========================================== | 60% | |======================================================== | 80% | |======================================================================| 100% | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% | | | 0% | |================== | 25% | |=================================== | 50% | |==================================================== | 75% | |======================================================================| 100% | | | 0% | |================== | 25% | |=================================== | 50% | |==================================================== | 75% | |======================================================================| 100% v Synthetic variable 'Assault' did not have identical classes to its original counterpart. Attempted to convert to its original type. Check the input types of your variables, and check whether the data are synthesized correctly. v Synthetic variable 'UrbanPop' did not have identical classes to its original counterpart. Attempted to convert to its original type. Check the input types of your variables, and check whether the data are synthesized correctly. | | | 0% | |====== | 8% | |============ | 17% | |================== | 25% | |======================= | 33% | |============================= | 42% | |=================================== | 50% | |========================================= | 58% | |=============================================== | 67% | |==================================================== | 75% | |========================================================== | 83% | |================================================================ | 92% | |======================================================================| 100% | | | 0% | |============== | 20% | |============================ | 40% | |========================================== | 60% | |======================================================== | 80% | |======================================================================| 100% | | | 0% | |================== | 25% | |=================================== | 50% | |==================================================== | 75% | |======================================================================| 100% | | | 0% | |========== | 14% | |==================== | 29% | |============================== | 43% | |======================================== | 57% | |================================================== | 71% | |============================================================ | 86% | |======================================================================| 100% | | | 0% | |============ | 17% | |======================= | 33% | |=================================== | 50% | |=============================================== | 67% | |========================================================== | 83% | |======================================================================| 100% x Argument 'data' has missing values, but no 'missingness_expression' is specified. Listwise deletion is used. | | | 0% | |============ | 17% | |======================= | 33% | |=================================== | 50% | |=============================================== | 67% | |========================================================== | 83% | |======================================================================| 100% v Synthetic variable 'Solar.R' did not have identical classes to its original counterpart. Attempted to convert to its original type. Check the input types of your variables, and check whether the data are synthesized correctly. v Synthetic variable 'Temp' did not have identical classes to its original counterpart. Attempted to convert to its original type. Check the input types of your variables, and check whether the data are synthesized correctly. v Synthetic variable 'Month' did not have identical classes to its original counterpart. Attempted to convert to its original type. Check the input types of your variables, and check whether the data are synthesized correctly. v Synthetic variable 'Day' did not have identical classes to its original counterpart. Attempted to convert to its original type. Check the input types of your variables, and check whether the data are synthesized correctly. | | | 0% | |========= | 12% | |================== | 25% | |========================== | 38% | |=================================== | 50% | |============================================ | 62% | |==================================================== | 75% | |============================================================= | 88% | |======================================================================| 100% x Argument 'data' has missing values, but no 'missingness_expression' is specified. Listwise deletion is used. | | | 0% | |============== | 20% | |============================ | 40% | |========================================== | 60% | |======================================================== | 80% | |======================================================================| 100% | | | 0% | |========== | 14% | |==================== | 29% | |============================== | 43% | |======================================== | 57% | |================================================== | 71% | |============================================================ | 86% | |======================================================================| 100% | | | 0% | |================== | 25% | |=================================== | 50% | |==================================================== | 75% | |======================================================================| 100% | | | 0% | |================== | 25% | |=================================== | 50% | |==================================================== | 75% | |======================================================================| 100% | | | 0% | |=================================== | 50% | |======================================================================| 100% | | | 0% | |=================================== | 50% | |======================================================================| 100% | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% v Synthetic variable 'Freq' did not have identical classes to its original counterpart. Attempted to convert to its original type. Check the input types of your variables, and check whether the data are synthesized correctly. | | | 0% | |============== | 20% | |============================ | 40% | |========================================== | 60% | |======================================================== | 80% | |======================================================================| 100% v Synthetic variable 'alcgp' did not have identical classes to its original counterpart. Attempted to convert to its original type. Check the input types of your variables, and check whether the data are synthesized correctly. v Synthetic variable 'tobgp' did not have identical classes to its original counterpart. Attempted to convert to its original type. Check the input types of your variables, and check whether the data are synthesized correctly. | | | 0% | |====== | 9% | |============= | 18% | |=================== | 27% | |========================= | 36% | |================================ | 45% | |====================================== | 55% | |============================================= | 64% | |=================================================== | 73% | |========================================================= | 82% | |================================================================ | 91% | |======================================================================| 100% | | | 0% | |=================================== | 50% | |======================================================================| 100% | | | 0% | |============== | 20% | |============================ | 40% | |========================================== | 60% | |======================================================== | 80% | |======================================================================| 100% v Synthetic variable 'y' did not have identical classes to its original counterpart. Attempted to convert to its original type. Check the input types of your variables, and check whether the data are synthesized correctly. | | | 0% | |================== | 25% | |=================================== | 50% | |==================================================== | 75% | |======================================================================| 100% v Synthetic variable 'freeny.y' did not have identical classes to its original counterpart. Attempted to convert to its original type. Check the input types of your variables, and check whether the data are synthesized correctly. | | | 0% | |========= | 12% | |================== | 25% | |========================== | 38% | |=================================== | 50% | |============================================ | 62% | |==================================================== | 75% | |============================================================= | 88% | |======================================================================| 100% v Synthetic variable 'stratum' did not have identical classes to its original counterpart. Attempted to convert to its original type. Check the input types of your variables, and check whether the data are synthesized correctly. | | | 0% | |============== | 20% | |============================ | 40% | |========================================== | 60% | |======================================================== | 80% | |======================================================================| 100% | | | 0% | |========== | 14% | |==================== | 29% | |============================== | 43% | |======================================== | 57% | |================================================== | 71% | |============================================================ | 86% | |======================================================================| 100% v Synthetic variable 'Year' did not have identical classes to its original counterpart. Attempted to convert to its original type. Check the input types of your variables, and check whether the data are synthesized correctly. | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% v Synthetic variable 'Run' did not have identical classes to its original counterpart. Attempted to convert to its original type. Check the input types of your variables, and check whether the data are synthesized correctly. v Synthetic variable 'Speed' did not have identical classes to its original counterpart. Attempted to convert to its original type. Check the input types of your variables, and check whether the data are synthesized correctly. | | | 0% | |====== | 9% | |============= | 18% | |=================== | 27% | |========================= | 36% | |================================ | 45% | |====================================== | 55% | |============================================= | 64% | |=================================================== | 73% | |========================================================= | 82% | |================================================================ | 91% | |======================================================================| 100% | | | 0% | |============== | 20% | |============================ | 40% | |========================================== | 60% | |======================================================== | 80% | |======================================================================| 100% | | | 0% | |=================================== | 50% | |======================================================================| 100% | | | 0% | |============== | 20% | |============================ | 40% | |========================================== | 60% | |======================================================== | 80% | |======================================================================| 100% v Synthetic variable 'depth' did not have identical classes to its original counterpart. Attempted to convert to its original type. Check the input types of your variables, and check whether the data are synthesized correctly. v Synthetic variable 'stations' did not have identical classes to its original counterpart. Attempted to convert to its original type. Check the input types of your variables, and check whether the data are synthesized correctly. | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% | | | 0% | |================== | 25% | |=================================== | 50% | |==================================================== | 75% | |======================================================================| 100% | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% | | | 0% | |================== | 25% | |=================================== | 50% | |==================================================== | 75% | |======================================================================| 100% | | | 0% | |========= | 12% | |================== | 25% | |========================== | 38% | |=================================== | 50% | |============================================ | 62% | |==================================================== | 75% | |============================================================= | 88% | |======================================================================| 100% | | | 0% | |============ | 17% | |======================= | 33% | |=================================== | 50% | |=============================================== | 67% | |========================================================== | 83% | |======================================================================| 100% v Synthetic variable 'Examination' did not have identical classes to its original counterpart. Attempted to convert to its original type. Check the input types of your variables, and check whether the data are synthesized correctly. v Synthetic variable 'Education' did not have identical classes to its original counterpart. Attempted to convert to its original type. Check the input types of your variables, and check whether the data are synthesized correctly. | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% | | | 0% | |= | 2% | |== | 3% | |=== | 5% | |===== | 7% | |====== | 8% | |======= | 10% | |======== | 11% | |========= | 13% | |========== | 15% | |=========== | 16% | |============= | 18% | |============== | 20% | |=============== | 21% | |================ | 23% | |================= | 25% | |================== | 26% | |==================== | 28% | |===================== | 30% | |====================== | 31% | |======================= | 33% | |======================== | 34% | |========================= | 36% | |========================== | 38% | |============================ | 39% | |============================= | 41% | |============================== | 43% | |=============================== | 44% | |================================ | 46% | |================================= | 48% | |================================== | 49% | |==================================== | 51% | |===================================== | 52% | |====================================== | 54% | |======================================= | 56% | |======================================== | 57% | |========================================= | 59% | |========================================== | 61% | |============================================ | 62% | |============================================= | 64% | |============================================== | 66% | |=============================================== | 67% | |================================================ | 69% | |================================================= | 70% | |================================================== | 72% | |==================================================== | 74% | |===================================================== | 75% | |====================================================== | 77% | |======================================================= | 79% | |======================================================== | 80% | |========================================================= | 82% | |=========================================================== | 84% | |============================================================ | 85% | |============================================================= | 87% | |============================================================== | 89% | |=============================================================== | 90% | |================================================================ | 92% | |================================================================= | 93% | |=================================================================== | 95% | |==================================================================== | 97% | |===================================================================== | 98% | |======================================================================| 100% | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% | | | 0% | |=================================== | 50% | |======================================================================| 100% v Creating manuscript files. v Adding recipe to '.worcs'. v Wrote _targets.R v Added targets to project. v Setting recipe to targets::tar_make(). v Adding rmarkdown manuscript to targets pipeline. v Adding targets to rmarkdown manuscript. v Creating directory './R/' for targets scripts. v Initializing 'targets' for a Make-like pipeline. + data dispatched ✔ data completed [10ms, 1.75 kB] + model dispatched ✔ model completed [0ms, 107 B] + manuscript dispatched Quitting from manuscript.Rmd:9-24 [setup] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: ! targets data store ../_targets not found. Utility functions like tar_read() and tar_load() require a pre-existing targets data store (default: _targets/) created by tar_make(), tar_make_clustermq(), or tar_make_future(). Details: https://books.ropensci.org/targets/data.html --- Backtrace: ▆ 1. └─targets::tar_load(model) 2. └─targets::tar_assert_store(store = store) 3. └─targets::tar_assert_path(...) 4. └─targets::tar_throw_validate(...) 5. └─targets::tar_error(...) 6. └─rlang::abort(message = message, class = class, call = tar_envir_base) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ✖ manuscript errored ✖ errored pipeline [2.6s, 2 completed, 0 skipped] processing file: manuscript.Rmd output file: manuscript.knit.md "C:/PROGRA~1/Pandoc/pandoc" +RTS -K512m -RTS manuscript.knit.md --to gfm+tex_math_dollars-yaml_metadata_block --from markdown+autolink_bare_uris+tex_math_single_backslash --output manuscript.md --template "D:\RCompile\CRANpkg\lib\4.6\rmarkdown\rmarkdown\templates\github_document\resources\default.md" --citeproc "C:/PROGRA~1/Pandoc/pandoc" +RTS -K512m -RTS manuscript.md --to html4 --from gfm+tex_math_dollars --output manuscript.html --embed-resources --standalone --highlight-style pygments --template "D:\RCompile\CRANpkg\lib\4.6\rmarkdown\rmarkdown\templates\github_document\resources\preview.html" --variable "github-markdown-css:D:\RCompile\CRANpkg\lib\4.6\rmarkdown\rmarkdown\templates\github_document\resources\github.css" --metadata pagetitle=PREVIEW --mathjax Preview created: manuscript.html Output created: manuscript.md # Created by use_targets(). # Follow the comments below to fill in this target script. # Then follow the manual to check and run the pipeline: # https://books.ropensci.org/targets/walkthrough.html#inspect-the-pipeline # Load packages required to define the pipeline: library(targets) # library(tarchetypes) # Load other packages as needed. # Set target options: tar_option_set( packages = c("tibble") # Packages that your targets need for their tasks. # format = "qs", # Optionally set the default storage format. qs is fast. # # Pipelines that take a long time to run may benefit from # optional distributed computing. To use this capability # in tar_make(), supply a {crew} controller # as discussed at https://books.ropensci.org/targets/crew.html. # Choose a controller that suits your needs. For example, the following # sets a controller that scales up to a maximum of two workers # which run as local R processes. Each worker launches when there is work # to do and exits if 60 seconds pass with no tasks to run. # # controller = crew::crew_controller_local(workers = 2, seconds_idle = 60) # # Alternatively, if you want workers to run on a high-performance computing # cluster, select a controller from the {crew.cluster} package. # For the cloud, see plugin packages like {crew.aws.batch}. # The following example is a controller for Sun Grid Engine (SGE). # # controller = crew.cluster::crew_controller_sge( # # Number of workers that the pipeline can scale up to: # workers = 10, # # It is recommended to set an idle time so workers can shut themselves # # down if they are not running tasks. # seconds_idle = 120, # # Many clusters install R as an environment module, and you can load it # # with the script_lines argument. To select a specific verison of R, # # you may need to include a version string, e.g. "module load R/4.3.2". # # Check with your system administrator if you are unsure. # script_lines = "module load R" # ) # # Set other options as needed. ) # Run the R scripts in the R/ folder with your custom functions: tar_source() # tar_source("other_functions.R") # Source other scripts as needed. # Replace the target list below with your own: list( tar_target( name = data, command = tibble(x = rnorm(100), y = rnorm(100)) # format = "qs" # Efficient storage for general data objects. ), tar_target( name = model, command = coefficients(lm(y ~ x, data = data)) ), tarchetypes::tar_render(manuscript, "manuscript/manuscript.Rmd", cue = tar_cue(mode = 'always')) )[1] "_targets.yaml" "manuscript.Rmd" "manuscript.md" "manuscript_files" [5] "references.bib" + data dispatched ✔ data completed [0ms, 1.75 kB] + model dispatched ✔ model completed [0ms, 107 B] + manuscript dispatched ✔ manuscript completed [3.3s, 7.34 kB] ✔ ended pipeline [3.6s, 3 completed, 0 skipped] v Creating manuscript files. v Adding recipe to '.worcs'. v Added targets to project. v Setting recipe to targets::tar_make(). v Creating directory './R/' for targets scripts. v Initializing 'targets' for a Make-like pipeline. processing file: _targets.Rmd output file: _targets.knit.md "C:/PROGRA~1/Pandoc/pandoc" +RTS -K512m -RTS _targets.knit.md --to html4 --from markdown+autolink_bare_uris+tex_math_single_backslash --output _targets.html --lua-filter "D:\RCompile\CRANpkg\lib\4.6\rmarkdown\rmarkdown\lua\pagebreak.lua" --lua-filter "D:\RCompile\CRANpkg\lib\4.6\rmarkdown\rmarkdown\lua\latex-div.lua" --embed-resources --standalone --variable bs3=TRUE --section-divs --template "D:\RCompile\CRANpkg\lib\4.6\rmarkdown\rmd\h\default.html" --no-highlight --variable highlightjs=1 --variable theme=bootstrap --mathjax --variable "mathjax-url=https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" --include-in-header "D:\temp\2026_02_22_13_40_16_22806\Rtmp6LVF4C\rmarkdown-str53747f594d8c.html" --citeproc Output created: _targets.html Missing value imputation by random forests Variables to impute: Sepal.Length, Petal.Length, Species, Petal.Width, Sepal.Width Variables used to impute: Sepal.Length, Sepal.Width, Petal.Length, Petal.Width, Species iter 1 | | | 0% | |============== | 20% | |============================ | 40% | |========================================== | 60% | |======================================================== | 80% | |======================================================================| 100% iter 2 | | | 0% | |============== | 20% | |============================ | 40% | |========================================== | 60% | |======================================================== | 80% | |======================================================================| 100% iter 3 | | | 0% | |============== | 20% | |============================ | 40% | |========================================== | 60% | |======================================================== | 80% | |======================================================================| 100% | | | 0% | |============== | 20% | |============================ | 40% | |========================================== | 60% | |======================================================== | 80% | |======================================================================| 100% v Adding recipe to '.worcs'. v Setting active project to "D:/temp/2026_02_22_13_40_16_22806/Rtmp6LVF4C/file53744a8b10de". v Creating 'tests/testthat/'. v Writing 'tests/testthat.R'. [ ] Call `usethis::use_test()` to initialize a basic test file and open it for editing. i Updating 'tests/testthat.R' v Updating 'tests/testthat.R' ... done i You can run `add_endpoint('testthat')` to add the test suite as an endpoint, and `github_action_testthat()` to add a GitHub action that evaluates the integration tests, or `github_action_reproduce()` to reproduce the project and then run the tests. v Setting active project to "". processing file: manuscript.Rmd output file: manuscript.knit.md "C:/PROGRA~1/Pandoc/pandoc" +RTS -K512m -RTS manuscript.knit.md --to gfm+tex_math_dollars-yaml_metadata_block --from markdown+autolink_bare_uris+tex_math_single_backslash --output manuscript.md --template "D:\RCompile\CRANpkg\lib\4.6\rmarkdown\rmarkdown\templates\github_document\resources\default.md" --citeproc "C:/PROGRA~1/Pandoc/pandoc" +RTS -K512m -RTS manuscript.md --to html4 --from gfm+tex_math_dollars --output manuscript.html --embed-resources --standalone --highlight-style pygments --template "D:\RCompile\CRANpkg\lib\4.6\rmarkdown\rmarkdown\templates\github_document\resources\preview.html" --variable "github-markdown-css:D:\RCompile\CRANpkg\lib\4.6\rmarkdown\rmarkdown\templates\github_document\resources\github.css" --metadata pagetitle=PREVIEW --mathjax Preview created: manuscript.html Output created: manuscript.md v Setting active project to "D:/temp/2026_02_22_13_40_16_22806/Rtmp6LVF4C/file53744a8b10de". i Loading 'tests/testthat.R' v Loading 'tests/testthat.R' ... done v | F W S OK | Context / | 0 | mytest v | 1 | mytest == Results ===================================================================== [ FAIL 0 | WARN 0 | SKIP 0 | PASS 1 ] v Setting active project to "". v Setting active project to "D:/temp/2026_02_22_13_40_16_22806/Rtmp6LVF4C/file53744a8b10de". i Loading 'tests/testthat.R' v Loading 'tests/testthat.R' ... done v | F W S OK | Context / | 0 | mytest v | 1 | mytest == Results ===================================================================== [ FAIL 0 | WARN 0 | SKIP 0 | PASS 1 ] v Setting active project to "". v Setting active project to "D:/temp/2026_02_22_13_40_16_22806/Rtmp6LVF4C/aaa5374541229a4". v Creating manuscript files. v Adding recipe to '.worcs'. v Creating preregistration files. v Creating first commit (committing README.md). v Setting active project to "". [ FAIL 0 | WARN 0 | SKIP 2 | PASS 192 ] ══ Skipped tests (2) ═══════════════════════════════════════════════════════════ • empty test (2): 'test-boilerplate_in_manuscript.R:34:1', [ FAIL 0 | WARN 0 | SKIP 2 | PASS 192 ] > > proc.time() user system elapsed 24.64 5.96 117.04