From 7d15386ce8f4513151ef4884ad362e53b2692f74 Mon Sep 17 00:00:00 2001 From: Colin Gillespie Date: Mon, 24 Jun 2024 18:09:29 +0100 Subject: [PATCH] fix: Update --- R/rvest.R | 2 +- inst/extdata/versions/software.csv | 5 ++--- tests/testthat/test-posit_versions.R | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/R/rvest.R b/R/rvest.R index 000e32e..b13e89e 100644 --- a/R/rvest.R +++ b/R/rvest.R @@ -36,7 +36,7 @@ get_all_versions = function(page) { tibble::tibble(name = v[!is.na(v)], cve = "") } -update_posit_versions = function() { +update_posit_csv = function() { readr::write_csv(extract_cves("https://docs.posit.co/connect/news/"), file = "inst/extdata/versions/connect.csv") diff --git a/inst/extdata/versions/software.csv b/inst/extdata/versions/software.csv index b7fcad4..68dba49 100644 --- a/inst/extdata/versions/software.csv +++ b/inst/extdata/versions/software.csv @@ -1,15 +1,14 @@ software,version -python,3.12.3 +python,3.12.4 python,3.11.9 python,3.10.14 python,3.9.19 python,3.8.19 -python,3.7.17 quarto,1.4.555 quarto,1.2.475 quarto,1.1.189 quarto,1.0.38 -r,4.4.0 +r,4.4.1 r,4.3.3 r,4.2.3 r,4.1.3 diff --git a/tests/testthat/test-posit_versions.R b/tests/testthat/test-posit_versions.R index 5a7650c..6d1ea53 100644 --- a/tests/testthat/test-posit_versions.R +++ b/tests/testthat/test-posit_versions.R @@ -2,7 +2,7 @@ test_that("Testing check server", { types = c("workbench", "connect", "drivers") for (type in types) { versions = get_posit_versions(type) - expect_equal(ncol(versions), 3) + expect_equal(ncol(versions), 2) expect_gt(nrow(versions), 2) } type = "connect"