【问题标题】:Tidyverse update and rlang - code not longer workingTidyverse 更新和 rlang - 代码不再工作
【发布时间】:2019-03-30 16:29:22
【问题描述】:

我有这段简单的代码:

  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,这段代码不再有效。我收到以下错误:

slice_impl(.data, dots) 中的错误:评估错误: as_dictionary() 自 rlang 0.3.0 起已失效。请用 as_data_pronoun() 代替。

我有很多使用 Tidyverse 编码方法编写的代码可能无法正常工作。拜托,我需要解决这个问题。有什么想法吗?

【问题讨论】:

    标签: r dplyr tidyverse slice rlang


    【解决方案1】:

    解决了。

    解决方案需要同时更新 R 和 R studio,然后重新安装 Tidyverse

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-12-14
      • 1970-01-01
      • 2018-03-05
      • 1970-01-01
      相关资源
      最近更新 更多