Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with eval.config on shinyapps.io #1

Open
aciobanusebi opened this issue Feb 16, 2018 · 2 comments
Open

Problem with eval.config on shinyapps.io #1

aciobanusebi opened this issue Feb 16, 2018 · 2 comments

Comments

@aciobanusebi
Copy link

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
Copy link
Owner

Miachol commented Feb 18, 2018

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

@aciobanusebi
Copy link
Author

aciobanusebi commented Feb 18, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants