From 673314174750015c51c2915e7a3dc3a412a1575d Mon Sep 17 00:00:00 2001 From: Wenjie Wang Date: Wed, 2 Mar 2022 21:19:53 -0500 Subject: [PATCH] Minor tweaks --- .gitignore | 1 + R/abclass.R | 2 +- misc/update_timestamp.sh | 3 --- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 8d93152..7c28adb 100644 --- a/.gitignore +++ b/.gitignore @@ -9,5 +9,6 @@ GPATH GRTAGS GTAGS TAGS +docs reference working diff --git a/R/abclass.R b/R/abclass.R index 0492499..316c417 100644 --- a/R/abclass.R +++ b/R/abclass.R @@ -235,7 +235,7 @@ abclass <- function(x, y, verbose = verbose ) res_cls <- paste0(gsub("-", "_", loss, fixed = TRUE), "_net") - class(res) <- c("abclass", res_cls) + class(res) <- c(res_cls, "abclass") ## return res } diff --git a/misc/update_timestamp.sh b/misc/update_timestamp.sh index 41aec23..9254348 100755 --- a/misc/update_timestamp.sh +++ b/misc/update_timestamp.sh @@ -61,9 +61,6 @@ else # restrict the search and only update the year of package regexp4="/abclass-package/,/^\)$/ s/20[0-9]{2}/$yr/" sed -i -E "$regexp4" $citation - # update copyright year in - regexp5="s/YEAR: 2021-[0-9]+/YEAR: 2021-$yr/" - sed -i -E "$regexp5" LICENSE # done printf "All updated.\n"