Export a monthly calendar as pdf
Arguments
- year
either an
integeror acharacterof length 1. Must have 4 characters (e.g. '2024' and not '24'). Default is the current year.- month
either an
integeror acharacterof length 1. Must have 1 or 2 characters (e.g. '01' or '1'). Default is the current month.- path
a
characterof length 1. The directory to save thepdffile. Must exist. Default is the current directory.- filename
a
characterof length 1. The name of thepdffile. Default iscalendar-YYYY-MM.pdf(e.g.calendar-2024-04.pdf).- title
a
characterof length 1. The title of the calendar. Default isMonth YYYY(e.g.April 2024).- events
an optional
data.framewith the following columns:name, the name of the event,from, the starting date of the event,to, the ending date of the event, andcategory, the category of the event.- weekend
a
logical. IfTRUE(default) keeps Saturdays and Sundays.- palette
a
charactervector of colors for the events. If only one color is provided (default), all events will have this color. If several colors are provided, the number of colors inpalettemust be equal to the total number of event categories (duplicated colors are accepted). Moreover, thepaletteargument must be a named vector, where names match event categories. For example, let's that theeventsobject contains two categories (cat_aandcat_b), thepaletteargument must be equal topalette = c("cat_a" = "black", "cat_b" = "red").- lang
a
characterof length 1. Used to change the default locale (i.e. the language). Default isNULL(i.e. use the current locale). Depending on the OS and the locale, the output can be weird.- holidays
an optional
data.framewith the following columns:date, the date of the holiday, andname, the name of the holiday. Typically, the output ofget_holidays(). Default isNULL.- moon
a
logical. IfTRUEadds new/full moon glyph. Default isFALSE.- specials
an optional
data.framewith the following columns:date, the date of the special day, andname, the name of the special day. These special days will be added at the top of the day box. Default isNULL.
