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
12 changes: 0 additions & 12 deletions CODEOWNERS

This file was deleted.

9 changes: 4 additions & 5 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
Type: Package
Package: audit.workbench
Title: RStudio/Workbench User Acceptance Tests
Version: 0.6.6
Version: 0.6.7
Authors@R:
person("Jumping", "Rivers", , "info@jumpingrivers.com", role = c("aut", "cre"))
Description: Testing whether data scientists can do what they expect in
Posit Workbench.
License: file LICENSE
URL: https://jumpingrivers.github.io/audit.workbench/
Imports:
audit.base (>= 0.6.20),
audit.base (>= 0.6.25),
BiocManager,
cli,
dplyr,
fs,
glue,
httr,
processx,
purrr,
quarto (>= 1.3),
remotes,
rlang,
rmarkdown,
serverHeaders,
stringr,
tibble,
utils,
Expand All @@ -33,8 +33,7 @@ Suggests:
rvest,
testthat (>= 3.0.0)
Remotes:
jumpingrivers/audit.base,
jumpingrivers/serverheaders
jumpingrivers/audit.base
Config/testthat/edition: 3
Encoding: UTF-8
Language: en-GB
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# audit.workbench 0.6.7 *2026-02-23*
- fix: Use remote versions of software if possible
- fix: Printing drivers to screen
- fix: Suppress some BioConductor noise
- fix: Check cran didn't work

# audit.workbench 0.6.6 *2026-01-22*
- fix: Parsing Posit versions #20
- chore: Linting and air'ing
Expand Down
4 changes: 2 additions & 2 deletions R/check_package.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ check_cran = R6::R6Class(
#' @param debug_level See check() for details
check = function(debug_level) {
private$checker(testing_cran(debug_level))
rinvisible(NULL)
invisible(NULL)
}
),
private = list(
Expand Down Expand Up @@ -93,7 +93,7 @@ testing_bioconductor = function(debug_level) {
# Can we access the bioconductor repos
# Repo 5 is bioconductor, but doesn't work!
# Installing a bioconductor pkg is slowwww
repos = BiocManager::repositories()[1:4]
repos = suppressMessages(BiocManager::repositories()[1:4])
lapply(repos, function(repo) {
stopifnot("Unable to access bioconductor repo" = !httr::http_error(repo))
})
Expand Down
26 changes: 25 additions & 1 deletion R/check_posit_drivers.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ check_posit_drivers = function(debug_level) {
upgrade = upgrade,
version = latest_version
)
audit.base::print_colour_versions(installed)
print_colour_version_posit_driver(installed[1, ])
installed
}

Expand All @@ -31,3 +31,27 @@ get_installed_posit_driver = function() {
}
installed_version
}

# fmt: skip
print_colour_version_posit_driver = function(row) { # nolint
software_name = glue::glue("{stringr::str_to_title(row$software)}") # nolint
latest_version = glue::glue("{row$version}") # nolint
if (is.na(row$installed_version)) {
cli::cli_alert_danger(
"{software_name}: latest {latest_version} not installed"
)
return(invisible(NULL))
}

if (isTRUE(row$upgrade)) {
cli::cli_alert_danger(
"{software_name}: v{row$installed_version} installed, \\
but {latest_version} available"
)
} else {
cli::cli_alert_success(
"{software_name}: Latest version installed"
)
}
invisible(NULL)
}
2 changes: 1 addition & 1 deletion R/check_versions.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ check_versions = function(debug_level) {
)

installed = tibble::tibble(installed_version = versions, software)
audit.base::augment_installed(installed)
audit.base::augment_installed(installed, remote = TRUE)
}