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
I have a large (for me) plan with about 100 targets. While working on it, I had some subtly invalid code. The code parsed with the R parser, but it was definitely an error on my part. When I tried to run the plan, I got the error below. It took me a bit of time to find the problem because the error didn't give any real hints of where the problem started.
The request is to catch coding errors like this and give a more informative error than "subscript out of bounds".
Reproducible example
library(drake)
foo<-function() {
# Whoops, that plus sign at the end of the line was not intended
scale_y_log10() +mod<-list()
}
make(drake_plan(bar=foo()))
#> Error in e[[2]]: subscript out of bounds
Prework
Description
I have a large (for me) plan with about 100 targets. While working on it, I had some subtly invalid code. The code parsed with the R parser, but it was definitely an error on my part. When I tried to run the plan, I got the error below. It took me a bit of time to find the problem because the error didn't give any real hints of where the problem started.
The request is to catch coding errors like this and give a more informative error than "subscript out of bounds".
Reproducible example
Created on 2021-07-01 by the reprex package (v2.0.0)
The text was updated successfully, but these errors were encountered: