The goal of vacancesscolr is to be able to quickly retrieve school holidays in France for the 2008-2018 period and bank holidays for any given year.

The data used in this package has been obtained from Antoine Augusti’s vacances-scolaires dataset, under the Etalab license (open license).

The functionalities are direct ports from his vacances-scolaires-france and jours-feries-france Python packages, under MIT license.

Installation

vacancesscolr lives only on Github for now. Please use devtools or remotes to install it.

Examples

Holidays

Check if a date is a holiday:

is_holiday("2018-03-05")
#> [1] TRUE
is_holiday("2018-03-05", zone = "A")
#> [1] FALSE
is_holiday("2018-03-05", zone = "B")
#> [1] TRUE

Retrieve all holidays for a year, optional zone and optional type of holiday:

get_holidays(2018, name = "Vacances d'hiver")
#>          date vacances_zone_a vacances_zone_b vacances_zone_c
#> 1  2018-02-10            TRUE           FALSE           FALSE
#> 2  2018-02-11            TRUE           FALSE           FALSE
#> 3  2018-02-12            TRUE           FALSE           FALSE
#> 4  2018-02-13            TRUE           FALSE           FALSE
#> 5  2018-02-14            TRUE           FALSE           FALSE
#> 6  2018-02-15            TRUE           FALSE           FALSE
#> 7  2018-02-16            TRUE           FALSE           FALSE
#> 8  2018-02-17            TRUE           FALSE            TRUE
#> 9  2018-02-18            TRUE           FALSE            TRUE
#> 10 2018-02-19            TRUE           FALSE            TRUE
#> 11 2018-02-20            TRUE           FALSE            TRUE
#> 12 2018-02-21            TRUE           FALSE            TRUE
#> 13 2018-02-22            TRUE           FALSE            TRUE
#> 14 2018-02-23            TRUE           FALSE            TRUE
#> 15 2018-02-24            TRUE            TRUE            TRUE
#> 16 2018-02-25            TRUE            TRUE            TRUE
#> 17 2018-02-26           FALSE            TRUE            TRUE
#> 18 2018-02-27           FALSE            TRUE            TRUE
#> 19 2018-02-28           FALSE            TRUE            TRUE
#> 20 2018-03-01           FALSE            TRUE            TRUE
#> 21 2018-03-02           FALSE            TRUE            TRUE
#> 22 2018-03-03           FALSE            TRUE            TRUE
#> 23 2018-03-04           FALSE            TRUE            TRUE
#> 24 2018-03-05           FALSE            TRUE           FALSE
#> 25 2018-03-06           FALSE            TRUE           FALSE
#> 26 2018-03-07           FALSE            TRUE           FALSE
#> 27 2018-03-08           FALSE            TRUE           FALSE
#> 28 2018-03-09           FALSE            TRUE           FALSE
#> 29 2018-03-10           FALSE            TRUE           FALSE
#> 30 2018-03-11           FALSE            TRUE           FALSE
#>        nom_vacances
#> 1  Vacances d'hiver
#> 2  Vacances d'hiver
#> 3  Vacances d'hiver
#> 4  Vacances d'hiver
#> 5  Vacances d'hiver
#> 6  Vacances d'hiver
#> 7  Vacances d'hiver
#> 8  Vacances d'hiver
#> 9  Vacances d'hiver
#> 10 Vacances d'hiver
#> 11 Vacances d'hiver
#> 12 Vacances d'hiver
#> 13 Vacances d'hiver
#> 14 Vacances d'hiver
#> 15 Vacances d'hiver
#> 16 Vacances d'hiver
#> 17 Vacances d'hiver
#> 18 Vacances d'hiver
#> 19 Vacances d'hiver
#> 20 Vacances d'hiver
#> 21 Vacances d'hiver
#> 22 Vacances d'hiver
#> 23 Vacances d'hiver
#> 24 Vacances d'hiver
#> 25 Vacances d'hiver
#> 26 Vacances d'hiver
#> 27 Vacances d'hiver
#> 28 Vacances d'hiver
#> 29 Vacances d'hiver
#> 30 Vacances d'hiver

You can use shortened names for the holidays names: