diff --git a/.github/workflows/r-check-version.yaml b/.github/workflows/r-check-version.yaml new file mode 100644 index 0000000..44817de --- /dev/null +++ b/.github/workflows/r-check-version.yaml @@ -0,0 +1,25 @@ +on: + pull_request: + branches: [main, master] + +name: version checks + +jobs: + check-r-version: + runs-on: ubuntu-latest + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: actions/checkout@v3 + + - uses: r-lib/actions/setup-r@v2 + with: + use-public-rspm: true + + - uses: r-lib/actions/setup-r-dependencies@v2 + with: + extra-packages: any::gh, any::fuj + + - uses: jmbarbone/actions/r-check-version@main + with: + ignore-dev-version: true diff --git a/DESCRIPTION b/DESCRIPTION index 974547a..bbd93ef 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: fuj Type: Package Title: Functions and Utilities for Jordan -Version: 0.1.3.9000 +Version: 0.1.4 Authors@R: person( given = "Jordan Mark", @@ -25,4 +25,5 @@ Suggests: spelling, testthat (>= 3.0.0) Config/testthat/edition: 3 -URL: https://jmbarbone.github.io/fuj/ +URL: https://jmbarbone.github.io/fuj/, https://github.com/jmbarbone/fuj +BugReports: https://github.com/jmbarbone/fuj/issues diff --git a/NEWS.md b/NEWS.md index dfc5988..e52e936 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,7 +1,8 @@ -# fuj (development version) +# fuj 0.1.4 * adds `%::%` and `%:::%` (which now aliases `%colons$`) or retrieving exported and non-exported values from namespaces [#31](https://github.com/jmbarbone/fuj/issues/31) * adds `verbose()` for conditional message printing [#29](https://github.com/jmbarbone/fuj/issues/29) +* GitHub workflow added to maintain version bumps on merge [`jmbarbone/actions/r-check-version`](https://github.com/jmbarbone/actions/blob/main/examples/r-check-version.yaml) # fuj 0.1.3 diff --git a/R/verbose.R b/R/verbose.R index f063bed..73ecd58 100644 --- a/R/verbose.R +++ b/R/verbose.R @@ -23,7 +23,7 @@ #' op <- options(fuj.verbose = function() TRUE) #' verbose("function will evaluate") #' verbose(NULL) # nothing -#' verbose(NULL, "something) +#' verbose(NULL, "something") #' verbose(if (FALSE) { #' "`if` returns `NULL` when not `TRUE`, which makes for additional control" #' }) @@ -47,7 +47,7 @@ verbose <- function(...) { verbose_message <- function(..., call = NULL) { struct( - list(.makeMessage("[verbose] ", ...), call), + list(.makeMessage("[verbose] ", ..., appendLF = TRUE), call), names = c("message", "call"), class = c("verboseMessage", "message", "condition") ) diff --git a/cran-comments.md b/cran-comments.md index ca1baa5..8dac1a7 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -1,13 +1,13 @@ ## Test environments -* local R installation, R 4.3.0 +* local R installation, R 4.3.1 * windows-latest, release * macOS-latest release * ubuntu-latest devel, release, oldrel-1 ## R CMD check results -0 errors | 0 warnings | 1 note +0 errors | 0 warnings | 0 note * This is a patch release -* Includes a single minor fix with accompanying test +* Includes a new function and a new alias diff --git a/man/verbose.Rd b/man/verbose.Rd index 47973ee..7d17391 100644 --- a/man/verbose.Rd +++ b/man/verbose.Rd @@ -23,3 +23,21 @@ message conditions. \code{\link[=verbose]{verbose()}} can be controlled with \c (the default) and an override, \code{options(fuj.verbose)}. The latter can be set to a function whose result will be used for conditional evaluation. } +\examples{ +op <- options(verbose = FALSE) +verbose("will not show") + +options(verbose = TRUE) +verbose("message printed") +verbose("multiple lines ", "will be ", "combined") +options(op) + +op <- options(fuj.verbose = function() TRUE) +verbose("function will evaluate") +verbose(NULL) # nothing +verbose(NULL, "something") +verbose(if (FALSE) { +"`if` returns `NULL` when not `TRUE`, which makes for additional control" +}) +options(op) +} diff --git a/revdep/README.md b/revdep/README.md index c60f1c2..9481f26 100644 --- a/revdep/README.md +++ b/revdep/README.md @@ -1,24 +1,24 @@ # Platform -|field |value | -|:--------|:--------------------------------------| -|version |R version 4.3.0 (2023-04-21) | -|os |Ubuntu 23.04 | -|system |x86_64, linux-gnu | -|ui |RStudio | -|language |(EN) | -|collate |en_US.UTF-8 | -|ctype |en_US.UTF-8 | -|tz |America/New_York | -|date |2023-05-21 | -|rstudio |2023.03.1+446 Cherry Blossom (desktop) | -|pandoc |2.19.2 @ /usr/bin/pandoc | +|field |value | +|:--------|:-----------------------------------------------------------------------------------| +|version |R version 4.3.1 (2023-06-16) | +|os |Ubuntu 22.04.3 LTS | +|system |x86_64, linux-gnu | +|ui |RStudio | +|language |(EN) | +|collate |en_US.UTF-8 | +|ctype |en_US.UTF-8 | +|tz |America/New_York | +|date |2023-10-21 | +|rstudio |2023.12.0-daily+155 Ocean Storm (desktop) | +|pandoc |3.1.8 @ /usr/lib/rstudio/resources/app/bin/quarto/bin/tools/x86_64/ (via rmarkdown) | # Dependencies -|package |old |new |Δ | -|:-------|:-----|:----------|:--| -|fuj |0.1.2 |0.1.2.9001 |* | +|package |old |new |Δ | +|:-------|:-----|:-----|:--| +|fuj |0.1.3 |0.1.4 |* | # Revdeps diff --git a/revdep/failures.md b/revdep/failures.md index c8ed39a..90151f0 100644 --- a/revdep/failures.md +++ b/revdep/failures.md @@ -3,7 +3,7 @@
* Version: -* GitHub: NA +* GitHub: https://github.com/jmbarbone/fuj * Source code: NA * Number of recursive dependencies: 0