User: User R6 Class

Description Details Methods

Description

Create a user to act as a data and state storage object for AirSensor DataViewer Shiny Application.

Details

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.

Methods

Public methods


Method new()

Usage
User$new(session, ...)
Arguments
session

A Shiny session object.

...

Additional options

Details

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.


Method updatePas()

Usage
User$updatePas(date = NULL, tz = getOption("asdv.timezone"))
Arguments
date

YYYYmmdd.

Details

Update the users pa_synoptic data.


Method updateSensors()

Usage
User$updateSensors(sd, ed, ...)
Arguments
sd

startdate YYYYmmdd.

ed

enddate YYYYmmdd.

...

additional params.

Details

Update the users airsensor object.


Method updatePat()

Usage
User$updatePat(label, sd, ed, tz = getOption("asdv.timezone"))
Arguments
sd

startdate YYYYmmdd.

ed

enddate YYYYmmdd.

Details

Update the users pa_timeseries object.


Method updateSensor()

Usage
User$updateSensor(label)
Arguments
label

the sensor label to filter the airsensor object by.

Details

Update the users filtered airsensor object. Commonly used when a user selects a different sensor.


Method updatePwfsl()

Usage
User$updatePwfsl(label, sd, ed, tz = getOption("asdv.timezone"))
Arguments
label

?

sd

startdate YYYYmmdd.

ed

enddate YYYYmmdd.

Details

Update the users ws_monitor object.


Method updateLatest()

Usage
User$updateLatest(label, tz = getOption("asdv.timezone"))
Arguments
label

a label of the sensor.

tz

a specified timezone. (default: UTC)

Details

Update the users latest pa_timeseries object.


Method updateAnnual()

Usage
User$updateAnnual(date, tz = getOption("asdv.timezone"))
Arguments
date

a date to parse year from.

Details

Update the users annual airsensor object.


Method updateNoaa()

Usage
User$updateNoaa(sd, ed)
Arguments
sd

startdate YYYYmmdd.

ed

enddate YYYYmmdd.

Details

Update the users NOAA data.


Method clone()

The objects of this class are cloneable with this method.

Usage
User$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


MazamaScience/AirSensorDataViewer documentation built on April 2, 2021, 12:24 a.m.