Package: almanac 1.0.0.9000

almanac: Tools for Working with Recurrence Rules

Provides tools for defining recurrence rules and recurrence sets. Recurrence rules are a programmatic way to define a recurring event, like the first Monday of December. Multiple recurrence rules can be combined into larger recurrence sets. A full holiday and calendar interface is also provided that can generate holidays within a particular year, can detect if a date is a holiday, can respect holiday observance rules, and allows for custom holidays.

Authors:Davis Vaughan [aut, cre], Posit Software, PBC [cph, fnd]

almanac_1.0.0.9000.tar.gz
almanac_1.0.0.9000.zip(r-4.7)almanac_1.0.0.9000.zip(r-4.6)almanac_1.0.0.9000.zip(r-4.5)
almanac_1.0.0.9000.tgz(r-4.6-x86_64)almanac_1.0.0.9000.tgz(r-4.6-arm64)almanac_1.0.0.9000.tgz(r-4.5-x86_64)almanac_1.0.0.9000.tgz(r-4.5-arm64)
almanac_1.0.0.9000.tar.gz(r-4.7-arm64)almanac_1.0.0.9000.tar.gz(r-4.7-x86_64)almanac_1.0.0.9000.tar.gz(r-4.6-arm64)almanac_1.0.0.9000.tar.gz(r-4.6-x86_64)
almanac_1.0.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
almanac/json (API)
NEWS

# Install 'almanac' in R:
install.packages('almanac', repos = c('https://davisvaughan.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/davisvaughan/almanac/issues

On CRAN:

Conda:

calendarsholidaysrecurrence-rules

8.51 score 78 stars 1 packages 79 scripts 418 downloads 7 mentions 87 exports 15 dependencies

Last updated from:47a6b0fe10. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK165
linux-devel-x86_64OK165
source / vignettesOK189
linux-release-arm64OK188
linux-release-x86_64OK170
macos-release-arm64OK167
macos-release-x86_64OK228
macos-oldrel-arm64OK111
macos-oldrel-x86_64OK300
windows-develOK155
windows-releaseOK157
windows-oldrelOK141
wasm-releaseOK134

Exports:%>%%s-%%s+%add_exdatesadd_rdatesadd_rscheduleadj_followingadj_modified_followingadj_modified_precedingadj_nearestadj_noneadj_precedingalma_eventsalma_inalma_nextalma_previousalma_searchalma_seqalma_stepalmanac_sincealmanac_untilcal_addcal_eventscal_matchcal_namescal_nextcal_previouscal_removecal_us_federaldailyhol_christmashol_christmas_evehol_easterhol_good_fridayhol_halloweenhol_new_years_dayhol_new_years_evehol_observehol_offsethol_renamehol_st_patricks_dayhol_us_election_dayhol_us_fathers_dayhol_us_independence_dayhol_us_indigenous_peoples_dayhol_us_juneteenthhol_us_labor_dayhol_us_martin_luther_king_junior_dayhol_us_memorial_dayhol_us_mothers_dayhol_us_presidents_dayhol_us_thanksgivinghol_us_veterans_dayhol_valentines_daymonthlynew_rscheduleradjustedrcalendarrcustomrecur_for_countrecur_on_day_of_monthrecur_on_day_of_weekrecur_on_day_of_yearrecur_on_easterrecur_on_intervalrecur_on_mdayrecur_on_month_of_yearrecur_on_positionrecur_on_wdayrecur_on_week_of_yearrecur_on_weekdaysrecur_on_weekendsrecur_on_ydayrecur_on_ymonthrecur_on_yweekrecur_with_week_startrholidayrintersectroffsetrschedule_eventsrsetdiffrunionsteppervec_arith.almanac_stepperweeklyworkdaysyearly

Dependencies:clicpp11curlgenericsgluejsonlitelifecyclelubridatemagrittrR6RcpprlangtimechangeV8vctrs

Adjusting and shifting dates

Rendered fromadjust-and-shift.Rmdusingknitr::rmarkdownon May 19 2026.

Last update: 2023-04-06
Started: 2019-10-02

Holidays and calendars

Rendered fromholidays-calendars.Rmdusingknitr::rmarkdownon May 19 2026.

Last update: 2023-04-11
Started: 2023-04-11

iCalendar specification

Rendered fromicalendar.Rmdusingknitr::rmarkdownon May 19 2026.

Last update: 2023-04-04
Started: 2019-10-03

Introduction to almanac

Rendered fromalmanac.Rmdusingknitr::rmarkdownon May 19 2026.

Last update: 2023-04-10
Started: 2019-10-02

Quarterly rules

Rendered fromquarterly.Rmdusingknitr::rmarkdownon May 19 2026.

Last update: 2023-04-06
Started: 2019-10-03

Readme and manuals

Help Manual

Help pageTopics
Date adjustmentsadjustments adj_following adj_modified_following adj_modified_preceding adj_nearest adj_none adj_preceding
Get all eventsalma_events
Check if dates are in an event setalma_in
Generate the next or previous eventalma_next alma_previous
Search for eventsalma_search
Generate date sequencesalma_seq
Step relative to an rschedulealma_step
Default values in almanacalmanac-defaults almanac_since almanac_until
Calendar eventscal_events
Calendar matchingcal_match
Calendar namescal_names
US federal calendarcal_us_federal
Calendar additions and removalscalendar-add-remove cal_add cal_remove
Calendar locationscalendar-locations cal_next cal_previous
Holiday utility functionsholiday-utilities hol_observe hol_offset hol_rename
Holidaysholidays hol_christmas hol_christmas_eve hol_easter hol_good_friday hol_halloween hol_new_years_day hol_new_years_eve hol_st_patricks_day hol_us_election_day hol_us_fathers_day hol_us_independence_day hol_us_indigenous_peoples_day hol_us_juneteenth hol_us_labor_day hol_us_martin_luther_king_junior_day hol_us_memorial_day hol_us_mothers_day hol_us_presidents_day hol_us_thanksgiving hol_us_veterans_day hol_valentines_day
Create a new rschedulenew_rschedule rschedule_events
Create an adjusted rscheduleradjusted
Create a recurring calendarrcalendar
Create a custom rschedulercustom
Control the number of times to recurrecur_for_count
Recur on a day of the monthrecur_on_day_of_month
Recur on a day of the weekrecur_on_day_of_week recur_on_weekdays recur_on_weekends
Recur on a day of the yearrecur_on_day_of_year
Recur on easterrecur_on_easter
Recur on an intervalrecur_on_interval
Recur on a month of the yearrecur_on_month_of_year
Recur on a position within a frequencyrecur_on_position
Recur on a week of the yearrecur_on_week_of_year
Control the start of the weekrecur_with_week_start
Create a recurring holidayrholiday
Create an offset rscheduleroffset
Create a recurrence ruledaily monthly rrule weekly yearly
Create a new set-based recurrence schedulerintersect rset rsetdiff runion
Create a new stepper%s+% %s-% stepper workdays