r - loading a .RData file into session but no object loaded in Shiny -


i got analysis results in r (an object called obj) , save .rdata file obj-result.rdata. in shiny, @ beginning of ui.r file, put load("obj-results.rdata") each time shiny run, object can loaded r session, i.e. expect obj object available use in subsequent steps, such obj@data, obj@sample, etc.

however, find load won't make obj object available in current r session, shiny not find quantities required. there missed in loading .rdata object? thank much!

the answer that, whenever object used in ui.r and/or server.r, relevant objects must loaded in same file. otherwise, shiny won't know find object other files (even they're in same directory , loaded).


Comments