Skip to content

Commit

Permalink
Merge pull request #3 from dbetebenner/main
Browse files Browse the repository at this point in the history
Updating startup message
  • Loading branch information
dbetebenner authored Dec 4, 2024
2 parents 8fd8f1c + 9884656 commit 25e871c
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 13 deletions.
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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="[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
20 changes: 15 additions & 5 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("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)
}
}
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 = "{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/")
)
4 changes: 2 additions & 2 deletions man/sgpFlowMatrices-package.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 25e871c

Please sign in to comment.