Skip to content

Commit

Permalink
Update license & version
Browse files Browse the repository at this point in the history
  • Loading branch information
wenjie1991 committed Aug 9, 2024
1 parent b330ea5 commit b6b6f02
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 27 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: ggfigdone
Title: Manage & Modify ggplot figures using ggfigdone
Version: 0.0.0.9001
Version: 0.1.0
Authors@R:
person("Wenjie", "SUN", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-3100-2346"))
Expand Down
23 changes: 21 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,2 +1,21 @@
YEAR: 2024
COPYRIGHT HOLDER: Wenjie SUN
MIT License

Copyright (c) 2024 Wenjie SUN

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
21 changes: 0 additions & 21 deletions LICENSE.md

This file was deleted.

13 changes: 10 additions & 3 deletions R/lib.R
Original file line number Diff line number Diff line change
Expand Up @@ -486,9 +486,16 @@ format.fdObj = function(x, ...) {
cat(paste0("## Number of figures: ", length(x$env)))
cat("\n")
## Last updated date
cat(paste0("## Last updated date: "))
cat(as.character(as.POSIXct(max(sapply(x$env, function(x) x$updated_date)))))
cat("\n")
if (length(x$env) == 0) {
cat(paste0("## Last updated date: "))
cat(as.character(Sys.time()))
cat("\n")
} else {
cat("## Last updated date: ")
cat(format(as.POSIXct(max(sapply(x$env, function(x) x$updated_date))), "%Y-%m-%d %H:%M:%S"))

cat("\n")
}
invisible(x)
}

Expand Down

0 comments on commit b6b6f02

Please sign in to comment.