0

我有 R 3.6.0(我目前必须使用这个版本的 R)并且我面临以下问题。我的目标是安装“闪亮”包。我跑

install.packages("shiny",checkBuilt=TRUE, ask=FALSE)

这会触发以下错误:

** package 'bslib' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  namespace 'htmltools' 0.5.1.1 is being loaded, but >= 0.5.2 is required
Calls: <Anonymous> ... withCallingHandlers -> loadNamespace -> namespaceImport -> loadNamespace
Execution halted
ERROR: lazy loading failed for package 'bslib'
* removing 'C:/bin/R-3.6.0/library/bslib'

我的理解是它需要安装包'bslib',但为了这样做,我需要将我的'htmltools'包升级到0.5.2。由于此类版本仅可作为源代码使用,因此我运行以下命令:

install.packages("htmltools", type='source')

这给了我以下错误消息:

* installing *source* package 'htmltools' ...
** package 'htmltools' successfully unpacked and MD5 sums checked
** using staged installation
** libs

*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'htmltools'
* removing 'C:/bin/R-3.6.0/library/htmltools'
* restoring previous 'C:/bin/R-3.6.0/library/htmltools'
Warning in install.packages :
  installation of package ‘htmltools’ had non-zero exit status

这看起来像我必须安装包'make'。如果我运行以下命令:

install.packages("make")

我收到错误消息:

package ‘make’ is not available (for R version 3.6.0)

在这一点上,我非常绝望。我还要做什么?谢谢

4

0 回答 0