Breaking changes

  • convert_jyear() and convert_jdate(): the default of legacy is changed from FALSE to TRUE (#60). The non-legacy (‘ICU’-based) path can abort the R process on platforms where stringi is linked against system ‘ICU’ (e.g. macOS), and the failure cannot be caught from R. The legacy path based on lubridate is now the default, and the previous behaviour is opt-in via legacy = FALSE or options(zipangu.convert_jyear.legacy = FALSE) / options(zipangu.convert_jdate.legacy = FALSE).

Fix

Enhancement

  • Declare R (>= 4.1.0) in Depends, reflecting use of the native pipe |> and the lambda shorthand \(x).
  • Internal code now consistently uses the native pipe |> (replacing magrittr %>%). The re-export of %>% is kept for backward compatibility.
  • dplyr::recode() (superseded) is replaced with dplyr::replace_values(). The minimum required version of dplyr is bumped to >= 1.2.0.

Fix

New Features

Enhancement

New Features

Fix

Enhancement

  • jholiday_spec() is now memoised internally. This change makes its second and later calls faster. Also, multiple values of name are now acceptable. (@paithiov909, #38).

Fix

  • Determination of substitute holidays due to forgetting to update raw data (#31).

New Features

  • Added functions to convert Kansuji to Arabic numbers (@indenkun #23).
    • kansuji2arabic_num() converts Kansuji that containing kansuji for positions (e.g. Hyaku, Sen, etc) to Arabic numerals with the numbers represented by Kansuji (Fix #8).
    • kansuji2arabic_str() converts Kansuji in the string to Arabic numerals with the numbers they represent.
  • Added functions to graph labels to handle Kansuji (@indenkun #4).

Enhancement

  • Holiday determination now reflects the 2021 calendar (@zettsu-t #28).
  • convert_jyear() supports strict representation of the Japanese imperial year (#30).

New Features

  • convert_jdate() can converts the Japanese date format to as a date object.

Enhancement

  • Added several functions to handle postal code data.
  • str_jconv() and str_conv_*() converts the kind of string used as Japanese people.
  • Added some functions related to Japanese holidays.
  • Find out the date of the specific month and weekday (find_date_by_wday())
  • Added a NEWS.md file to track changes to the package.