You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this example, variables defined in _targets.r conflict with identically-named functions imported by packages specified via tar_option_set(). The following example reproduces the error with plan(callr) and tar_make_future(). The issue does not occur when calling tar_make() or using plan(sequential). In this example, a variable year declared in _targets.r conflicts with the function lubridate::year().
targets::tar_make_future(workers=2)
## start target test_A## start target test_B## error target test_A## end pipeline## Error in tar_throw_run(target$metrics$error) :## attempt to replicate an object of type 'closure'## Error in `tar_throw_run()`:## ! callr subprocess failed: attempt to replicate an object of type 'closure'## Visit https://books.ropensci.org/targets/debugging.html for debugging advice.## Run `rlang::last_error()` to see where the error occurred.
The text was updated successfully, but these errors were encountered:
Just crossed with this by chance...
I think this may have some relation with tidyevaluation. As the variable year is global, it may collide with the function name. Try to use dplyr::all_of(year) instead and see if it works.
Originally posted in ropensci/targets#761
In this example, variables defined in
_targets.r
conflict with identically-named functions imported by packages specified viatar_option_set()
. The following example reproduces the error withplan(callr)
andtar_make_future()
. The issue does not occur when callingtar_make()
or usingplan(sequential)
. In this example, a variableyear
declared in_targets.r
conflicts with the functionlubridate::year()
._targets.r
R/test.r
console
The text was updated successfully, but these errors were encountered: