简体   繁体   English

为什么在 R 中使用管道运算符会出现以下错误?

[英]Why do I get the following error using pipe operator in R?

How do I resolve the following error:如何解决以下错误:

Error in dots_values(...) : object 'rlang_dots_values' not found dots_values(...) 中的错误:找不到对象“rlang_dots_values”

I'm getting this error when executing a statement like this:执行这样的语句时出现此错误:

dataset <- dataset %>% mutate(col_name1 = ifelse(col_name2 > 201952, 0.875, col_name1))

Note: I have already tried to update and reinstall rlang, rjava, dplyr, magrittr, along with my system's JDK.注意:我已经尝试更新和重新安装 rlang、rjava、dplyr、magrittr 以及我系统的 JDK。

Apparently this is mostly caused due to security limitation on your workstation as R packages can only run to packages installed on the following path C:\\R\\R-[R version]\\library.显然,这主要是由于工作站的安全限制造成的,因为 R 包只能运行到安装在以下路径 C:\\R\\R-[R version]\\library 上的包。

You can either contact your administrator and change the privileges on your workstation or install packages only to this path C:\\R\\R-[R version]\\library.您可以联系管理员并更改工作站上的权限,也可以仅将软件包安装到此路径 C:\\R\\R-[R version]\\library。

Reference: https://community.rstudio.com/t/error-object-rlang-dots-list-not-found/10555/3参考: https : //community.rstudio.com/t/error-object-rlang-dots-list-not-found/10555/3

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM