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
Hi there. After the recent update to 5.1.0 there is some really strange error when a function calls %in% in the code. Both when calling drake::drake_config or drake::make, I get: Error in collector$functionHandlers: object of type 'closure' is not subsettable.
A nearly (minimal) code below. Although note that the error still shows up when dplyr is not loaded.
library(drake)
library(dplyr)
x <- function(){
mtcars %>%
filter(as.character(mpg) %in% c("21"))
}
plan <- drake_plan(a = x)
drake_config(plan)
make(plan)
Thanks for the report and the encouragement. I am almost positive this is another instance of #268 and possibly related to duncantl/CodeDepends#17 and duncantl/CodeDepends#26. The error should vanish if you replace filter() with dplyr::filter() or update to the latest development version of CodeDepends on GitHub (for onlookers, devtools::install_github("duncantl/CodeDepends")).
Hi there. After the recent update to 5.1.0 there is some really strange error when a function calls
%in%
in the code. Both when callingdrake::drake_config
ordrake::make
, I get: Error in collector$functionHandlers: object of type 'closure' is not subsettable.A nearly (minimal) code below. Although note that the error still shows up when
dplyr
is not loaded.Session information below:
Thanks & keep up the good work. I really love this package!
The text was updated successfully, but these errors were encountered: