mount_appdata {kindisperse}R Documentation

Mount KinPairData Objects for use in kindisperse app

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 takes an object of class KinPairData or KinPairSimulation, assigns it an identifying name, and adds it to the app interface environment, making it accessible within the app. Once added, this object will be accessible under its name from the Load menue of the app. (The app interface uses the same function internally, enabling objects to be passed to the interface from the app also).

Usage

mount_appdata(x, nm)

Arguments

x

An object of class KinPairData or KinPairSimulation

nm

character. A name to store the object as

Value

invisibly returns x.

See Also

Other app_ports: display_appdata(), reset_appdata(), reset_tempdata(), retrieve_appdata(), retrieve_tempdata(), retrieveall_appdata(), unmount_appdata()

Examples

mount_appdata(kin_pair_data(), "mydata")

[Package kindisperse version 0.10.2 Index]