懒惰重写dplyr? [英] Lazyeval over-writing dplyr?

查看:105
本文介绍了懒惰重写dplyr?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不太了解什么是 lazyeval,我试图安装并运行该软件包以在功能中使用dplyr。

Not quite understanding what "lazyeval" is, I was trying to install and run the package to use dplyr within a function.

我跑步时

library(lazyeval)

我收到错误消息:

Error in library(lazyeval) : there is no package called 'lazyeval'

成功安装后。

现在,当我尝试运行任何标准dplyr脚本时,会收到以下错误消息:

Now, though, when I try to run any standard dplyr script, I get the following error message:

Error in loadNamespace(name) : there is no package called 'lazyeval'

这好像是lazyeval覆盖了dplyr,但是我实际上不能使用lazyeval。

It's as if the lazyeval has over-written dplyr, but I can't actually use lazyeval.

有人遇到过这个问题吗?如果是这样,您如何解决?

Has anyone run into this issue? If so, how did you resolve?

一些信息:

sessionInfo()
R version 3.1.2 (2014-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United States.1252 
[2] LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] grid      splines   stats     graphics  grDevices utils     datasets 
[8] methods   base     

other attached packages:
 [1] scales_0.2.4     gridExtra_0.9.1  ggplot2_1.0.0    forecast_5.4    
 [5] timeDate_3010.98 reshape2_1.4     xts_0.9-7        zoo_1.7-11      
 [9] lubridate_1.3.3  dplyr_0.4.1      plyr_1.8.1      

loaded via a namespace (and not attached):
 [1] assertthat_0.1   colorspace_1.2-4 DBI_0.3.1        digest_0.6.4    
 [5] fracdiff_1.4-2   gtable_0.1.2     lattice_0.20-29  magrittr_1.0.1  
 [9] MASS_7.3-35      memoise_0.2.1    munsell_0.4.2    nnet_7.3-8      
[13] parallel_3.1.2   proto_0.3-10     quadprog_1.5-5   Rcpp_0.11.1     
[17] stringr_0.6.2    tools_3.1.2      tseries_0.10-32 

当我跑步时。 libPaths(),我得到两个目录:

When I run .libPaths(), I get two directories:

[1] "C:/Users/MTULLA/Documents/R/win-library/3.1"
[2] "C:/Program Files/R/R-3.1.2/library"   

首先,我可以找到dplyr和lazyeval,它们都带有.dll文件。在第二个中,我也找不到

In the first, I can find both dplyr and lazyeval, both with .dll files. In the second, I can't find either

推荐答案

在运行获取和清理数据课程1时,我也收到了此消息

I also got this message when running the lesson 1 of Getting and Cleaning Data on Swirl.


软件包'dplyr'正确加载!

Package ‘dplyr’ loaded correctly!

loadNamespace(name)错误:没有软件包称为 lazyeval

Error in loadNamespace(name) : there is no package called ‘lazyeval’

重新安装软件包也无效

此问题通过使用更新我的R版本来解决{installr}软件包

It was solved by updating my R version using the {installr} package

这篇关于懒惰重写dplyr?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆