web applications - Shiny output and R MarkDown render_site() -
i'm facing issue regarding use of shiny outputs in r markdown document when trying export two-paged site through use of render_site() (rmarkdown package)
here's chunk of code create issue (located within knitr or 1 of .rmd documents):
uioutput("main") output$main <- renderui({ if(test$n != 0){ plotoutput("mainplot", height = test$n*length(input$yaxes)*400) } }) output$mainplot <- renderplot({do.call("grid.arrange", c(test$plots, ncol = 1))})
when processing, render_site() tells me "output" object not defined. running .rmd file alone works fine; issue appears when trying include website. finally, website created when remove lines above.
are output$foo not supported r markdown or missing dumb?
thank in advance,
regards, paul
ps: searched before asking, i've been trying figure out hours ._.
have tried putting output-generating code function?
server <- function (input, output) { output$main <- renderui({ if(test$n != 0){ plotoutput("mainplot", height = test$n*length(input$yaxes)*400) } }) output$mainplot <- renderplot({do.call("grid.arrange", c(test$plots, ncol = 1))}) }
Comments
Post a Comment