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
Errors in targets aren't returned when running r_make. Get Error in assign(dumpto, last.dump, envir = .GlobalEnv) : cannot add bindings to a locked environment
#969
Closed
PedramNavid opened this issue
Aug 1, 2019
· 1 comment
[x ] Search for duplicates among the existing issues, both open and closed.
[x ] Advanced users: verify that the bug still persists in the current development version (i.e. remotes::install_github("ropensci/drake")) and mention the SHA-1 hash of the Git commit you install.
After upgrading R and drake, I noticed a change in behaviour when using r_make. Previously errors in targets would show up in the console, but they no longer do. Instead, I get
fail do_something
Error in assign(dumpto, last.dump, envir = .GlobalEnv) :
cannot add bindings to a locked environment
Reproducible example
library(drake)
my_func<-function(x) {
if(is.null(x)) stop("Oops")
}
my_plan<- drake_plan(
do_something= my_func()
)
make(my_plan)
#> target do_something#> fail do_something#> Error: Target `do_something` failed. Call `diagnose(do_something)` for details. Error message:#> argument "x" is missing, with no default
but with r_make
> r_make(source='test.R')
#> target do_something#> fail do_something#> Error in assign(dumpto, last.dump, envir = .GlobalEnv) : #> cannot add bindings to a locked environment
Prework
drake
's code of conduct.remotes::install_github("ropensci/drake")
) and mention the SHA-1 hash of the Git commit you install.Using SHA-1: a33858e
Description
After upgrading R and drake, I noticed a change in behaviour when using r_make. Previously errors in targets would show up in the console, but they no longer do. Instead, I get
Reproducible example
but with
r_make
Session info
Session info
Expected output
What output would the correct behavior have produced?
Correct behaviour would be to show the same error when running either
make
orr_make
The text was updated successfully, but these errors were encountered: