NEWS
zipangu 0.3.3.9000
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
separate_address(): handle NA patterns in stringr::str_remove() for compatibility with stringr 1.6.0 (@hadley, #59).
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.
zipangu 0.3.3 (2024-11-07)
Fix
- Class mismatch in specification of argument legacy in
convert_jdate() (#55).
zipangu 0.3.2 (2022-12-09)
zipangu 0.3.1 (2022-09-01)
New Features
convert_prefecture(): New functions for converting prefecture names between Roman and Kanji (@Doubt-0KB, #48).
convert_prefecture_from_kana(): New functions for converting prefecture names from kana to Kanji (@Doubt-0KB, #48).
Enhancement
zipangu 0.3.0 (2022-03-11)
New Features
kana(): New function for create kana vector (#43).
harmonize_prefecture_name(): New function for processing prefectural strings (#37).
- Determine if the string is a prefecture string by
is_prefecture().
str_jnormalize: New function for pre-processing Japanese characters following the rules of 'neologd' (@paithiov909, #36).
Fix
- Fix the behaviors of
jholiday_spec() when any NAs, NULL, and empty strings are supplied (@paithiov909, #38).
is_jholiday() fails if the date argument contains NA (@hidekoji, #39).
is_jholiday() returns incorrect result if lubridate.week.start option is set to other than Sunday (@hidekoji, #40).
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).
zipangu 0.2.3 (2021-02-07)
Fix
- Determination of substitute holidays due to forgetting to update raw data (#31).
zipangu 0.2.2 (2021-02-01)
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).
label_kansuji() and label_kansuji_suffix() converts the label value to either Kansuji value or mixture of Arabic numerals and the Kansuji Scales.
Enhancement
- Holiday determination now reflects the 2021 calendar (@zettsu-t #28).
convert_jyear() supports strict representation of the Japanese imperial year (#30).
zipangu 0.2.1 (2020-07-07)
New Features
convert_jdate() can converts the Japanese date format to as a date object.
Enhancement
find_date_by_wday(), jholiday_spec(), jholiday(), and is_jholiday()
are now vectorized and accept multiple years (@yutannihilation, #15).
separate_address() also now vectorized.
zipangu 0.2.0 (2020-01-10)
- Added several functions to handle postal code data.
read_zipcode() to read Japan post's zip-code file and dl_zipcode_file() for raw file download.
is_zipcode() test zip-code. Only supports 7-digit numbers or characters.
zipcode_spacer() insert and remove zip-code connect character.
str_jconv() and str_conv_*() converts the kind of string used as Japanese people.
- Added some functions related to Japanese holidays.
jholiday_spec() to find date from corresponding year and holiday name and jholiday() is used to look up a list of holidays for the year.
is_jholiday() whether the day is a holiday.
- Find out the date of the specific month and weekday (
find_date_by_wday())
zipangu 0.1.0 (2019-12-01)
- Added a
NEWS.md file to track changes to the package.