-
Notifications
You must be signed in to change notification settings - Fork 11
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
Animate Process Map Can Not Be Insert Into Shiny Dashboard #5
Comments
Does the process map not display at all, or is only the animation missing? I remember that I had some trouble with the process map not having any height if the height was not explicitly set within a complex Shiny application. Theoretically, each container should adapt the the size of its parent, but sometimes this does not work, but I did not find out how to fix it. You would need to give the full example, since I tried to reproduce it with your code and it does show the animation for me (using the current development version on Github):
|
Thanks for your quick reply, and I tried your code on my computer, while it does not work. Here is my sessionInfo(): Matrix products: default locale: attached base packages: other attached packages: loaded via a namespace (and not attached): I think the problem may be that the packages I am using is not compatible. By the way, I tried some code, and find the following code works: ` ui <- dashboardPage(
) server <- function(input, output) { output$plot1 <- renderPlot({ }) shinyApp(ui, server) |
I understand that the original problem might have to do with v0.1.1 in combination with an older processmapR version 0.3.1. Please open this again in case you still have problems with the new version 0.2.0, which is to be release on CRAN very soon. |
Hi Felix, I tried to use renderProcessanimater and processanimaterOutput to build a shiny dashboard, while the animate process map just not display.
I have tested your ianimate_process function, to make the simplest from, I define a function:
my_ianimate_process <- function (eventlog) { ui <- function(request) { fluidPage(tags$head(tags$style("#process{height:90vh !important;}")), mainPanel(width = 10, shinycssloaders::withSpinner(processanimaterOutput("process")))) } server <- function(session, input, output) { output$process <- renderProcessanimater(expr = { animate_process(eventlog) }) } shinyApp(ui, server) }
This function works, but when I remove tags$head(tags$style("#process{height:90vh !important;}")), the animate process map will not display.
I did a lot of test and find that this function must work with fluidPage and processanimaterOutput("process")) function must be in the mainPanel, otherwise it will not work.
The text was updated successfully, but these errors were encountered: