r - 库中的错误( Shiny ): there is no package called 'shiny' ON WINDOWS

标签 r shiny-server shiny

我开发了一个在本地运行良好的 Shiny 应用程序,但我得到了

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



当我尝试发布到 Shinyapps.io 时。

我已经看到有关如何在 Ubuntu 等上进行更正的多个回复,但我在 Windows 7 Enterprise 上运行 R 3.2.2 和 R Studio 0.99.486。

如何在 Windows 上更正此问题?

最佳答案

我在 Shinyapp 的问题中找到了解决方案 #73 .他们并没有真正解释为什么会发生这种情况,但他们建议使用 require()反而。

两者 uiserver对象是函数和 require()在函数内部是首选。看看library()的文档:

library(package) and require(package) both load the namespace of the package with name package and attach it on the search list. require is designed for use inside other functions;

关于r - 库中的错误( Shiny ): there is no package called 'shiny' ON WINDOWS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36817796/

相关文章:

r - 在数据表输出中格式化日期

r - 如何在 ggplot facets 中按值对数据进行排序

r - 缺少值时抑制粘贴中的分隔符

r - session 如何在 Shiny 服务器中工作?

r - 如何在 Shiny 的服务器中缓存数据?

r - 在 Shiny 中设置动态输入的默认值不同

r - 在 R Shiny 中使用 TableTools for DataTables for renderDataTable

r - 时间日期格式 [R]

r - 生成事件一周内所有天数的指标变量

r - 在 Shiny 的服务器上部署打包的 Shiny 应用程序