how to deploy shiny app that uses local data

前端 未结 3 1626
广开言路
广开言路 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:41

    What I did was to write the csv under a sub folder (i.e. data/) of the shiny app directory and then added data<-read.csv("/Data/proj.csv") in server.r (as indicated in the answer). I didn't put the dot and it works.

    Another thing is, when you publish it, don't forget to publish both the shiny app and the file in the shiny app folder.

提交回复
热议问题