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

Warn if ga_model has no Shiny functions when used in Shiny - Error in unclass(x) : cannot unclass an external pointer #276

Open
MarkEdmondson1234 opened this issue Sep 5, 2019 · 0 comments
Assignees

Comments

@MarkEdmondson1234
Copy link
Collaborator

MarkEdmondson1234 commented Sep 5, 2019

Its obscure why Shiny doesn't work if it has no Shiny render/plot functions defined in the object:

decomp_ga <- ga_model_example("decomp_ga.gamr")
runApp('workshop-demo')

Listening on http://127.0.0.1:1221
2019-09-05 14:12:06> Downloaded [301] rows from a total of [301].
Rendering model output
Error in unclass(x) : cannot unclass an external pointer

Editing the object to include Shiny output functions fixes it:

shiny_model <- ga_model_edit(decomp_ga,
                             outputShiny = plotOutput,
                             renderShiny = renderPlot)
@MarkEdmondson1234 MarkEdmondson1234 self-assigned this Sep 5, 2019
@MarkEdmondson1234 MarkEdmondson1234 changed the title Warn if ga_model has no Shiny functions when used in Shiny Warn if ga_model has no Shiny functions when used in Shiny - Error in unclass(x) : cannot unclass an external pointer Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant