new_rschedule | R Documentation |
new_rschedule()
is a developer focused tool that is not required for
normal usage of almanac. It is only exported to allow other packages
to construct new rschedule objects that work with almanac functions
prefixed with alma_*()
, like alma_in()
.
rschedule_events()
is a generic function that rschedule subclasses must
provide a method for. rschedule_events()
should return a Date vector
containing the complete ordered set of events in the event set of
that rschedule.
new_rschedule(..., class)
rschedule_events(x)
... |
Named data fields. |
class |
A required subclass. |
x |
An object that subclasses rschedule. |
An rschedule is an abstract class that rrule and rset both inherit from.
The sole functionality of rschedule classes is to provide a method for
rschedule_events()
.
For new_rschedule()
, a new rschedule subclass.
For rschedule_events()
, a Date vector of events.
events <- as.Date("1970-01-01")
static <- new_rschedule(
events = events,
class = "static_rschedule"
)
# You have to register an `rschedule_events()` method first!
try(alma_events(static))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.