简体   繁体   English

R:有没有被称为“闪亮”的package?

[英]R: there is no package called “shiny”?

i can try to install the package get in error message below我可以尝试安装 package 得到下面的错误消息

library(shiny)
Error in library(shiny): there is no package called "shiny" .

R-studio software update is available can i update the R-studio software. R-studio 软件更新可用,我可以更新 R-studio 软件。

current version of R-studio software: V1.1.442 R-studio 软件当前版本:V1.1.442

As phil said, install.packages("shiny") should work.正如 phil 所说, install.packages("shiny")应该可以工作。 But for future reference this is how to do it manually.但为了将来参考,这是手动操作的方法。

How to add packages manually如何手动添加包

By clicking 'install' and searching on the CRAN the package name will show up in a search column, some packages don't exist on CRAN and must be installed manually through other means (I think some packages not updated to latest version of R can be used this way but not 100% sure).通过单击“安装”并在 CRAN 上搜索 package 名称将显示在搜索栏中,CRAN 上不存在某些软件包,必须通过其他方式手动安装(我认为某些未更新到最新版本 R 的软件包可以以这种方式使用,但不是 100% 肯定)。

install.packages("shiny") installs the packages from CRAN. install.packages("shiny")从 CRAN 安装包。

library("shiny") loads the package from your currently installed packages... it won't show if you haven't installed it. library("shiny")从您当前安装的软件包中加载 package ......如果您没有安装它,它不会显示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM