windows 包 doMC 不可用于 R 版本 3.0.0 在 install.packages 警告
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16453625/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
package doMC NOT available for R version 3.0.0 warning in install.packages
提问by Yu Le
For some packages like doMC & doSMP, i get the warning & inability to library(doMC). As shown below, i have no problem with subselect thus no file/directory permission issue. Also tried repo=http://cran.us.r-project.org& others, no luck. please advise.
对于诸如 doMC 和 doSMP 之类的某些软件包,我收到警告和无法访问库(doMC)。如下所示,我对子选择没有问题,因此没有文件/目录权限问题。也试过 repo= http://cran.us.r-project.org和其他人,没有运气。请指教。
ps: for the unexpected Japanese characters, i have no clue; i assume that is a separable issue; no response yet from support.rstudio.org/help/discussions/problems/6009-japanese-characters-show-unexpectedly
ps:对于突如其来的日文字符,我一无所知;我认为这是一个可分离的问题;support.rstudio.org/help/discussions/problems/6009-japanese-characters-show-unexpectedly 尚未回复
> install.packages('doMC')
Warning in install.packages :
package 租oMC?is not available (for R version 3.0.0)
Installing package into 舛:/Users/YULE/Documents/R/win-library/3.0?(as 鼠ib?is unspecified)
Warning in install.packages :
package 租oMC?is not available (for R version 3.0.0)
> install.packages('subselect')
Installing package into 舛:/Users/YULE/Documents/R/win-library/3.0?(as 鼠ib?is unspecified)
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.0/subselect_0.12-2.zip'
Content type 'application/zip' length 1295653 bytes (1.2 Mb)
opened URL
downloaded 1.2 Mb
package 壮ubselect?successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\YULE\AppData\Local\Temp\Rtmp6DK5mn\downloaded_packages
> library(subselect)
---------------------------------------------------------------------------------
> sessionInfo()
R version 3.0.0 (2013-04-03)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] graphics grDevices datasets stats utils methods base
other attached packages:
[1] subselect_0.12-2 XML_3.96-1.1 colorspace_1.2-2 RGtk2_2.20.25 rattle_2.6.26
loaded via a namespace (and not attached):
[1] tools_3.0.0
回答by Manoj Kumar
If you want to install it for windows, here it how you can:
如果你想为 Windows 安装它,你可以在这里:
install.packages("doMC", repos="http://R-Forge.R-project.org")
I did it for R3.2.3 version and it works well.
我是为R3.2.3 版本做的,效果很好。
回答by Steve Weston
I assume it's not available to you because you're using Windows. The doMC
package has never been available on Windows because it depends on the mclapply
function, before in the multicore
package and now in parallel
. I haven't heard of any issues with doMC
in R 3.0.0.
我认为它对您不可用,因为您使用的是 Windows。该doMC
包从未在 Windows 上可用,因为它取决于mclapply
功能,以前在multicore
包中,现在在parallel
. 我doMC
在 R 3.0.0 中没有听说过任何问题。
The doSMP
package was intended to be the Windows alternative to doMC
. I believe it was eventually taken off CRAN because of problems building it on newer versions of GCC.
该doSMP
软件包旨在成为doMC
. 我相信它最终被 CRAN 取消了,因为在较新版本的 GCC 上构建它的问题。
The doParallel
and doSNOW
packages are probably the most popular foreach
backends available for Windows.
在doParallel
与doSNOW
包可能是最流行的foreach
可用于Windows后端。
回答by Akhzar Nazir
I was facing the same issue with RTextTools, as RTextTools is now not available on CRAN. I have Download RTextTools From Given Link
我在使用 RTextTools 时遇到了同样的问题,因为 RTextTools 现在在 CRAN 上不可用。我已从给定链接下载 RTextTools
?https://cran.r-project.org/src/contrib/Archive/RTextTools/
? https://cran.r-project.org/src/contrib/Archive/RTextTools/
and copy RTextTools_1.4.2.tar.gz file in project root folder then run this command in project folder in terminal
并将 RTextTools_1.4.2.tar.gz 文件复制到项目根文件夹中,然后在终端的项目文件夹中运行此命令
"R CMD INSTALL RTextTools_1.4.2.tar.gz" After running this command I receive below error "ERROR: dependencies ‘SparseM', ‘randomForest', ‘tree', ‘e1071', ‘ipred', ‘caTools', ‘maxent', ‘glmnet', ‘tau' are not available for package ‘RTextTools'" Now install each dependencies from RStudio or RConsole (Any Editor used by you) by simply running this code
“R CMD INSTALL RTextTools_1.4.2.tar.gz”运行此命令后,我收到以下错误“错误:依赖关系'SparseM'、'randomForest'、'tree'、'e1071'、'ipred'、'caTools'、'maxent ', 'glmnet', 'tau' 不适用于包 'RTextTools'" 现在只需运行此代码即可从 RStudio 或 RConsole(您使用的任何编辑器)安装每个依赖项
install.packages("caTools")
install.packages("caTools")
Install all 9 required packages One By One (In My Case it was 9 Packages Dependencies required by RTextTools) all packages will be installed except 'maxent'
一一安装所有 9 个必需的软件包(在我的情况下,RTextTools 需要 9 个软件包依赖项)将安装除“maxent”之外的所有软件包
Now download maxent from the given link
现在从给定的链接下载 maxent
https://cran.r-project.org/src/contrib/Archive/maxent/
https://cran.r-project.org/src/contrib/Archive/maxent/
and copy maxent_1.3.3.1.tar file in project folder then run this command in project folder in terminal
并复制项目文件夹中的 maxent_1.3.3.1.tar 文件,然后在终端的项目文件夹中运行此命令
"R CMD INSTALL maxent_1.3.3.1.tar"
“R CMD 安装 maxent_1.3.3.1.tar”
Now For RTextTools Run this command again in Terminal
现在对于 RTextTools 在终端中再次运行此命令
"R CMD INSTALL RTextTools_1.4.2.tar.gz"
“R CMD 安装 RTextTools_1.4.2.tar.gz”
All is done Now.. But the Last Step is Load the RTextTools using
现在一切都完成了.. 但最后一步是使用加载 RTextTools
library(RTextTools)
库(RTextTools)
You will see one more Error: Load SparseM Now Loading SparseM use code below library(SparseM) and in the last Load RTextTools library(RTextTools)
您将看到另一个错误:Load SparseM Now Loading SparseM 使用库(SparseM)下面的代码和最后一个加载 RTextTools 库(RTextTools)