You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've loaded an R Deck into shinyapps.io. Everything works fine, except I can't seem to figure out a way to get my map box key to be read on shinyapps.io, so locally, you can see the mapbox tiles, but when it's hosted, the tiles are missing. Is there a way to do something akin to the following and have that token stored from the local environment onto the shiny app that gets hosted?
Mapbox token can be set via environment variable MAPBOX_ACCESS_TOKEN or with option rdeck.mapbox_access_token. In shiny (own server, not shinyapps), we set the token via environment variable with {dotenv}.
I haven't used shinyapps, but I'm surprised it doesn't support supplying environment variables.
Edit: It appears that shinyapps supports .Renviron, so you might just put your token there.
Hi,
I've loaded an R Deck into shinyapps.io. Everything works fine, except I can't seem to figure out a way to get my map box key to be read on shinyapps.io, so locally, you can see the mapbox tiles, but when it's hosted, the tiles are missing. Is there a way to do something akin to the following and have that token stored from the local environment onto the shiny app that gets hosted?
Local Render
Shinyapps.io
The text was updated successfully, but these errors were encountered: