{"action":"closed","issue":{"url":"https://api.github.com/repos/rstudio/flexdashboard/issues/64","repository_url":"https://api.github.com/repos/rstudio/flexdashboard","labels_url":"https://api.github.com/repos/rstudio/flexdashboard/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/rstudio/flexdashboard/issues/64/comments","events_url":"https://api.github.com/repos/rstudio/flexdashboard/issues/64/events","html_url":"https://github.com/rstudio/flexdashboard/issues/64","id":161479610,"number":64,"title":"Switching between different plot renderers","user":{"login":"cullanisthebest","id":18506499,"avatar_url":"https://avatars.githubusercontent.com/u/18506499?v=3","gravatar_id":"","url":"https://api.github.com/users/cullanisthebest","html_url":"https://github.com/cullanisthebest","followers_url":"https://api.github.com/users/cullanisthebest/followers","following_url":"https://api.github.com/users/cullanisthebest/following{/other_user}","gists_url":"https://api.github.com/users/cullanisthebest/gists{/gist_id}","starred_url":"https://api.github.com/users/cullanisthebest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cullanisthebest/subscriptions","organizations_url":"https://api.github.com/users/cullanisthebest/orgs","repos_url":"https://api.github.com/users/cullanisthebest/repos","events_url":"https://api.github.com/users/cullanisthebest/events{/privacy}","received_events_url":"https://api.github.com/users/cullanisthebest/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-21T16:16:05Z","updated_at":"2016-06-21T16:48:09Z","closed_at":"2016-06-21T16:48:09Z","body":"Hi, I am not able to switch between rendering different types of plots through a selectInput. I get the error when I try to render a specific type of plot based on a select input:  \r\n\r\n> Operation not allowed without an active reactive context. (You tried to do something that can only be done from inside a reactive expression or observer.)\r\n\r\nI want to do something like the following: \r\n```r\r\nif(input$filterFunction == \"Filter by store / Summarize by product\"){\r\n     plotly::renderPlotly({ .... })\r\n} else if(input$filterFunction == \"Filter by product / Summarize by date\"){\r\n     tm <- treemap(\r\n        data,\r\n        index = c(\"Distributor\", \"Product\"),\r\n        vSize = output1,\r\n        vColor = output1,\r\n        type = \"value\",\r\n        palette = rev(viridis(6))\r\n   )\r\n\r\n   highchart() %>%\r\n        hc_add_series_treemap(tm, allowDrillToNode = TRUE, layoutAlgorithm = \"squarified\") %>% \r\n}\r\n```"}}
{"actor":{"display_login":"cullanisthebest"}}