Skip to content

Commit

Permalink
Merge pull request #56 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 ee151df + 7583546 commit 7613427
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 17 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/check-standard.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
Expand All @@ -18,9 +16,9 @@ jobs:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: 'release'}
- {os: macos-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'devel'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}

Expand All @@ -29,12 +27,17 @@ jobs:
R_KEEP_PKG_SOURCE: yes

steps:
- name: Install Homebrew
if: runner.os == 'macOS'
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
- name: Install XQUARTZ dependencies on MacOS
if: runner.os == 'macOS'
run: |
brew install --cask xquartz
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-pandoc@v2

Expand All @@ -44,11 +47,19 @@ jobs:
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

# Cache R packages to speed up builds
- name: Cache R packages
uses: actions/cache@v3
with:
path: ~/.cache/R
key: ${{ runner.os }}-r-${{ matrix.config.r }}-${{ hashFiles('**/DESCRIPTION') }}
restore-keys: ${{ runner.os }}-r-${{ matrix.config.r }}

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check

- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
upload-snapshots: true
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: cfaTools
Version: 0.0-1.994
Date: 2021-11-21
Version: 0.0-2.0
Date: 2024-12-3
Title: Center for Assessment Tools for Large Scale Educational Assessment Analysis
Description: Center for Assessment developed Tools for Large Scale Educational Assessment.
Authors@R: c(person(given=c("Damian", "W."), family="Betebenner", email="[email protected]", role=c("aut", "cre")),
Expand Down
21 changes: 16 additions & 5 deletions R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,20 @@
function(libname, pkgname) {
}

`.onAttach` <-
function(libname, pkgname) {
if (interactive()) {
packageStartupMessage(magenta$bold('cfaTools',paste(paste0(unlist(strsplit(as.character(packageVersion("cfaTools")), "[.]")), c(".", "-", ".", "")), collapse=""),' (11-21-2021). For help: >help("cfaTools") or visit https://centerforassessment.github.io/cfaTools'))
}
.onAttach <- function(libname, pkgname) {
if (interactive()) {
# Extract version information
version <- utils::packageVersion("cfaTools")

# Define a friendly startup message
message_text <- paste0(
magenta(bold("\uD83C\uDF89 cfaTools v", version)), " - ", toOrdinal::toOrdinalDate("2024-12-3"), "\n",
"\U1F4A1 Tip: ", magenta(bold("> help(\"cfaTools\")")), "\n",
"\U1F310 Docs: ", magenta(bold("https://centerforassessment.github.io/cfaTools")), "\n",
"\u2728 Happy cfaTooling!"
)

# 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 = "{cfaTools}: Center for Assessment Tools for Large Scale Educational Assessment Analysis",
author = personList(as.person("Damian W. Betebenner"), as.person("Adam R. Van Iwaarden"), as.person("Nathan Dadey"), as.person("Joseph Martineau")),
year = "2021",
note = "R package version 0.0-1.994",
note = "R package version 0.0-2.0",
url = "https://centerforassessment.github.io/cfaTools/",

textVersion = paste("Damian W. Betebenner, Adam R. Van Iwaarden, Nathan Dadey and Joseph Martineau (2021).",
"cfaTools: Center for Assessment Tools for Large Scale Educational Assessment Analysis",
"(R package version 0.0-1.994",
"(R package version 0.0-2.0",
"URL https://centerforassessment.github.io/cfaTools/")
)
4 changes: 2 additions & 2 deletions man/cfaTools-package.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Center for Assessment developed Tools for Large Scale Educational Assessment.
\tabular{ll}{
Package: \tab cfaTools\cr
Type: \tab Package\cr
Version: \tab 0.0-1.994\cr
Date: \tab 2021-11-21\cr
Version: \tab 0.0-2.0\cr
Date: \tab 2024-12-3\cr
License: \tab GPL-3\cr
LazyLoad: \tab yes\cr
}
Expand Down

0 comments on commit 7613427

Please sign in to comment.