Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: rdev
Title: R Development Tools
Version: 1.16.0
Version: 1.16.1
Authors@R:
person("John", "Benninghoff", , "jbenninghoff@mac.com", role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-6230-4742"))
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# rdev 1.16.1

* Added new renv 1.1.6 function `renv::vulns()` to `check_renv()` and `ci()`

# rdev 1.16.0

* Updated `check_renv()` and `ci()`, replacing `renv::status(dev = TRUE)` with new renv 1.1.6 setting `renv::settings$snapshot.dev(TRUE)`
Expand Down
17 changes: 13 additions & 4 deletions R/ci.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
print_renv_vulns <- function() {
writeLines(yaml::as.yaml(renv::vulns(repos = "https://packagemanager.posit.co/cran/latest")))
}

#' Check renv
#'
#' Runs [`renv`][renv::renv-package] [`status()`][renv::status()], [`clean()`][renv::clean()]
#' and optionally [`update()`][renv::update()]
#' Runs [`renv`][renv::renv-package] [`status()`][renv::status()], [`clean()`][renv::clean()],
#' [`vulns()`][renv::vulns()] (as YAML), and optionally [`update()`][renv::update()]
#'
#' @param update run [renv::update()]
#'
Expand All @@ -20,6 +24,9 @@ check_renv <- function(update = rlang::is_interactive()) {
writeLines("\nrenv::clean()")
renv::clean()

writeLines('\nrenv::vulns(repos = "https://packagemanager.posit.co/cran/latest")')
print_renv_vulns()

if (update) {
writeLines("\nrenv::update()")
renv::update()
Expand Down Expand Up @@ -84,7 +91,7 @@ print_tbl <- function(df) {
#'
#' Run continuous integration tests locally.
#'
#' If [`renv::status()`][renv::status()] is not synchronized, `ci()` will stop.
#' If [renv::status()] is not synchronized, `ci()` will stop.
#'
#' If [missing_deps()] returns any missing dependencies, `ci()` will stop.
#'
Expand All @@ -98,7 +105,7 @@ print_tbl <- function(df) {
#' Output from `missing`, `extra`, and `urls` is printed as a [tibble][tibble::tibble()] for
#' improved readability in the console.
#'
#' @param renv check [`renv::status()`][renv::status()]
#' @param renv check [renv::status()] and report on [renv::vulns()] (as YAML)
#' @param missing run [missing_deps()]
#' @param pkgdown check [pkgdown::check_pkgdown()] if `_pkgdown.yml` exists
#' @param styler style all files using [style_all()], see details
Expand Down Expand Up @@ -147,6 +154,8 @@ ci <- function(renv = TRUE, # nolint: cyclocomp_linter.
if (!status$synchronized) {
return(invisible(status))
}
writeLines(c("", 'renv::vulns(repos = "https://packagemanager.posit.co/cran/latest")'))
print_renv_vulns()
if (any(
missing, pkgdown, is.null(styler), styler, lintr, document, normalize, extra, spelling, urls,
rcmdcheck
Expand Down
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ check_renv()
#> - No stale package locks were found.
#> - No temporary directories were found in the project library.
#> - The project has been cleaned.
#>
#> renv::vulns(repos = "https://packagemanager.posit.co/cran/latest")
#> []
```

I also have a `ci()` function to run all my continuous integration tests
Expand All @@ -110,6 +113,10 @@ ci()
#> renv::status()
#> No issues found -- the project is in a consistent state.
#>
#> renv::vulns(repos = "https://packagemanager.posit.co/cran/latest")
#> []
#>
#>
#> missing_deps()
#> Finding R package dependencies ... Done!
#> renv::dependencies() not in DESCRIPTION:
Expand Down Expand Up @@ -234,10 +241,10 @@ ci()
#> * creating vignettes ... OK
#> * checking for LF line-endings in source and make files and shell scripts
#> * checking for empty or unneeded directories
#> * building ‘rdev_1.16.0.tar.gz’
#> * building ‘rdev_1.16.1.tar.gz’
#>
#> ── R CMD check ─────────────────────────────────────────────────────────────────
#> * using log directory ‘/private/var/folders/vn/cw5f9gws42v9m8mdsds_zbl00000gp/T/RtmpxJhUXI/file155b515153087/rdev.Rcheck’
#> * using log directory ‘/private/var/folders/vn/cw5f9gws42v9m8mdsds_zbl00000gp/T/RtmpXMaZ3x/filee8bb15b4a7a9/rdev.Rcheck’
#> * using R version 4.5.2 (2025-10-31)
#> * using platform: aarch64-apple-darwin20
#> * R was compiled by
Expand All @@ -247,7 +254,7 @@ ci()
#> * using session charset: UTF-8
#> * using option ‘--no-manual’
#> * checking for file ‘rdev/DESCRIPTION’ ... OK
#> * this is package ‘rdev’ version ‘1.16.0
#> * this is package ‘rdev’ version ‘1.16.1
#> * package encoding: UTF-8
#> * checking package namespace information ... OK
#> * checking package dependencies ... OK
Expand Down Expand Up @@ -300,10 +307,9 @@ ci()
#> * checking package vignettes ... OK
#> * checking re-building of vignette outputs ... OK
#> * DONE
#>
#> Status: OK
#> ── R CMD check results ──────────────────────────────────────── rdev 1.16.0 ────
#> Duration: 26.4s
#> ── R CMD check results ──────────────────────────────────────── rdev 1.16.1 ────
#> Duration: 25.8s
#>
#> 0 errors ✔ | 0 warnings ✔ | 0 notes ✔
```
2 changes: 1 addition & 1 deletion docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/LICENSE-text.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/LICENSE.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/TODO.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/analysis-package-layout.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/rdev.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/style-guide.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/deps/bootstrap-5.3.1/bootstrap.min.css

Large diffs are not rendered by default.

22 changes: 14 additions & 8 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion docs/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ articles:
analysis-package-layout: analysis-package-layout.html
rdev: rdev.html
style-guide: style-guide.html
last_built: 2026-01-17T02:28Z
last_built: 2026-01-28T03:28Z
urls:
reference: https://jabenninghoff.github.io/rdev/reference
article: https://jabenninghoff.github.io/rdev/articles
2 changes: 1 addition & 1 deletion docs/reference/build_analysis_site.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/build_quarto_site.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/build_rdev_site.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading