Defunct as of rlang 0.3.0 and mutate_impl

后端 未结 7 1805
轮回少年
轮回少年 2021-01-03 22:25

I am trying to use the following function but every time I do, I receive the error below. I tried installing an older version of rlang as it works on a different R Studio bu

7条回答
  •  臣服心动
    2021-01-03 23:02

    To solve this issue within a docker container, I ended up having to use devtools::install_version(..., dep = FALSE) to install an older version of rlang and manually install all dependencies for the packages I needed like dplyr.

    Simply installing dplyr will install (or update) to the most recent version of rlang which released 0.3.0 on 2018-10-22 according to CRAN. Although I haven't figured out what changed with rlang and as_dictionary, this is a current workaround.

    Although this was a pain, it did work. To find all imports for a particular package you can use as.data.frame(installed.packages()) and filter for the specific package name you are interested in. The column name is Imports.

    Edit:
    Although I have not tested it myself, another solution I found online is to upgrade dplyr to 0.7.7.

提交回复
热议问题