how to deploy shiny app that uses local data

前端 未结 3 1649
广开言路
广开言路 2020-12-06 07:25

I\'m deploying my shiny app and I don\'t know how to input my a local dataset. I keep getting Error: object \"data\" not found. Here is my path to shiny folder.

3条回答
  •  误落风尘
    2020-12-06 07:49

    You may want to add a subdirectory in your shiny folder called "Data" and put proj.csv there.

    Then, in your server.r put:

    data<-read.csv("./Data/proj.csv")
    

    That will make it clear where the data is when the app is deployed to the ShinyApps service.

提交回复
热议问题