r - Shiny: Dynamically load .RData file -


i using shiny interface viewing tables stored locally in series of .rdata files unable table render.

my server code this:

output$table1 <- rendertable({ load(paste0(input$one,"/",input$two,".rdata")) mydata}) 

on ui side displaying table in main panel.

this other question suggests issue environment data loaded goes away data isn't there display. suggest creating global file , loading .rdata file in there, don't believe able load data dynamically way. guidance on how use .rdata files within shiny appreciated.

regards

i think need move load statement outside of rendertable function. should have

load(paste0(input$one,"/",input$two,".rdata")) output$table1 <- rendertable({mydata}) 

if @ file rendertable, first argument is

expr: expression returns r object can used xtable.

load not return this.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -