Create a user to act as a data and state storage object for AirSensor DataViewer Shiny Application.
Create an object that is responsible for housing the core state and data components of a Shiny applications user session. Each user is dependent on a Shiny session object. The methods and data of the object can be shared across modules without the requirment to create reactive-values.
new()
User$new(session, ...)
session
A Shiny session object.
...
Additional options
User$pas
: Return a future pa-synoptic object.
User$sensors
: Return a future airsensor object.
User$pat
: Return a future pa_timeseries object.
User$sensor
: Return a future filtered airsensor object.
User$pwfsl
: Return a future ws_monitor object from the PWFSLSmoke Package.
User$latest
: Return a future latest pa-timeseries object (from pat_createNew()
).
User$annual
: Return an annual future airsensor object.
User$noaa
: Return a future dataframe generated from NOAA Database.
User$selected$...
: Access Shiny Input reactive values.
User$url
: Access the current page URL for bookmarking state.
User$token
: Access the current session token ID.
User$url
: Access the waiter object for controling visual loading state.
Create a user.
updatePas()
User$updatePas(date = NULL, tz = getOption("asdv.timezone"))
date
YYYYmmdd.
Update the users pa_synoptic data.
updateSensors()
User$updateSensors(sd, ed, ...)
sd
startdate YYYYmmdd.
ed
enddate YYYYmmdd.
...
additional params.
Update the users airsensor object.
updatePat()
User$updatePat(label, sd, ed, tz = getOption("asdv.timezone"))
sd
startdate YYYYmmdd.
ed
enddate YYYYmmdd.
Update the users pa_timeseries object.
updateSensor()
User$updateSensor(label)
label
the sensor label to filter the airsensor object by.
Update the users filtered airsensor object. Commonly used when a user selects a different sensor.
updatePwfsl()
User$updatePwfsl(label, sd, ed, tz = getOption("asdv.timezone"))
label
?
sd
startdate YYYYmmdd.
ed
enddate YYYYmmdd.
Update the users ws_monitor object.
updateLatest()
User$updateLatest(label, tz = getOption("asdv.timezone"))
label
a label of the sensor.
tz
a specified timezone. (default: UTC)
Update the users latest pa_timeseries object.
updateAnnual()
User$updateAnnual(date, tz = getOption("asdv.timezone"))
date
a date to parse year from.
Update the users annual airsensor object.
updateNoaa()
User$updateNoaa(sd, ed)
sd
startdate YYYYmmdd.
ed
enddate YYYYmmdd.
Update the users NOAA data.
clone()
The objects of this class are cloneable with this method.
User$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.