Skip to content

Commit 074ad61

Browse files
committed
Fixed N03 2024
1 parent 141edc8 commit 074ad61

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

R/sysdata.rda

7 Bytes
Binary file not shown.

R/utils.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ check_year <- function(x) {
2828
x = sub("\u5e73\u6210", "H", x)
2929
x = sub("\u662d\u548c", "S", x)
3030
x = sub("\u5927\u6b63", "T", x)
31+
if (x == "R6" || x == "R06" || x == "H36") intYear = 2024
3132
if (x == "R5" || x == "R05" || x == "H35") intYear = 2023
3233
if (x == "R4" || x == "R04" || x == "H34") intYear = 2022
3334
if (x == "R3" || x == "R03" || x == "H33") intYear = 2021
@@ -79,7 +80,7 @@ check_year <- function(x) {
7980
if (x == "S25") intYear = 1950
8081
if (x == "T9" || x == "T09") intYear = 1920
8182
}
82-
if (intYear < 1920 || 2023 < intYear) {
83+
if (intYear < 1920 || 2024 < intYear) {
8384
stop("Invalid year.")
8485
}
8586

0 commit comments

Comments
 (0)