问题描述
我正在尝试在没有root特权的共享群集(平台:x86_64-redhat-linux-gnu)上安装doParallel软件包。群集正在运行R版本3.5.0(我问是否可以更新)。
我在下面粘贴了install.packages(“ doParallel”,dependencies = T)的输出。 R声称“配方”需要“ dplyr”,但找不到。但是我已经安装了dplyr并可以毫无问题地加载它。 doParallel所需的另一个软件包是“脱字符号”,而反过来又需要“配方”。由于以前无法安装配方,因此插入符号的安装失败。 R还声称找不到“ doParallel”所要求的“ foreach”,即使我先前已安装并可以加载它。
我尝试过单独安装这些软件包,但它导致许多其他依赖项陷入困境,R抱怨说软件包不可用。对于类似的问题,我尝试了许多关于SO的建议,包括
- 删除旧的R库并重新安装软件包
- 手动安装相关软件包(将源文件放在R应该可以找到它们的位置)
- 关闭所有R进程并重新启动
- 许多解决方案似乎都涉及Windows安装和RStudio使用方面的问题。这些无关紧要,因为这是一台linux机器,我正在命令行中进行所有操作。
R在尝试安装doParallel时给出以下警告消息:
Warning: package ‘dplyr’ was built under R version 3.5.3
也许这是问题的根源。不幸的是,我无法控制群集上的R更新。
感谢有关解决方案的任何建议。
> sessionInfo()
R version 3.5.0 (2018-04-23)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: Red Hat Enterprise Linux
Matrix products: default
BLAS/LAPACK: /usr/lib64/R/lib/libRblas.so
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics Grdevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.5.0
> .libPaths()
[1] "/<path to personal library>" "/usr/lib64/R/library"
[3] "/usr/share/R/library"
> install.packages("doParallel",dependencies=T)
Installing package into ‘...’ <path omitted for security reasons>
(as ‘lib’ is unspecified)
also installing the dependencies ‘recipes’,‘caret’
trying URL 'https://cran.us.r-project.org/src/contrib/recipes_0.1.13.tar.gz'
Content type 'application/octet-stream' length 633375 bytes (618 KB)
==================================================
downloaded 618 KB
trying URL 'https://cran.us.r-project.org/src/contrib/caret_6.0-86.tar.gz'
Content type 'application/octet-stream' length 5264447 bytes (5.0 MB)
==================================================
downloaded 5.0 MB
trying URL 'https://cran.us.r-project.org/src/contrib/doParallel_1.0.15.tar.gz'
Content type 'application/octet-stream' length 173578 bytes (169 KB)
==================================================
downloaded 169 KB
* installing *source* package ‘recipes’ ...
** package ‘recipes’ successfully unpacked and MD5 sums checked
** R
** inst
** byte-compile and prepare package for lazy loading
Warning: package ‘dplyr’ was built under R version 3.5.3
** help
*** installing help indices
converting help for package ‘recipes’
finding HTML links ... done
add_step html
bake html
finding level-2 HTML links ... done
check_class html
check_cols html
check_missing html
check_name html
check_new_values html
check_range html
check_type html
detect_step html
discretize html
fixed html
format_ch_vec html
formula.recipe html
fully_trained html
has_role html
juice html
names0 html
prep html
prepper html
print.recipe html
rand_id html
recipe html
recipes-internal html
recipes html
recipes_pkg_check html
reexports html
roles html
selections html
step html
step_BoxCox html
step_YeoJohnson html
step_arrange html
step_bagimpute html
step_bin2factor html
step_bs html
step_center html
step_classdist html
step_corr html
step_count html
step_cut html
step_date html
step_depth html
step_discretize html
step_downsample html
step_dummy html
step_factor2string html
step_filter html
step_geodist html
step_holiday html
step_hyperbolic html
step_ica html
step_integer html
step_interact html
step_intercept html
step_inverse html
step_invlogit html
step_isomap html
step_knnimpute html
step_kpca html
step_kpca_poly html
step_kpca_rbf html
step_lag html
step_lincomb html
step_log html
step_logit html
step_lowerimpute html
step_meanimpute html
step_medianimpute html
step_modeimpute html
step_mutate html
step_mutate_at html
step_naomit html
step_nnmf html
step_normalize html
step_novel html
step_ns html
step_num2factor html
step_nzv html
step_ordinalscore html
step_other html
step_pca html
step_pls html
step_poly html
step_profile html
step_range html
step_ratio html
step_regex html
step_relevel html
step_relu html
step_rename html
step_rename_at html
step_rm html
step_rollimpute html
step_sample html
step_scale html
step_shuffle html
step_slice html
step_spatialsign html
step_sqrt html
step_string2factor html
step_unkNown html
step_unorder html
step_upsample html
step_window html
step_zv html
summary.recipe html
terms_select html
tidy.recipe html
tunable.step html
update.step html
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded
Error : package ‘dplyr’ required by ‘recipes’ Could not be found
Error: loading Failed
Execution halted
ERROR: loading Failed
* removing ‘/rigel/stats/users/gjw10/rpackages2/recipes’
* installing *source* package ‘doParallel’ ...
** package ‘doParallel’ successfully unpacked and MD5 sums checked
** R
** demo
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
converting help for package ‘doParallel’
finding HTML links ... done
doParallel-package html
registerDoParallel html
** building package indices
** installing vignettes
** testing if installed package can be loaded
Error : package ‘foreach’ required by ‘doParallel’ Could not be found
Error: loading Failed
Execution halted
ERROR: loading Failed
* removing ‘<path to personal library>/doParallel’
ERROR: dependency ‘recipes’ is not available for package ‘caret’
* removing ‘<path to personal library>/caret’
The downloaded source packages are in
‘/tmp/Rtmpyd0cpT/downloaded_packages’
Warning messages:
1: In install.packages("doParallel",dependencies = T) :
installation of package ‘recipes’ had non-zero exit status
2: In install.packages("doParallel",dependencies = T) :
installation of package ‘doParallel’ had non-zero exit status
3: In install.packages("doParallel",dependencies = T) :
installation of package ‘caret’ had non-zero exit status
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)