Shiny app - mushroom hunting

Mushroom data on the table

Shiny app - mushroom hunting

Mushroom data on the table

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:

Shiny article

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

  1. Shinyapps
  2. Suomalaisia sieniä
  3. google, sienikirjat ym.
  4. https://stackoverflow.com/questions/16347731/how-to-change-the-locale-of-r/20971351
  5. https://stackoverflow.com/questions/26222052/have-more-than-one-shiny-accounts
Tags: hobby shiny
Share: Twitter