I got the analysis results in R (an object named obj ) and saved it as a .RData file obj-result.RData . Now in Shiny, at the beginning of the ui.R file, I put load("obj-results.RData") so that every time Shiny is executed, this object can be loaded into the R session, i.e. I expect the obj object to be available for use in subsequent steps, such as obj@data , obj@sample , etc.
However, I found that load will not make obj accessible in the current R session, so Shiny could not find the required quantities. Is there something I missed when loading the .RData object? Thank you very much!
source share