我开发了一个在本地运行良好的 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()
反而。
两者 ui
和 server
对象是函数和 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/