Open aciobanusebi opened 6 years ago
Hi, could you please show the configuation file content and the full read.config and eval.config command?
Sure. ui.R:
library(shiny) library(configr)
eval.config(file="sidebar.ini") # not working; writing 'read.config(file="sidebar.ini")$default' works
ui <- fluidPage(titlePanel("Old Faithful Geyser Data"))
server <- function(input, output) {}
shinyApp(ui = ui, server = server)
sidebar.ini
[default] text = Available data
On shinyapps.io: With read.config(...)$default:
With eval.config:
I created a shiny app which uses this package, more specifically the function eval.config. [the files are .ini] The problem is that the app doesn't work when deployed on shinyapps.io [even though locally it runs]. It says: ... Error in <-: attempt to set an attribute on NULL 65: eval.config ... But if I use read.config(...)$default instead of eval.config, then everything is fine even on shinyapps.io.