We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 141edc8 commit 074ad61Copy full SHA for 074ad61
2 files changed
R/sysdata.rda
7 Bytes
R/utils.R
@@ -28,6 +28,7 @@ check_year <- function(x) {
28
x = sub("\u5e73\u6210", "H", x)
29
x = sub("\u662d\u548c", "S", x)
30
x = sub("\u5927\u6b63", "T", x)
31
+ if (x == "R6" || x == "R06" || x == "H36") intYear = 2024
32
if (x == "R5" || x == "R05" || x == "H35") intYear = 2023
33
if (x == "R4" || x == "R04" || x == "H34") intYear = 2022
34
if (x == "R3" || x == "R03" || x == "H33") intYear = 2021
@@ -79,7 +80,7 @@ check_year <- function(x) {
79
80
if (x == "S25") intYear = 1950
81
if (x == "T9" || x == "T09") intYear = 1920
82
}
- if (intYear < 1920 || 2023 < intYear) {
83
+ if (intYear < 1920 || 2024 < intYear) {
84
stop("Invalid year.")
85
86
0 commit comments