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
DESCRIPTION |NEWS
card.svg |card.png
almanac/json (API)

# 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.53 score 78 stars 1 packages 82 scripts 455 downloads 7 mentions 87 exports 15 dependencies

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

TargetResultTimeFilesSyslog
linux-devel-arm64OK195
linux-devel-x86_64OK205
source / vignettesOK201
linux-release-arm64OK204
linux-release-x86_64OK189
macos-release-arm64OK117
macos-release-x86_64OK231
macos-oldrel-arm64OK109
macos-oldrel-x86_64OK247
windows-develOK153
windows-releaseOK138
windows-oldrelOK143
wasm-releaseOK114

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

Holidays and calendars
Holidays | hol_observe() | hol_offset() | Custom holidays | Calendars | cal_events() | cal_match() | US federal calendar

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

Introduction to almanac
Recurrence Rules | Event Set | Caching | Recurrence Conditions | Recurrence Sets

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

Adjusting and shifting dates
Adjusting | Adjusted rschedules | Stepping | Steppers

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

Quarterly rules
First day of the quarter | Altering the fiscal year start | N-th day of the quarter | N-th week day of the quarter | Combining with other rules

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

iCalendar specification
Daily for 10 events | Daily until 1997-12-24 | Every other day, forever | Every 10 days, 5 events | Every day in January, for 3 years | Weekly for 10 events | Weekly until December 24, 1997 | Every other week - forever | Weekly on Tuesday and Thursday for five weeks | Every other week on Monday, Wednesday, and Friday until December 24, 1997, starting on Monday, September 1, 1997 | Every other week on Tuesday and Thursday, for 8 events | Monthly on the first Friday for 10 events | Monthly on the first Friday until December 24, 1997 | Every other month on the first and last Sunday of the month for 10 events | Monthly on the second-to-last Monday of the month for 6 months | Monthly on the third-to-the-last day of the month, forever | Monthly on the 2nd and 15th of the month for 10 events | Monthly on the first and last day of the month for 10 events | Every 18 months on the 10th thru 15th of the month for 10 events | Every Tuesday, every other month | Yearly in June and July for 10 events | Every other year on January, February, and March for 10 events | Every third year on the 1st, 100th, and 200th day for 10 events | Every 20th Monday of the year, forever | Monday of week number 20 (where the default start of the week is Monday), forever | Every Thursday in March, forever | Every Thursday, but only during June, July, and August, forever | Every Friday the 13th, forever | The first Saturday that follows the first Sunday of the month, forever | Every 4 years, the first Tuesday after a Monday in November, forever (U.S. Presidential Election day) | The third instance into the month of one of Tuesday, Wednesday, or Thursday, for the next 3 months | The second-to-last weekday of the month | An example where the days generated makes a difference because of week_start | An example where an invalid date (i.e., February 30) is ignored

Last update: 2023-04-04
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