无法在R中的debian 7.6上安装ggp​​lot2 [英] Can't install ggplot2 at debian 7.6 in R

查看:285
本文介绍了无法在R中的debian 7.6上安装ggp​​lot2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天,我正在尝试安装一个很好的可视化库并创建名为" ggplot2 "的图形,但是我实际上在安装时遇到了问题!

Today i'm trying to install a good library for visualization and create graphics, named "ggplot2", but i actually have a problems with installation!

我在输出中有什么

将软件包安装到"/home/hamsternik/R/x86_64-pc-linux-gnu-library/3.1"(未指定"lib") 还安装了依赖项"munsell","scales","testthat"

Installing package into ‘/home/hamsternik/R/x86_64-pc-linux-gnu-library/3.1’ (as ‘lib’ is unspecified) also installing the dependencies ‘munsell’, ‘scales’, ‘testthat’

尝试URL' http://cran.rstudio.com/src /contrib/munsell_0.4.2.tar.gz '内容类型'application/x-gzip'长度91026字节(88 Kb)打开的URL ================= ================================

trying URL 'http://cran.rstudio.com/src/contrib/munsell_0.4.2.tar.gz' Content type 'application/x-gzip' length 91026 bytes (88 Kb) opened URL ==================================================

尝试使用网址" http://cran.rstudio下载了88 Kb. com/src/contrib/scales_0.2.4.tar.gz '内容类型'application/x-gzip'长度40093字节(39 Kb)打开的URL ============== ==================================

downloaded 88 Kb trying URL 'http://cran.rstudio.com/src/contrib/scales_0.2.4.tar.gz' Content type 'application/x-gzip' length 40093 bytes (39 Kb) opened URL ==================================================

下载39 Kb尝试使用URL' http://cran.rstudio. com/src/contrib/testthat_0.8.1.tar.gz '内容类型'application/x-gzip'长度40777字节(39 Kb)打开的URL ============== ==================================

downloaded 39 Kb trying URL 'http://cran.rstudio.com/src/contrib/testthat_0.8.1.tar.gz' Content type 'application/x-gzip' length 40777 bytes (39 Kb) opened URL ==================================================

下载39 Kb尝试使用URL' http://cran.rstudio. com/src/contrib/ggplot2_1.0.0.tar.gz '内容类型'application/x-gzip'长度2351447字节(2.2 Mb)打开的URL ============== ==================================

downloaded 39 Kb trying URL 'http://cran.rstudio.com/src/contrib/ggplot2_1.0.0.tar.gz' Content type 'application/x-gzip' length 2351447 bytes (2.2 Mb) opened URL ==================================================

下载了2.2 Mb *安装了 source 软件包'munsell'... **软件包'munsell'成功解压缩,并检查了MD5总和** R ** inst **准备延迟加载软件包错误:软件包'colorspace'在R 3.0.0之前构建:请重新安装它错误:软件包'munsell'的延迟加载失败*删除'/home/hamsternik/R/x86_64-pc-linux-gnu-library/3.1/munsell

downloaded 2.2 Mb * installing source package ‘munsell’ ... ** package ‘munsell’ successfully unpacked and MD5 sums checked ** R ** inst ** preparing package for lazy loading Error : package ‘colorspace’ was built before R 3.0.0: please re-install it ERROR: lazy loading failed for package ‘munsell’ * removing ‘/home/hamsternik/R/x86_64-pc-linux-gnu-library/3.1/munsell’

install.packages中的警告:软件包"munsell"的安装具有非零退出状态*安装 source 软件包"testthat" ... **软件包"testthat"已成功解包并检查了MD5的总和** R ** inst **为延迟加载准备软件包错误:软件包"digest"是在R 3.0.0之前构建的:请重新安装它错误:延迟加载失败的软件包"testthat" *删除了"/home/hamsternik/R/x86_64-pc-linux-gnu-library/3.1/testthat'

Warning in install.packages : installation of package ‘munsell’ had non-zero exit status * installing source package ‘testthat’ ... ** package ‘testthat’ successfully unpacked and MD5 sums checked ** R ** inst ** preparing package for lazy loading Error : package ‘digest’ was built before R 3.0.0: please re-install it ERROR: lazy loading failed for package ‘testthat’ * removing ‘/home/hamsternik/R/x86_64-pc-linux-gnu-library/3.1/testthat’

install.packages中的警告:软件包"testthat"的安装具有非零退出状态错误:依赖项"munsell"不可用于软件包"scales" *删除"/home/hamsternik/R/x86_64-pc-linux" -gnu-library/3.1/scales'

Warning in install.packages : installation of package ‘testthat’ had non-zero exit status ERROR: dependency ‘munsell’ is not available for package ‘scales’ * removing ‘/home/hamsternik/R/x86_64-pc-linux-gnu-library/3.1/scales’

install.packages中的警告:软件包"scales"的安装具有非零退出状态错误:依赖项"scales"不可用于软件包"ggplot2" *删除"/home/hamsternik/R/x86_64-pc-linux" -gnu-library/3.1/ggplot2'

Warning in install.packages : installation of package ‘scales’ had non-zero exit status ERROR: dependency ‘scales’ is not available for package ‘ggplot2’ * removing ‘/home/hamsternik/R/x86_64-pc-linux-gnu-library/3.1/ggplot2’

install.packages中的警告:软件包"ggplot2"的安装具有非零退出状态.下载的源软件包位于"/tmp/RtmpDEeNck/downloaded_pa​​ckages"中

Warning in install.packages : installation of package ‘ggplot2’ had non-zero exit status The downloaded source packages are in ‘/tmp/RtmpDEeNck/downloaded_packages’

我实际上使用的是debian-stable系统(v.7.6),下一个决定是在控制台中安装" r-cran-ggplot2 ". 而当我安装它们时,我想到的是我拥有这个库,但是当我在Rstudio中编写: library(ggplot2)时,我会收到下一条消息:错误:软件包'ggplot2'是在之前构建的R 3.0.0:请重新安装

I actually use a debian-stable system (v.7.6) and the next decision was to install "r-cran-ggplot2" in the console. And when i install them, i think about i having this library, but when i write in Rstudio: library(ggplot2), i take next message: Error: package ‘ggplot2’ was built before R 3.0.0: please re-install it

但是我有一个最新版本-3.1.1! 对于这个问题,我真的找不到任何好的答案!请帮忙!

But i have a the up-to-date version - 3.1.1! I really don't find any good answers for that question! PLeas, help!

推荐答案

好的,问题实际上已经解决了!

OK, problem is actually done!

我所做的全部-删除所有软件包,包括' R-cran-.* ',然后再次安装,但不安装我在 search 在Konsole中执行命令.我只安装r-base,接下来我安装R Studio.因此,我可以直接安装每个具有依赖项的软件包,并且它们将被实际安装!

All what i make - remove all packages, including 'R-cran-.*' and again install it, but not install all packages which i find by the search command in konsole. I install only r-base, next i install R studio. Thus i can straightforwardly install every package with dependencies and they will be actually installed!

这篇关于无法在R中的debian 7.6上安装ggp​​lot2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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