在使用下述命令安装时:
install.packages(c('repr', 'IRdisplay', 'IRkernel'), type = 'source')
得到以下错误:
Warning in install.packages(lib = .libPaths()[1L], dependencies = NA, type = type) :
'lib = "D:/Program Files/R/R-4.1.0/library"' is not writable
Error in install.packages(lib = .libPaths()[1L], dependencies = NA, type = type) :
unable to install packages
通过以管理员身份打开软件,即可解决上述问题,但同时出现以下错误:
** using staged installation
**********************************************
WARNING: this package has a configure script
It probably needs manual configuration
**********************************************
** libs
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'uuid'
* removing 'D:/Program Files/R/R-4.1.0/library/uuid'
* installing *source* package 'digest' ...
** package 'digest' successfully unpacked and MD5 sums checked
** using staged installation
** libs
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'digest'
* removing 'D:/Program Files/R/R-4.1.0/library/digest'
ERROR: dependency 'glue' is not available for package 'cli'
* removing 'D:/Program Files/R/R-4.1.0/library/cli'
ERROR: dependency 'rlang' is not available for package 'ellipsis'
* removing 'D:/Program Files/R/R-4.1.0/library/ellipsis'
ERROR: dependencies 'glue', 'rlang' are not available for package 'lifecycle'
* removing 'D:/Program Files/R/R-4.1.0/library/lifecycle'
ERROR: dependencies 'digest', 'base64enc', 'rlang' are not available for package 'htmltools'
* removing 'D:/Program Files/R/R-4.1.0/library/htmltools'
ERROR: dependencies 'ellipsis', 'glue', 'rlang' are not available for package 'vctrs'
* removing 'D:/Program Files/R/R-4.1.0/library/vctrs'
ERROR: dependencies 'cli', 'ellipsis', 'fansi', 'lifecycle', 'rlang', 'utf8', 'vctrs' are not available for package 'pillar'
* removing 'D:/Program Files/R/R-4.1.0/library/pillar'
ERROR: dependencies 'htmltools', 'jsonlite', 'pillar', 'base64enc' are not available for package 'repr'
* removing 'D:/Program Files/R/R-4.1.0/library/repr'
ERROR: dependency 'repr' is not available for package 'IRdisplay'
* removing 'D:/Program Files/R/R-4.1.0/library/IRdisplay'
ERROR: dependencies 'repr', 'IRdisplay', 'pbdZMQ', 'jsonlite', 'uuid', 'digest' are not available for package 'IRkernel'
* removing 'D:/Program Files/R/R-4.1.0/library/IRkernel'
更新模块包之后,再次安装即可解决上述问题。
|