本文介绍了我在基本安装软件包和库调用方面遇到麻烦的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

执行时

install.packages("dplyr")

install.packages("dplyr")

我知道

错误:版本说明"NA"无效另外:警告消息:在utils ::: packageDescription(packageName,fields ="Version")中:找不到软件包"knitr"

Error: invalid version specification ‘NA’In addition: Warning message:In utils:::packageDescription(packageName, fields = "Version") : no package 'knitr' was found

然后我调用该库,它显然也不起作用-

Then I call the library and it obviously doesn't work either -

库(dplyr)

错误:"dplyr"的程序包或名称空间加载失败:.onLoad在loadNamespace()中对于支柱"失败,详细信息:呼叫:utils :: packageVersion("vctrs")错误:找不到包"vctrs"另外:警告消息:软件包"dplyr"是在R版本3.5.3下构建的

Error: package or namespace load failed for ‘dplyr’: .onLoad failed in loadNamespace() for 'pillar', details: call: utils::packageVersion("vctrs") error: package ‘vctrs’ not foundIn addition: Warning message:package ‘dplyr’ was built under R version 3.5.3

我正在尝试使用%>%进行突变.根据公司政策,将不会发布完整的代码.我只需要帮助,为什么对我来说,诸如安装软件包和调用库之类的简单操作不起作用...

I am trying to use %>% and mutate. Will not post that full code due to company policy. I just need help with why something as simple as installing packages and calling libraries doesn't work for me...

推荐答案

您尝试过

 install.packages('knitr', dependencies = TRUE)

?

让我知道这是否行不通.

Let me know if this doesn't work.

这篇关于我在基本安装软件包和库调用方面遇到麻烦的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 17:35