Skip to content

Commit

Permalink
Merge pull request CenterForAssessment#50 from dbetebenner/master
Browse files Browse the repository at this point in the history
Updating startup message
  • Loading branch information
dbetebenner authored Dec 4, 2024
2 parents c3e112e + 0a2cf07 commit db60544
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 12 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: SGPmatrices
Type: Package
Title: Baseline Coefficient Matrices for SGP Analyses
Version: 0.1-0.0
Date: 2024-8-19
Version: 0.1-1.0
Date: 2024-12-3
Authors@R: c(person(given=c("Damian", "W."), family="Betebenner", email="[email protected]", role=c("aut", "cre")),
person(given=c("Adam", "R."), family="Van Iwaarden", email="[email protected]", role="aut"))
Maintainer: Damian W. Betebenner <[email protected]>
Expand Down
22 changes: 16 additions & 6 deletions R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,20 @@
function(libname, pkgname) {
}

.onAttach <- function(libname, pkgname) {
if (interactive()) {
# Extract version information
version <- utils::packageVersion("SGPmatrices")

`.onAttach` <-
function(libname, pkgname) {
if (interactive()) {
packageStartupMessage('SGPmatrices ', paste(paste0(unlist(strsplit(as.character(packageVersion("SGPmatrices")), "[.]")), c(".", "-", ".", "")), collapse=""),' (8-19-2024). For help: >help("SGPmatrices") or visit https://centerforassessment.github.io/SGPmatrices')
}
}
# Define a friendly startup message
message_text <- paste0(
magenta(bold("\uD83C\uDF89 SGPmatrices v", version)), " - ", toOrdinal::toOrdinalDate("2024-12-3"), "\n",
"\U1F4A1 Tip: ", magenta(bold("> help(\"SGPmatrices\")")), "\n",
"\U1F310 Docs: ", magenta(bold("https://centerforassessment.github.io/SGPmatrices")), "\n",
"\u2728 Happy SGPing!"
)

# Display the startup message
packageStartupMessage(message_text)
}
}
4 changes: 2 additions & 2 deletions inst/CITATION
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ citEntry(entry = "Manual",
title = "{SGPmatrices}: Baseline coefficient matrices for SGP analyses.",
author = "Damian W. Betebenner and Adam R. Van Iwaarden",
year = "2024",
note = "R package version 0.1-0.0",
note = "R package version 0.1-1.0",
url = "https://github.com/CenterForAssessment/SGPmatrices/",

textVersion = paste("Damian W. Betebenner and Adam R. Van Iwaarden (2024).",
"SGPmatrices: Baseline coefficient matrices for SGP analyses.",
"(R package version 0.1-0.0",
"(R package version 0.1-1.0",
"URL https://github.com/CenterForAssessment/SGPmatrices/")
)
4 changes: 2 additions & 2 deletions man/SGPmatrices-package.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
\tabular{ll}{
Package: \tab SGPmatrices\cr
Type: \tab Package\cr
Version: \tab 0.1-0.0\cr
Date: \tab 2024-8-19\cr
Version: \tab 0.1-1.0\cr
Date: \tab 2024-12-3\cr
License: \tab GPL-3\cr
LazyLoad: \tab Yes\cr
LazyData: \tab Yes\cr
Expand Down

0 comments on commit db60544

Please sign in to comment.