It may be the same question as this, however it stood unanswerd
I do have the same problem , that I can not load the library "shinydashboard". I found the question above, but the solution was only given for Ubuntu/Linux. I am using RStudio and Windows and couldn't use the solution for me.
My code:
## app.R ##
install.packages("shinydashboard")
library(shiny)
library(shinydashboard)
ui <- dashboardPage(
dashboardHeader(),
dashboardSidebar(),
dashboardBody()
)
server <- function(input, output) { }
shinyApp(ui, server)
I get the following Error message:
Error in library(shinydashboard) : there is no package called ‘shinydashboard’
After changing the lib parameter in install.packages to
install.packages("shinydashboard",lib="C:/Program Files/R/R-3.4.1/library")
I get the following error : For yes:
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’
For no:
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’