我不断遇到这个issue,其中purrr::invoke
掩盖了sparklyr::invoke
. 它导致{sparklyr}
个功能中的许多功能无法工作.
我可以用invoke <- sparklyr::invoke
来修复它,但这似乎是一个黑客. 有没有办法在library()
中使用exclude
参数?
我try 了这两种方法,但都不起作用.
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>
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>