Mushrooms
Test simple R shiny application running on shinyapps.io: Mushrooms - Fungi table However, this app is not very useful and I suggest to go for example here: laji.fi
Shiny tips
character encoding:
For example, mushroom called Lampaankääpä was shown as Lampaankp. Time to time I almost lose my mind fighting with character encoding, but following R code worked:
d0$fi <- as.character(d0$fi)
d0$fi <- enc2native(d0$fi)
iconv:
localeToCharset()
d0$fi <- iconv(d0$fi, "ISO_8859-2", "UTF-8")
Deploying
library(shiny)
library(rsconnect)
rsconnect::setAccountInfo(
name = "myName",
token = "myToken",
secret = "mySecret")
rsconnect::deployApp("myAppNameOffline",
appName = "myAppNameOnline",
account = "myname")
So, mushroom app is deployed as:
...
rsconnect::deployApp("app-fungi-insta",
appName = "app-fungi-insta",
account = "talonen")
References
- Shinyapps
- Suomalaisia sieniä
- google, sienikirjat ym.
- https://stackoverflow.com/questions/16347731/how-to-change-the-locale-of-r/20971351
- https://stackoverflow.com/questions/26222052/have-more-than-one-shiny-accounts