Tidyverse 更新和 rlang - 代码不再有效
Tidyverse update and rlang - code not longer working
我有这段简单的代码:
restockingPh3NSmax_rho<-c(0,1,20)
restockingPh3BSmax_rho<-c(0,1,20)
restockingPh3ESmax_rho<-c(0,1,20)
CtrolScenRho<-as.data.frame(crossing(restockingPh3NSmax_rho,restockingPh3BSmax_rho,restockingPh3ESmax_rho))
CtrolScenRho<-CtrolScenRho%>%slice(-c(1:4,6:8,10,12,15:20,22:24,26))
此代码在昨天之前一直有效。今天,我更新了 Tidyverse,这段代码不再有效。我收到以下错误:
Error in slice_impl(.data, dots) : Evaluation error:
as_dictionary()
is defunct as of rlang 0.3.0. Please use
as_data_pronoun()
instead.
我有很多使用 Tidyverse 编码方法编写的代码可能无法正常工作。拜托,我需要解决这个问题。有什么想法吗?
已解决。
解决方案需要同时更新 R 和 R studio,然后重新安装 Tidyverse
我有这段简单的代码:
restockingPh3NSmax_rho<-c(0,1,20)
restockingPh3BSmax_rho<-c(0,1,20)
restockingPh3ESmax_rho<-c(0,1,20)
CtrolScenRho<-as.data.frame(crossing(restockingPh3NSmax_rho,restockingPh3BSmax_rho,restockingPh3ESmax_rho))
CtrolScenRho<-CtrolScenRho%>%slice(-c(1:4,6:8,10,12,15:20,22:24,26))
此代码在昨天之前一直有效。今天,我更新了 Tidyverse,这段代码不再有效。我收到以下错误:
Error in slice_impl(.data, dots) : Evaluation error:
as_dictionary()
is defunct as of rlang 0.3.0. Please useas_data_pronoun()
instead.
我有很多使用 Tidyverse 编码方法编写的代码可能无法正常工作。拜托,我需要解决这个问题。有什么想法吗?
已解决。
解决方案需要同时更新 R 和 R studio,然后重新安装 Tidyverse