-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Format of error message is wrong #66
Comments
The actual error in R looks like this:
|
Running [ ...snip... ]
You would get an error if you tried to run the equivalent targets pipeline:
``` r
tar_plan(
height = 160,
height = height / 2.54
)
```
```
##
-
\
|
```
```
##
```
```
## ── Debugging ─────────────────────────────────────────────────────────────────────────────────────────────────────
```
```
##
```
```
## ── How to ────────────────────────────────────────────────────────────────────────────────────────────────────────
```
```
##
```
```
## ── Last error message ────────────────────────────────────────────────────────────────────────────────────────────
```
```
##
```
```
## ── Last error traceback ──────────────────────────────────────────────────────────────────────────────────────────
```
```
## Error:
## ! targets::tar_make() error
## • tar_errored()
## • tar_meta(fields = any_of("error"), complete_only = TRUE)
## • tar_workspace()
## • tar_workspaces()
## • Debug: �]8;;https://books.ropensci.org/targets/debugging.html�https://books.ropensci.org/targets/debugging.html�]8;;�
## • Help: �]8;;https://books.ropensci.org/targets/help.html�https://books.ropensci.org/targets/help.html�]8;;�
## duplicated target names: height
## base::tryCatch(base::withCallingHandlers({ NULL base::saveRDS(base::do.c...
## tryCatchList(expr, classes, parentenv, handlers)
## tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), na...
## doTryCatch(return(expr), name, parentenv, handler)
## tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
## tryCatchOne(expr, names, parentenv, handlers[[1L]])
## doTryCatch(return(expr), name, parentenv, handler)
## base::withCallingHandlers({ NULL base::saveRDS(base::do.call(base::do.ca...
## base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/var/f...
## base::do.call(base::do.call, base::c(base::readRDS("/var/folders/rj/3gf6...
## (function (what, args, quote = FALSE, envir = parent.frame()) { if (!is....
## (function (targets_function, targets_arguments, options, envir = NULL, s...
## tryCatch(out <- withCallingHandlers(targets::tar_callr_inner_try(targets...
## tryCatchList(expr, classes, parentenv, handlers)
## tryCatchOne(expr, names, parentenv, handlers[[1L]])
## doTryCatch(return(expr), name, parentenv, handler)
## withCallingHandlers(targets::tar_callr_inner_try(targets_function = targ...
## targets::tar_callr_inner_try(targets_function = targets_function, target...
## pipeline_from_list(targets)
## pipeline_from_list.default(targets)
## pipeline_init(out)
## pipeline_targets_init(targets, clone_targets)
## tar_assert_unique_targets(names)
## tar_throw_validate(message)
## tar_error(message = paste0(...), class = c("tar_condition_validate", "ta...
## rlang::abort(message = message, class = class, call = tar_envir_base)
## signal_abort(cnd, .file)
```
[... snip ...] I may be wrong, but my interpretation of this is that the issue is not specific to sandpaper exactly: there is something that Fair to say that I do not have a complete understanding of |
In Episode 6, Best Practices for targets Project Organization the error message that is output (intentionally, for demonstration purposes during the lesson) by targets stretches across multiple code chunks.
The relevant code is here:
targets-workshop/episodes/organization.Rmd
Lines 135 to 143 in 80dc178
The text was updated successfully, but these errors were encountered: