Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
wenjie2wang committed Mar 3, 2022
1 parent 8d35263 commit 6733141
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ GPATH
GRTAGS
GTAGS
TAGS
docs
reference
working
2 changes: 1 addition & 1 deletion R/abclass.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
3 changes: 0 additions & 3 deletions misc/update_timestamp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6733141

Please sign in to comment.