Running package medrc in a shiny app