Skip to content

Commit

Permalink
fix: Add serverHeaders to imports (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
csgillespie authored Oct 19, 2023
1 parent 730494d commit 4eb7e1c
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 20 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: audit.base
Title: Base package for Posit Checks
Version: 0.6.9
Version: 0.6.10
Authors@R:
person("Jumping", "Rivers", , "[email protected]", role = c("aut", "cre"))
Description: Base package for sharing classes between posit audit
Expand All @@ -19,12 +19,12 @@ Imports:
R6,
readr,
rlang,
serverHeaders,
stringr,
tibble,
yaml
Suggests:
jsonlite,
serverHeaders,
testthat (>= 3.0.0)
Remotes:
jumpingrivers/serverHeaders
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# audit.base 0.6.10 _2023-10-19_
- fix: Add {serverHeaders} to Imports
- feat: Update software versions

# audit.base 0.6.9 _2023-09-30_
- feat: Check if `server` contains `Posit`

Expand Down
7 changes: 6 additions & 1 deletion R/create_software_tibble.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@ create_software_tibble = function() {
q = jsonlite::read_json("https://api.github.com/repos/quarto-dev/quarto-cli/releases/latest")
quarto = c("1.0.38", "1.1.189", "1.2.475", stringr::str_remove(q$name, "^v"))

tibble::tibble(software = rep(c("r", "python", "quarto"),
software_tibble = tibble::tibble(software = rep(c("r", "python", "quarto"),
c(length(r), length(py), length(quarto))),
version = c(r, py, quarto))
# Use package_version to get better sorting
software_tibble %>%
dplyr::mutate(tmp_version = package_version(version)) %>%
dplyr::arrange(software, dplyr::desc(tmp_version)) %>%
dplyr::select(-"tmp_version")
}

get_latest_versions_from_posit = function(type = c("r", "python")) {
Expand Down
35 changes: 18 additions & 17 deletions inst/extdata/versions/software.csv
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
software,version
r,3.0.3
r,3.1.3
r,3.2.5
r,3.3.3
r,3.4.4
r,3.5.3
r,3.6.3
r,4.0.5
r,4.1.3
r,4.2.3
r,4.3.1
python,3.12.0
python,3.11.6
python,3.10.13
python,3.11.5
python,3.7.17
python,3.8.18
python,3.9.18
quarto,1.0.38
quarto,1.1.189
quarto,1.2.475
python,3.8.18
python,3.7.17
quarto,1.3.450
quarto,1.2.475
quarto,1.1.189
quarto,1.0.38
r,4.3.1
r,4.2.3
r,4.1.3
r,4.0.5
r,3.6.3
r,3.5.3
r,3.4.4
r,3.3.3
r,3.2.5
r,3.1.3
r,3.0.3

0 comments on commit 4eb7e1c

Please sign in to comment.