RStudio Shiny ERROR: there is no package called shinydashboard
The problem is that shiny-server cannot find the packages that you install because it runs them as a different user which is called shiny
. This user is created upon installation of shiny-server
The easiest (and safest IMHO) way to solve this is to just install the packages as the shiny user, using the following steps.
- Set a password for the user using
sudo passwd shiny
, now enter and confirm a password - Switch to the shiny account using:
su - shiny
- Call up
R
using$ R
(without sudo) - Install the required packages, in this case:
install.packages("shinydashboard")
Note that if you have rstudio-server installed on the same machine then you can perform steps 2-4 using that interface. Simply go the same domain/ip and use :8787 for the rstudio-server interface instead of :3838 for shiny-server.
RStudio Error (Windows): There is no package called 'shinydashboard'
As @Roland mentioned the packages got installed into the wrong library (only available to my own user account). After trying to install it to another library and problems with write access , I finally manually copied the folder to the second(available to all users) library.
error trying to install rstudio shinydashboard
In my Ubuntu 14.10 laptop, it worked following the instructions here:
https://stackoverflow.com/a/23998908/719016
I first installed this package:
sudo apt-get install libcurl4-openssl-dev
Then in R:
install.packages('RCurl')
After that, I tried again to install the package with devtools:
devtools::install_github("rstudio/shinydashboard")
and it worked.
Shinydashboard error passing functions to variables
Nothing is wrong, you just need to declare the objects before you access them, i.e just declare it before the ui
:
library(shiny)
library(shinydashboard)
Header_app <- dashboardHeader(title = "Hello")
Sidebar_app <- dashboardSidebar()
Body_app <- dashboardBody()
ui <- dashboardPage(header = Header_app, sidebar = Sidebar_app, body = Body_app)
server <- function(input, output) {}
shinyApp(ui, server)
Error in library(leaflet) : there is no package called ‘leaflet’
I got a solution for that
RUN
sudo \
libgdal-dev \
libproj-dev \
libgeos-dev \
libudunits2-dev \
netcdf-bin \
Install these dependencies
Related Topics
Ggplot for Loop Outputs All the Same Graph
Breaking Loop When "Warnings()" Appear in R
Create a Vector of All Days Between Two Dates
Replace a Value Na with the Value from Another Column in R
Recode Categorical Variable to Binary (0/1)
How to Perform Multiple Left Joins Using Dplyr in R
Remove All Duplicate Rows Including the "Reference" Row
How to Group Data.Table by Multiple Columns
Find All Functions (Including Private) in a Package
Ggplot Geom_Text Font Size Control
Get Column Index from Label in a Data Frame
Simple Way to Subset Spatialpolygonsdataframe (I.E. Delete Polygons) by Attribute in R