diff --git a/CITATION.cff b/CITATION.cff index 23217a2..549a0ad 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -7,7 +7,7 @@ authors: - family-names: "Van Iwaarden" given-names: "Adam" title: "sgpFlowMatrices: R package containing sgpFlow coefficient matrices for sgpFlow analyses." -version: 0.0-0.1 +version: 0.0-0.2 doi: 10.5281/zenodo.3634024 -date-released: 2024-10-23 +date-released: 2024-12-3 url: "https://centerforassessment.github.io/sgpFlowMatrices" diff --git a/DESCRIPTION b/DESCRIPTION index a02d9bf..357cc26 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,8 +1,8 @@ Package: sgpFlowMatrices Type: Package Title: Coefficient Matrices for sgpFlow analyses -Version: 0.0-0.1 -Date: 2024-10-23 +Version: 0.0-0.2 +Date: 2024-12-3 Authors@R: c(person(given=c("Damian", "W."), family="Betebenner", email="dbetebenner@nciea.org", role=c("aut", "cre")), person(given=c("Adam", "R."), family="Van Iwaarden", email="avaniwaarden@nciea.org", role="aut")) Maintainer: Damian W. Betebenner diff --git a/R/zzz.R b/R/zzz.R index 90e7620..957305e 100644 --- a/R/zzz.R +++ b/R/zzz.R @@ -2,10 +2,20 @@ function(libname, pkgname) { } +`.onAttach` <- function(libname, pkgname) { + if (interactive()) { + # Extract version information + version <- utils::packageVersion("sgpFlowMatrices") -`.onAttach` <- -function(libname, pkgname) { - if (interactive()) { - packageStartupMessage('sgpFlowMatrices ', paste(paste0(unlist(strsplit(as.character(packageVersion("sgpFlowMatrices")), "[.]")), c(".", "-", ".", "")), collapse=""),' (10-23-2024). For help: >help("sgpFlowMatrices") or visit https://centerforassessment.github.io/sgpFlowMatrices') - } + # Define a friendly startup message + message_text <- paste0( + magenta(bold("\uD83C\uDF89 sgpFlowMatrices v", version)), " - ", toOrdinal::toOrdinalDate("2024-12-3"), "\n", + "\U1F4A1 Tip: ", magenta(bold("> help(\"sgpFlowMatrices\")")), "\n", + "\U1F310 Docs: ", magenta(bold("https://centerforassessment.github.io/sgpFlowMatrices")), "\n", + "\u2728 Happy sgpFlowing!" + ) + + # Display the startup message + packageStartupMessage(message_text) + } } diff --git a/inst/CITATION b/inst/CITATION index 9429bdc..b8a1810 100644 --- a/inst/CITATION +++ b/inst/CITATION @@ -4,11 +4,11 @@ citEntry(entry = "Manual", title = "{sgpFlowMatrices}: Coefficient matrices for sgpFlow analyses.", author = "Damian W. Betebenner and Adam R. Van Iwaarden", year = "2024", - note = "R package version 0.0-0.1", + note = "R package version 0.0-0.2", url = "https://github.com/CenterForAssessment/sgpFlowMatrices/", textVersion = paste("Damian W. Betebenner and Adam R. Van Iwaarden (2024).", "sgpFlowMatrices: Coefficient matrices for sgpFlow analyses.", - "(R package version 0.0-0.1", + "(R package version 0.0-0.2", "URL https://github.com/CenterForAssessment/sgpFlowMatrices/") ) diff --git a/man/sgpFlowMatrices-package.Rd b/man/sgpFlowMatrices-package.Rd index 0939835..374b4fc 100644 --- a/man/sgpFlowMatrices-package.Rd +++ b/man/sgpFlowMatrices-package.Rd @@ -10,8 +10,8 @@ \tabular{ll}{ Package: \tab sgpFlowMatrices\cr Type: \tab Package\cr -Version: \tab 0.0-0.1\cr -Date: \tab 2024-10-23\cr +Version: \tab 0.0-0.2\cr +Date: \tab 2024-12-3\cr License: \tab GPL-3\cr LazyLoad: \tab Yes\cr LazyData: \tab Yes\cr