Skip to content

Commit

Permalink
Merge pull request #88 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 a0f7a1b + 3b3b8b8 commit 84b657c
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 @@ -5,6 +5,6 @@ authors:
given-names: "Betebenner"
orcid: "https://orcid.org/0000-0003-0476-5599"
title: "randomNames: Generate Random Given and Surnames"
version: 1.6-0.0
date-released: 2024-5-2
version: 1.6-1.0
date-released: 2024-12-3
url: "https://centerforassessment.github.io/randomNames/"
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: randomNames
Version: 1.6-0.0
Date: 2024-5-2
Version: 1.6-1.0
Date: 2024-12-3
Title: Generate Random Given and Surnames
Depends: R (>= 4.0)
Suggests: knitr, rmarkdown
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("randomNames")

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

# 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 @@ bibentry(
title = "{randomNames}: Function for Generating Random Names and a Dataset",
author = "Damian W. Betebenner",
year = "2024",
note = "R package version 1.6-0.0",
note = "R package version 1.6-1.0",
url = "https://cran.r-project.org/package=randomNames",

textVersion = paste("Damian W. Betebenner (2024).",
"randomNames: Function for Generating Random Names and a Dataset.",
"(R package version 1.6-0.0",
"(R package version 1.6-1.0",
"URL https://cran.r-project.org/package=randomNames")
)
4 changes: 2 additions & 2 deletions man/randomNames-package.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ a large scale database.
\tabular{ll}{
Package: \tab randomNames\cr
Type: \tab Package\cr
Version: \tab 1.6-0.0\cr
Date: \tab 2024-5-2\cr
Version: \tab 1.6-1.0\cr
Date: \tab 2024-12-3\cr
License: \tab GPL-3\cr
LazyLoad: \tab yes\cr
}
Expand Down

0 comments on commit 84b657c

Please sign in to comment.