how to deploy shiny app that uses local data

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

    I ran into this same problem. It turned out that I did not have my working directory pointing to my shiny app at the time I used shiny.io to save and deploy my app.

    Be sure that if you're loading the data that the code reflects that your shiny app is the working directory.

    Otherwise you will get a log error that looks something like this

    cannot open compressed file 'C:/Users/Joseph/Documents/data/data.rda', probable reason 'No such file or directory'

提交回复
热议问题