retrieve_appdata {kindisperse} | R Documentation |
Retrieve KinPairData
object from appdata (single)
Description
This function is part of a suite of functions handling the interface between the kindisperse app & R
package. Due to how shiny's interactive programming works, ordinary objects are not visible to the reactive functions
embedded in the app. The solution implemented here is to construct a custom environment, env_appdata
, that is
accessible within the app and outside of it.
This function accesses the app interface environment and retrieves an object (typically of class KinPairData
or
KinPairSimulation
) with the name nm
, making it accessible from within our outside the app. This can be
used to load simulation objects that were saved from the interface while using the app into the regular R environment
(after closing the app). (The app uses this function internally to load objects from the interface into its own internal
environment for display & processing.)
Usage
retrieve_appdata(nm)
Arguments
nm |
character. Name of item as stored in appdata |
Value
Returns KinPairData object accessible by name nm
See Also
Other app_ports:
display_appdata()
,
mount_appdata()
,
reset_appdata()
,
reset_tempdata()
,
retrieve_tempdata()
,
retrieveall_appdata()
,
unmount_appdata()
Examples
mount_appdata(kin_pair_data(), "mydata")
retrieve_appdata("mydata")