> tar_make()
• start target example_data
✖ error target example_data
• end pipeline
Error : object 'n' not found
Error: callr subprocess failed: object 'n' not found
Visit https://books.ropensci.org/targets/debugging.html for debugging advice.
I suspect because n is not defined in generate_data() (but is fine in tar_jags_example_data() which is run when generating the vignette?)
It's not clear to me (at this point of neophyte experience) if one should parameterize generate_data() as generate_data(n) or if n is better fixed (otherwise I would have just submitted a PR :)).
Prework
jagstargets
and not a known limitation or usage error.Description
This is part of ropensci/software-review#425.
Running
tar_make()
at this line fails:I suspect because
n
is not defined ingenerate_data()
(but is fine intar_jags_example_data()
which is run when generating the vignette?)It's not clear to me (at this point of neophyte experience) if one should parameterize
generate_data()
asgenerate_data(n)
or ifn
is better fixed (otherwise I would have just submitted a PR :)).Reproducible example
Expected result
The pipeline to run :)
Diagnostic information
Using fc3154d