I keep on running into this issue
https://github.com/sparklyr/sparklyr/issues/1831
where purrr::invoke
is masking sparklyr::invoke
. It causes a lot of sparklyr
to not work.
I can fix it with invoke <- sparklyr::invoke
, but it seems like a hack. Is there a way to use the exclude
argument in library()
instead?
I tried both of these, and neither worked.
<code>library(tidyverse, exclude = "invoke")
#> Warning in rm(list = exclude, envir = env): object 'invoke' not found
invoke
#> function (.f, .x = NULL, ..., .env = NULL)
#> {
#> lifecycle::deprecate_soft("1.0.0", "invoke()", "exec()")
#> .env <- .env %||% parent.frame()
#> args <- c(as.list(.x), list(...))
#> do.call(.f, args, envir = .env)
#> }
#> <bytecode: 0x000001a77b6339f0>
#> <environment: namespace:purrr>
</code>
<code>library(tidyverse, exclude = "invoke")
#> Warning in rm(list = exclude, envir = env): object 'invoke' not found
invoke
#> function (.f, .x = NULL, ..., .env = NULL)
#> {
#> lifecycle::deprecate_soft("1.0.0", "invoke()", "exec()")
#> .env <- .env %||% parent.frame()
#> args <- c(as.list(.x), list(...))
#> do.call(.f, args, envir = .env)
#> }
#> <bytecode: 0x000001a77b6339f0>
#> <environment: namespace:purrr>
</code>
library(tidyverse, exclude = "invoke")
#> Warning in rm(list = exclude, envir = env): object 'invoke' not found
invoke
#> function (.f, .x = NULL, ..., .env = NULL)
#> {
#> lifecycle::deprecate_soft("1.0.0", "invoke()", "exec()")
#> .env <- .env %||% parent.frame()
#> args <- c(as.list(.x), list(...))
#> do.call(.f, args, envir = .env)
#> }
#> <bytecode: 0x000001a77b6339f0>
#> <environment: namespace:purrr>
Created on 2024-04-30 with reprex v2.1.0
<code>library(tidyverse, exclude = "purrr::invoke")
#> Warning in rm(list = exclude, envir = env): object 'purrr::invoke' not found
invoke
#> function (.f, .x = NULL, ..., .env = NULL)
#> {
#> lifecycle::deprecate_soft("1.0.0", "invoke()", "exec()")
#> .env <- .env %||% parent.frame()
#> args <- c(as.list(.x), list(...))
#> do.call(.f, args, envir = .env)
#> }
#> <bytecode: 0x000001c03be31e78>
#> <environment: namespace:purrr>
</code>
<code>library(tidyverse, exclude = "purrr::invoke")
#> Warning in rm(list = exclude, envir = env): object 'purrr::invoke' not found
invoke
#> function (.f, .x = NULL, ..., .env = NULL)
#> {
#> lifecycle::deprecate_soft("1.0.0", "invoke()", "exec()")
#> .env <- .env %||% parent.frame()
#> args <- c(as.list(.x), list(...))
#> do.call(.f, args, envir = .env)
#> }
#> <bytecode: 0x000001c03be31e78>
#> <environment: namespace:purrr>
</code>
library(tidyverse, exclude = "purrr::invoke")
#> Warning in rm(list = exclude, envir = env): object 'purrr::invoke' not found
invoke
#> function (.f, .x = NULL, ..., .env = NULL)
#> {
#> lifecycle::deprecate_soft("1.0.0", "invoke()", "exec()")
#> .env <- .env %||% parent.frame()
#> args <- c(as.list(.x), list(...))
#> do.call(.f, args, envir = .env)
#> }
#> <bytecode: 0x000001c03be31e78>
#> <environment: namespace:purrr>
Created on 2024-04-30 with reprex v2.1.0