[英]RStudio Shiny ERROR: there is no package called “shinydashboard”
[英]RStudio Error (Windows): There is no package called 'shinydashboard'
我确实有同样的问题,我无法加载库“ shinydashboard”。 我找到了上面的问题,但是该解决方案仅适用于Ubuntu / Linux。 我正在使用RStudio和Windows,无法为我使用该解决方案。
我的代码:
## app.R ##
install.packages("shinydashboard")
library(shiny)
library(shinydashboard)
ui <- dashboardPage(
dashboardHeader(),
dashboardSidebar(),
dashboardBody()
)
server <- function(input, output) { }
shinyApp(ui, server)
我收到以下错误消息:
库中出现错误(shinydashboard):没有名为“ shinydashboard”的软件包
将install.packages中的lib参数更改为
install.packages("shinydashboard",lib="C:/Program Files/R/R-3.4.1/library")
我收到以下错误:是的:
Warning in install.packages :
'lib = "C:/Program Files/R/R-3.4.1/library"' is not writable
trying URL
'https://cran.rstudio.com/bin/windows/contrib/3.4/shinydashboard_0.6.1.zip'
Content type 'application/zip' length 305360 bytes (298 KB)
downloaded 298 KB
package ‘shinydashboard’ successfully unpacked and MD5 sums checked
Warning in install.packages :
unable to move temporary installation ‘C:\Users\D0282530\Documents\R\win-
library\3.4\file1e4419db2614\shinydashboard’ to
‘C:\Users\D0282530\Documents\R\win-library\3.4\shinydashboard’
The downloaded binary packages are in
C:\Users\D0282530\AppData\Local\Temp\Rtmpg3TVPL\downloaded_packages
Error in library(shinydashboard) :
there is no package called ‘shinydashboard’
否:
Warning in install.packages :
'lib = "C:/Program Files/R/R-3.4.1/library"' is not writable
Error in install.packages : unable to install packages
Error in library(shinydashboard) :
there is no package called ‘shinydashboard’
正如@Roland提到的那样,这些软件包已安装到错误的库中(仅对我自己的用户帐户可用)。 在尝试将其安装到另一个库并遇到写访问权限的问题之后,我最终手动将文件夹复制到第二个(所有用户可用)库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.