我正在尝试为 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 非常陌生。
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) 我试图从RStudio安装RQuantLib,但它给了我一些问题.
我将我的R版本更新为3.3.1,并尝试install.packages("RQuantLib")按照作者网页(http://dirk.eddelbuettel.com/code/rquantlib.html)的建议使用通常的方式安装软件包().但是,它给出了以下错误消息:
install.packages中的警告:
包'RQuantLib'不可用(对于R版本3.3.1)
我也尝试在不同的计算机上安装它,但我得到了相同的错误消息.
有没有其他人遇到同样的问题或有任何想法可能会出错?谢谢!
我有 Python 2 的 Anaconda,它包含了很多有用的包。在我的工作中,我使用conda install命令向它添加了几个包。现在我必须格式化我的系统,我想备份/打包所有添加的库,要么是完整的包,要么是知道每个库的安装命令。
我搜索了StackOverflow,我发现了一个有类似问题的未回答问题,建议conda list -e >file_list.txt创建一个文件的问题包含所有已安装的包,但这对我来说还不够,我希望 Anaconda 确定我添加了哪个包,以及由哪个包添加命令,或完整打包添加的包。
感谢帮助。
我在R中安装ggplot2软件包时遇到问题.根据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")命令安装ggplot2包时,我收到以下错误(必须在pastebin中发布,因为它包含链接):
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 ×4
anaconda ×1
backup ×1
bioconductor ×1
cldr ×1
conda ×1
data.table ×1
ggplot2 ×1
python ×1
windows ×1