插入符:未找到“ rlang_env_get”

时间:2018-06-21 15:02:29

标签: r tidyselect

几天前,我跑了library(caret),并成功了。从那以后,我更新了Rtools,现在遇到了一些我无法通过常规方法解决的错误

以下错误信息:

> library(caret)
Error: package or namespace load failed for ‘caret’:
 .onLoad failed in loadNamespace() for 'tidyselect', details:
  call: env_get(base_env(), "unlockBinding")
  error: object 'rlang_env_get' not found

tidyselect类似

> library(tidyselect)
Error: package or namespace load failed for ‘tidyselect’:
 .onLoad failed in loadNamespace() for 'tidyselect', details:
  call: env_get(base_env(), "unlockBinding")
  error: object 'rlang_env_get' not found

我都尝试install.packages

install.packages("tidyselect", dependencies = c("Depends", "Suggests"))

这样做时,我可以加载tidyselect,但不能加载caret。然后,我决定尝试使用caretdevtools::install_github('topepo/caret/pkg/caret')的github版本。失败并显示了几条错误消息:

Error in is_list(x) : object 'rlang_is_list' not found
Error : unable to load R code in package 'ggplot2'
ERROR: lazy loading failed for package 'ggplot2'
* removing 'C:/.../R/win-library/3.5/ggplot2'
* restoring previous 'C:/.../R/win-library/3.5/ggplot2'

Error : .onLoad failed in loadNamespace() for 'tidyselect', details:
  call: env_get(base_env(), "unlockBinding")
  error: object 'rlang_env_get' not found
ERROR: lazy loading failed for package 'caret'

sessionInfo():

R version 3.5.0 (2018-04-23)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

关于我应该看什么的任何想法都很棒。 谢谢,乔尼

1 个答案:

答案 0 :(得分:0)