[英]R error - package 'colorspace' not loading from tidyverse
I'm new to R, and am following some instructions to start exploring graphics. 我是R的新手,并且正在按照一些说明开始探索图形。 I have installed tidyverse, but when I try to library(tidyverse) I get the following:
我已经安装了tidyverse,但是当我尝试library(tidyverse)时,我得到了以下信息:
Error: package or namespace load failed for 'tidyverse' in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): there is no package called 'colorspace'
错误:在loadNamespace(i,c(lib.loc,.libPaths()),versionCheck = vI [[i]])中“ tidyverse”的包或名称空间加载失败:没有名为“ colorspace”的包
I've gone to the colorspace page on cran and downloaded the file manually, but when I tried to install it I got this: 我去了cran上的colorspace页面并手动下载了文件,但是当我尝试安装它时,我得到了:
Installing package into 'C:/Users/Neil/Documents/R/win-library/3.5' (as 'lib' is unspecified) Warning in install.packages : package 'colorspace_1.2-5.zip' is not available (for R version 3.5.1)
将软件包安装到“ C:/Users/Neil/Documents/R/win-library/3.5”(未指定“ lib”)install.packages中的警告:软件包“ colorspace_1.2-5.zip”不可用(适用于R版本3.5.1)
Does this mean I can't use colorspace at all with my (up to date) version of R, and does that mean I can't use tidyverse as a result? 这是否意味着我的R版本(最新版本)根本不能使用色彩空间,是否也就不能使用tidyverse? Or is there a way around this?
还是有办法解决?
Thanks. 谢谢。 A Newbie.
一个新手。
Try installing the devtools
package and then run: 尝试安装
devtools
软件包,然后运行:
devtools::install_github('cran/colorspace')
This would install from Github, not CRAN. 这将从Github安装,而不是CRAN。
Does that work? 那样有用吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.