标签: install.packages

为 R 安装 data.table 时出现问题

我正在尝试为 R 安装 data.table 库,但我无法让它工作。我已经尝试使用 CRAN 和 Bioconductor,但我一直收到一个错误,即该软件包不可用于 R 3.2.2:

> biocLite('data.table')
 BioC_mirror: http://bioconductor.org
 Using Bioconductor version 3.1 (BiocInstaller 1.18.4), R version 3.2.2.
Installing package(s) ‘data.table’
Warning: unable to access index for repository  
  https://cran.rstudio.com/src/contrib
Warning: unable to access index for repository   
https://cran.rstudio.com/src/contrib
Warning message:
package ‘datatable’ is not available (for R version 3.2.2) 
> install.packages("data.table")
Warning: unable to access index for repository     
https://cran.rstudio.com/src/contrib
Warning message:
package ‘data.table’ is not available (for R version 3.2.2) 
Run Code Online (Sandbox Code Playgroud)

我真的不知道该怎么做……对 R 非常陌生。

r bioconductor install.packages data.table

2
推荐指数
1
解决办法
2万
查看次数

在Windows上安装软件包错误:软件包“ cldr”的编译失败

url <- "http://cran.us.r-project.org/src/contrib/Archive/cldr/cldr_1.1.0.tar.gz"
pkgFile<-"cldr_1.1.0.tar.gz"
download.file(url = url, destfile = pkgFile)
Run Code Online (Sandbox Code Playgroud)

安慰

>trying URL 'http://cran.us.r-project.org/src/contrib/Archive/cldr/cldr_1.1.0.tar.gz'
Content type 'application/x-gzip' length 2296083 bytes (2.2 MB)
==============================
  downloaded 2.2 MB

install.packages(pkgs = pkgFile, type = "source", repos = NULL)

> Installing package into ‘C: / Users / v - xuawan / Documents / R / win -
  library / 3.2’
(as ‘lib’ is unspecified)
* installing * source * package 'cldr' ...
** package 'cldr' successfully unpacked and MD5 sums checked
** libs

> …
Run Code Online (Sandbox Code Playgroud)

windows r install.packages cldr

2
推荐指数
1
解决办法
1万
查看次数

安装RQuantLib

我试图从RStudio安装RQuantLib,但它给了我一些问题.

我将我的R版本更新为3.3.1,并尝试install.packages("RQuantLib")按照作者网页(http://dirk.eddelbuettel.com/code/rquantlib.html)的建议使用通常的方式安装软件包().但是,它给出了以下错误消息:

install.packages中的警告:
包'RQuantLib'不可用(对于R版本3.3.1)

我也尝试在不同的计算机上安装它,但我得到了相同的错误消息.

有没有其他人遇到同样的问题或有任何想法可能会出错?谢谢!

r install.packages

2
推荐指数
1
解决办法
4451
查看次数

如何备份 Anaconda 添加的包?

我有 Python 2 的 Anaconda,它包含了很多有用的包。在我的工作中,我使用conda install命令向它添加了几个包。现在我必须格式化我的系统,我想备份/打包所有添加的库,要么是完整的包,要么是知道每个库的安装命令。

我搜索了StackOverflow,我发现了一个有类似问题的未回答问题,建议conda list -e >file_list.txt创建一个文件的问题包含所有已安装的包,但这对我来说还不够,我希望 Anaconda 确定我添加了哪个包,以及由哪个包添加命令,或完整打包添加的包。

感谢帮助。

python backup install.packages anaconda conda

2
推荐指数
1
解决办法
7538
查看次数

在R(v3.2.2)中安装ggp​​lot2; 说它已安装但无法找到/使​​用?

我在R中安装ggp​​lot2软件包时遇到问题.根据R-studio,我安装了最新版本; 这是R studio首次加载时的说法:

R version 3.2.2 (2015-08-14) -- "Fire Safety"
Copyright (C) 2015 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
Run Code Online (Sandbox Code Playgroud)

我假设这意味着我正在使用正确的版本.但是,当我尝试使用install.packages("ggplot2")命令安装ggp​​lot2包时,我收到以下错误(必须在pastebin中发布,因为它包含链接):

http://pastebin.com/deqn0vFw

It appears to be some kind of error with my internet connection (not sure how to fix it, googling didn't seem to give a concrete answer). After I got that error, I went ahead and just tried downloading the .zip file for ggplot2 from the official CRAN website. Then, in R-Studio I went ahead …

r ggplot2 install.packages

0
推荐指数
1
解决办法
1万
查看次数