-
Help
DescriptionI've started a brand new R project and want to use targets. In an empty directory, and using renv::activate()
print(list.files(all.files = T))
#> [1] "." ".."
#> [3] ".Rprofile" "cilia-stag_reprex.R"
#> [5] "cilia-stag_reprex.spin.R" "cilia-stag_reprex.spin.Rmd"
#> [7] "renv"
renv::install('targets', prompt=FALSE)
#> The following package(s) will be installed:
#> - backports [1.5.0]
#> - base64url [1.4]
#> - cpp11 [0.5.2]
#> - data.table [1.17.8]
#> - igraph [2.1.4]
#> - magrittr [2.0.4]
#> - pillar [1.11.1]
#> - pkgconfig [2.0.3]
#> - prettyunits [1.2.0]
#> - secretbase [1.0.5]
#> - targets [1.11.4]
#> - tibble [3.3.0]
#> - tidyselect [1.2.1]
#> - utf8 [1.2.6]
#> - vctrs [0.6.5]
#> These packages will be installed into "~/Repos/project/renv/library/macos/R-4.4/aarch64-apple-darwin20".
#>
#> # Installing packages --------------------------------------------------------
#> - Installing backports ... OK [copied from cache]
#> - Installing base64url ... OK [copied from cache]
#> - Installing data.table ... OK [copied from cache]
#> - Installing magrittr ... OK [copied from cache]
#> - Installing pkgconfig ... OK [copied from cache]
#> - Installing vctrs ... OK [copied from cache]
#> - Installing cpp11 ... OK [copied from cache]
#> - Installing igraph ... OK [copied from cache]
#> - Installing prettyunits ... OK [copied from cache]
#> - Installing secretbase ... OK [copied from cache]
#> - Installing utf8 ... OK [copied from cache]
#> - Installing pillar ... OK [copied from cache]
#> - Installing tibble ... OK [copied from cache]
#> - Installing tidyselect ... OK [copied from cache]
#> - Installing targets ... OK [copied from cache]
#> Successfully installed 15 packages in 0.39 seconds.
targets::use_targets()
#> ✔ Wrote _targets.R
print(list.files(all.files = T))
#> [1] "_targets.R" "."
#> [3] ".." ".Rprofile"
#> [5] "cilia-stag_reprex.R" "cilia-stag_reprex.spin.R"
#> [7] "cilia-stag_reprex.spin.Rmd" "renv"
targets::tar_make()
#> - The project is out-of-sync -- use `�]8;;x-r-run:renv::status()�renv::status()�]8;;�` for details.
#> tar_source(): these files do not exist: R
#> + data dispatched
#> ✔ data completed [5ms, 1.74 kB]
#> + model dispatched
#> ✔ model completed [1ms, 107 B]
#> ✔ ended pipeline [87ms, 2 completed, 0 skipped]
print(list.files(all.files = T))
#> [1] "_targets" "_targets.R"
#> [3] "." ".."
#> [5] ".Rprofile" "cilia-stag_reprex.R"
#> [7] "cilia-stag_reprex.spin.R" "cilia-stag_reprex.spin.Rmd"
#> [9] "renv"
targets::tar_load_everything()
#> Error:
#> ! branches not in metadata: branches out of rangeCreated on 2025-09-28 with reprex v2.1.1 As you can see, the pipeline succeeds in being built but loading everything from the pipeline fails. However, I am able to use Could someone please help me understand what the error is trying to tell me and why I can't load all targets? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
This is a bug reported in #1529. Should be fixed in the development version. pak::pkg_install("ropensci/targets") |
Beta Was this translation helpful? Give feedback.
This is a bug reported in #1529. Should be fixed in the development version.