无法安装 'shiny' 或 'bslib' 包

问题描述

我正在尝试安装“phylosignal”软件包,但在安装“shiny”和“bslib”软件包时出现了一些错误。我尝试了几种找到的解决方案,但没有一个能正常工作。我已经更新了我的所有软件包,但其中一些仍然是上传的(例如“htmlttols”)。

有什么建议吗?我被困在这里了。

我在 Windows 上工作,我的 RStudio 版本已更新到最新版本。

这是我的控制台:

> library(phylosignal)
Error: package or namespace load Failed for ‘phylosignal’ in loadNamespace(j <- i[[1L]],c(lib.loc,.libPaths()),versionCheck = vI[[j]]):
 there is no package called ‘shiny’
In addition: Warning message:
package ‘phylosignal’ was built under R version 3.5.3 
> install.packages("shiny")
Error in install.packages : Updating loaded packages
> install.packages("shiny")
Installing package into ‘C:/Users/jmtorresruiz/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
also installing the dependencies ‘sass’,‘htmltools’,‘rlang’,‘bslib’,‘cachem’


  There are binary versions available but the source versions are later:
           binary  source needs_compilation
sass        0.2.0   0.3.1              TRUE
htmltools   0.4.0 0.5.1.1              TRUE
rlang       0.4.5  0.4.10              TRUE
shiny     1.4.0.2   1.6.0             FALSE

  Binaries will be installed
Package which is only available in source form,and may need compilation of C/C++/Fortran:
  ‘cachem’
  These will not be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/sass_0.2.0.zip'
Content type 'application/zip' length 3430000 bytes (3.3 MB)
downloaded 3.3 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/htmltools_0.4.0.zip'
Content type 'application/zip' length 690367 bytes (674 KB)
downloaded 674 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/rlang_0.4.5.zip'
Content type 'application/zip' length 1115838 bytes (1.1 MB)
downloaded 1.1 MB

package ‘sass’ successfully unpacked and MD5 sums checked
package ‘htmltools’ successfully unpacked and MD5 sums checked
package ‘rlang’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  cannot remove prior installation of package ‘rlang’

The downloaded binary packages are in
    C:\Users\jmtorresruiz\AppData\Local\Temp\RtmpwDt8Ko\downloaded_packages
installing the source packages ‘bslib’,‘shiny’

trying URL 'https://cran.rstudio.com/src/contrib/bslib_0.2.4.tar.gz'
Content type 'application/x-gzip' length 3481982 bytes (3.3 MB)
downloaded 3.3 MB

trying URL 'https://cran.rstudio.com/src/contrib/shiny_1.6.0.tar.gz'
Content type 'application/x-gzip' length 4170497 bytes (4.0 MB)
downloaded 4.0 MB

* installing *source* package 'bslib' ...
** package 'bslib' successfully unpacked and MD5 sums checked
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i,versionCheck = vI[[i]]) : 
  namespace 'htmltools' 0.4.0 is being loaded,but >= 0.5.1 is required
ERROR: lazy loading Failed for package 'bslib'
* removing 'C:/Users/jmtorresruiz/Documents/R/win-library/3.5/bslib'
In R CMD INSTALL
Warning in install.packages :
  installation of package ‘bslib’ had non-zero exit status
ERROR: dependencies 'bslib','cachem' are not available for package 'shiny'
* removing 'C:/Users/jmtorresruiz/Documents/R/win-library/3.5/shiny'
In R CMD INSTALL
Warning in install.packages :
  installation of package ‘shiny’ had non-zero exit status

The downloaded source packages are in
    ‘C:\Users\jmtorresruiz\AppData\Local\Temp\RtmpwDt8Ko\downloaded_packages’
> install.packages("bslib")
Installing package into ‘C:/Users/jmtorresruiz/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
also installing the dependencies ‘htmltools’,‘sass’


  There are binary versions available but the source versions are later:
          binary  source needs_compilation
htmltools  0.4.0 0.5.1.1              TRUE
sass       0.2.0   0.3.1              TRUE

  Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/htmltools_0.4.0.zip'
Content type 'application/zip' length 690367 bytes (674 KB)
downloaded 674 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/sass_0.2.0.zip'
Content type 'application/zip' length 3430000 bytes (3.3 MB)
downloaded 3.3 MB

package ‘htmltools’ successfully unpacked and MD5 sums checked
package ‘sass’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\jmtorresruiz\AppData\Local\Temp\RtmpwDt8Ko\downloaded_packages
installing the source package ‘bslib’

trying URL 'https://cran.rstudio.com/src/contrib/bslib_0.2.4.tar.gz'
Content type 'application/x-gzip' length 3481982 bytes (3.3 MB)
downloaded 3.3 MB

* installing *source* package 'bslib' ...
** package 'bslib' successfully unpacked and MD5 sums checked
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i,but >= 0.5.1 is required
ERROR: lazy loading Failed for package 'bslib'
* removing 'C:/Users/jmtorresruiz/Documents/R/win-library/3.5/bslib'
In R CMD INSTALL
Warning in install.packages :
  installation of package ‘bslib’ had non-zero exit status

The downloaded source packages are in
    ‘C:\Users\jmtorresruiz\AppData\Local\Temp\RtmpwDt8Ko\downloaded_packages’

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...