Search code examples
shinyshiny-server

Deploy shinydashboard referencing to a local file


I had dashboard that works great locally. The problem when I want to deploy it is that all my data sources are in my C drive.

I am not sure how to refer to a local file. I have seen many code examples and all refer to a sever somewhere.

Is it possible to referrer to a local file ?

library(shinydashboard)
library(shiny)
require(htmltools)

indicators <- read.csv ("C:/Users/user1/Desktop/idicators.csv")

thanks


Solution

    1. You can refer a local file easily by storing in R with a particular dataframe name.
    2. Then you can use that dataframe name in any of your R script as a variable name and then it will work fine.