Miachol / configr

Implements the JSON, INI, YAML and TOML parser, for R setting and writing of configuration file.
Other
57 stars 7 forks source link

Problem with eval.config on shinyapps.io #1

Open aciobanusebi opened 6 years ago

aciobanusebi commented 6 years ago

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.

Miachol commented 6 years ago

Hi, could you please show the configuation file content and the full read.config and eval.config command?

aciobanusebi commented 6 years ago

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: image

With eval.config: image