diff --git a/DESCRIPTION b/DESCRIPTION index cf40a92b..06cf6e2b 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Type: Package Package: plumber Title: An API Generator for R -Version: 1.3.2.9000 +Version: 1.3.3 Authors@R: c( person("Barret", "Schloerke", , "barret@posit.co", role = c("cre", "aut"), comment = c(ORCID = "0000-0001-9986-114X")), diff --git a/NEWS.md b/NEWS.md index 4b9465af..bbabeed2 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,10 @@ -# plumber (development version) +# plumber 1.3.3 + +## Bug fixes and minor improvements + +* Swagger documentation redirects from `/__swagger__/` to `/__docs__/` now + use relative paths, ensuring compatibility with various hosting + environments including RStudio Connect (#1016, #1018). # plumber 1.3.2 diff --git a/cran-comments.md b/cran-comments.md index d2423e14..a00e5e7d 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -1,97 +1,16 @@ ## Comments -#### 2025-12-22 - -Dear maintainer, - -Please see the problems shown on -. - -Please correct before 2026-01-12 to safely retain your package on CRAN. - -Best wishes, -The CRAN Team - - -#### 2025-12-22 - -Output from CRAN package checks: - -``` -CRAN Package Check Results for Package plumber -Last updated on 2025-12-22 15:51:00 CET. - -Flavor Version Tinstall Tcheck Ttotal Status Flags -r-devel-linux-x86_64-debian-clang 1.3.1 12.50 86.23 98.73 OK -r-devel-linux-x86_64-debian-gcc 1.3.1 8.08 62.75 70.83 ERROR -r-devel-linux-x86_64-fedora-clang 1.3.1 22.00 131.83 153.83 OK -r-devel-linux-x86_64-fedora-gcc 1.3.1 24.00 182.79 206.79 OK -r-devel-windows-x86_64 1.3.1 14.00 107.00 121.00 OK -r-patched-linux-x86_64 1.3.1 13.59 77.77 91.36 OK -r-release-linux-x86_64 1.3.0 13.25 78.78 92.03 OK -r-release-macos-arm64 1.3.1 3.00 48.00 51.00 OK -r-release-macos-x86_64 1.3.1 8.00 146.00 154.00 OK -r-release-windows-x86_64 1.3.1 16.00 104.00 120.00 OK -r-oldrel-macos-arm64 1.3.1 3.00 52.00 55.00 OK -r-oldrel-macos-x86_64 1.3.1 9.00 186.00 195.00 OK -r-oldrel-windows-x86_64 1.3.1 19.00 124.00 143.00 OK -Check Details -Version: 1.3.1 -Check: tests -Result: ERROR - Running ‘spelling.R’ [0s/0s] - Running ‘testthat.R’ [21s/34s] - Running the tests in ‘tests/testthat.R’ failed. - Complete output: - > library(testthat) - > library(plumber) - > - > test_check("plumber") - [ FAIL 1 | WARN 0 | SKIP 15 | PASS 1952 ] - - ══ Skipped tests (15) ══════════════════════════════════════════════════════════ - • On CRAN (15): 'test-cookies.R:41:3', 'test-deprecated.R:60:3', - 'test-find-port.R:40:3', 'test-find-port.R:56:3', 'test-legacy.R:20:3', - 'test-options.R:22:3', 'test-plumber-print.R:2:3', - 'test-plumber-print.R:60:3', 'test-plumber.R:67:3', - 'test-serializer-device.R:21:1', 'test-serializer-htmlwidgets.R:20:3', - 'test-static.R:23:3', 'test-zzz-openapi.R:302:3', - 'test-zzz-plumb_api.R:10:3', 'test-zzz-plumb_api.R:65:3' +#### 2024-12-12 - ══ Failed tests ════════════════════════════════════════════════════════════════ - ── Failure ('test-zzzz-include.R:34:5'): Includes work ───────────────────────── - Expected `val$body` to match regexp "\\s*$". - Actual text: - ✖ │ - │ - │ - │ - │ - │ - │ - │ - │ - │ - │ - │ - │ - │ - │ - │ test - │ - | [...truncated...] +Patch release at the request of RStudio Connect team to fix Swagger docs redirect issue. +Thank you, +Barret - [ FAIL 1 | WARN 0 | SKIP 15 | PASS 1952 ] - Error: - ! Test failures. - Execution halted -Flavor: r-devel-linux-x86_64-debian-gcc -``` -#### 2024-12-12 +## revdepcheck results -I've made the test more robust to different html output formats. No `./R` code has been changed. +We checked 21 reverse dependencies (19 from CRAN + 2 from Bioconductor), comparing R CMD check results across CRAN and dev versions of this package. -Best, -Barret + * We saw 0 new problems + * We failed to check 0 packages diff --git a/revdep/README.md b/revdep/README.md index a604fd32..02badef9 100644 --- a/revdep/README.md +++ b/revdep/README.md @@ -1,70 +1,9 @@ -# Platform - -|field |value | -|:--------|:----------------------------------------| -|version |R version 4.5.2 (2025-10-31) | -|os |macOS Tahoe 26.1 | -|system |aarch64, darwin20 | -|ui |X11 | -|language |(EN) | -|collate |C.UTF-8 | -|ctype |C.UTF-8 | -|tz |America/New_York | -|date |2025-12-12 | -|pandoc |3.1 @ /opt/homebrew/bin/pandoc | -|quarto |1.8.25 @ /Applications/quarto/bin/quarto | - -# Dependencies - -|package |old |new |Δ | -|:---------|:---------|:---------|:--| -|plumber |1.3.0 |1.3.1 |* | -|cli |3.6.5 |3.6.5 | | -|crayon |1.5.3 |1.5.3 | | -|curl |7.0.0 |7.0.0 | | -|fastmap |1.2.0 |1.2.0 | | -|glue |1.8.0 |1.8.0 | | -|httpuv |1.6.16 |1.6.16 | | -|jsonlite |2.0.0 |2.0.0 | | -|later |1.4.4 |1.4.4 | | -|lifecycle |1.0.4 |1.0.4 | | -|magrittr |2.0.4 |2.0.4 | | -|mime |0.13 |0.13 | | -|otel |0.2.0 |0.2.0 | | -|promises |1.5.0 |1.5.0 | | -|R6 |2.6.1 |2.6.1 | | -|Rcpp |1.1.0 |1.1.0 | | -|rlang |1.1.6 |1.1.6 | | -|sodium |1.4.0 |1.4.0 | | -|stringi |1.8.7 |1.8.7 | | -|swagger |5.17.14.1 |5.17.14.1 | | -|webutils |1.2.2 |1.2.2 | | - # Revdeps -## All (21) +## Failed to check (2) -|package |version |error |warning |note | -|:---------------------|:---------|:-----|:-------|:----| -|[arenar](problems.md#arenar)|0.2.0 | |1 |1 | -|[AzureContainers](problems.md#azurecontainers)|1.3.3 | | |1 | -|[bayesAB](problems.md#bayesab)|1.1.3 |1 | |1 | -|[gaawr2](problems.md#gaawr2)|0.0.3 |1 | | | -|gqlr |0.0.2 | | | | -|[log](problems.md#log)|1.1.1 | | |2 | -|[microCRAN](problems.md#microcran)|0.9.0-1 | | |1 | -|MicroMoB |0.1.2 | | | | -|occupationMeasurement |0.3.2 | | | | -|[openmetrics](problems.md#openmetrics)|0.3.0 | | |1 | -|[plumbertableau](problems.md#plumbertableau)|0.1.1 |1 | | | -|polished |0.8.1 | | | | -|rapidoc |9.3.4 | | | | -|redoc |2.0.0.75 | | | | -|ReliaGrowR |0.3.2 | | | | -|rsconnect |1.7.0 | | | | -|shiny.telemetry |0.3.2 | | | | -|[starsTileServer](problems.md#starstileserver)|0.1.1 |1 | | | -|swagger |5.17.14.1 | | | | -|[tgver](problems.md#tgver)|0.3.0 |1 | | | -|[vetiver](problems.md#vetiver)|0.2.6 |1 | | | +|package |version |error |warning |note | +|:-------|:-------|:-----|:-------|:----| +|bayesAB |? | | | | +|tgver |? | | | | diff --git a/revdep/cran.md b/revdep/cran.md index a9507337..54856672 100644 --- a/revdep/cran.md +++ b/revdep/cran.md @@ -1,6 +1,6 @@ ## revdepcheck results -We checked 21 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package. +We checked 21 reverse dependencies (19 from CRAN + 2 from Bioconductor), comparing R CMD check results across CRAN and dev versions of this package. * We saw 0 new problems * We failed to check 0 packages diff --git a/revdep/failures.md b/revdep/failures.md index 9a207363..17343dee 100644 --- a/revdep/failures.md +++ b/revdep/failures.md @@ -1 +1,70 @@ -*Wow, no problems at all. :)* \ No newline at end of file +# bayesAB + +
+ +* Version: NA +* GitHub: NA +* Source code: https://github.com/cran/bayesAB +* Number of recursive dependencies: 63 + +Run `revdepcheck::cloud_details(, "bayesAB")` for more info + +
+ +## Error before installation + +### Devel + +``` + + + + + + +``` +### CRAN + +``` + + + + + + +``` +# tgver + +
+ +* Version: NA +* GitHub: NA +* Source code: https://github.com/cran/tgver +* Number of recursive dependencies: 154 + +Run `revdepcheck::cloud_details(, "tgver")` for more info + +
+ +## Error before installation + +### Devel + +``` + + + + + + +``` +### CRAN + +``` + + + + + + +``` diff --git a/revdep/problems.md b/revdep/problems.md index f4567e42..9a207363 100644 --- a/revdep/problems.md +++ b/revdep/problems.md @@ -1,400 +1 @@ -# arenar - -
- -* Version: 0.2.0 -* GitHub: https://github.com/ModelOriented/ArenaR -* Source code: https://github.com/cran/arenar -* Date/Publication: 2020-10-01 08:00:06 UTC -* Number of recursive dependencies: 117 - -Run `revdepcheck::revdep_details(, "arenar")` for more info - -
- -## In both - -* checking running R code from vignettes ... - ``` - ‘arena_intro_titanic.Rmd’ using ‘UTF-8’... failed - ‘arena_live.Rmd’ using ‘UTF-8’... failed - ‘arena_static.Rmd’ using ‘UTF-8’... failed - ‘classification.Rmd’ using ‘UTF-8’... failed - WARNING - Errors in running code in vignettes: - when running code in ‘arena_intro_titanic.Rmd’ - ... - - > knitr::opts_chunk$set(collapse = TRUE, comment = "#>", - ... - The following object is masked from ‘package:dplyr’: - - select - - - > library(gbm) - - When sourcing ‘classification.R’: - Error: there is no package called ‘gbm’ - Execution halted - ``` - -* checking Rd files ... NOTE - ``` - checkRd: (-1) calculate_subsets_performance.Rd:32: Lost braces in \itemize; \value handles \item{}{} directly - checkRd: (-1) calculate_subsets_performance.Rd:33: Lost braces in \itemize; \value handles \item{}{} directly - checkRd: (-1) create_arena.Rd:61: Lost braces in \itemize; \value handles \item{}{} directly - checkRd: (-1) create_arena.Rd:62: Lost braces in \itemize; \value handles \item{}{} directly - checkRd: (-1) create_arena.Rd:63: Lost braces in \itemize; \value handles \item{}{} directly - checkRd: (-1) create_arena.Rd:64: Lost braces in \itemize; \value handles \item{}{} directly - checkRd: (-1) create_arena.Rd:68: Lost braces in \itemize; \value handles \item{}{} directly - checkRd: (-1) create_arena.Rd:69: Lost braces in \itemize; \value handles \item{}{} directly - checkRd: (-1) create_arena.Rd:70: Lost braces in \itemize; \value handles \item{}{} directly - checkRd: (-1) create_arena.Rd:71: Lost braces in \itemize; \value handles \item{}{} directly - ... - checkRd: (-1) get_dataset_plots.Rd:14: Lost braces in \itemize; meant \describe ? - checkRd: (-1) get_dataset_plots.Rd:15: Lost braces in \itemize; meant \describe ? - checkRd: (-1) get_variable_against_another.Rd:12: Lost braces in \itemize; meant \describe ? - checkRd: (-1) get_variable_against_another.Rd:13: Lost braces in \itemize; meant \describe ? - checkRd: (-1) get_variable_against_another.Rd:14: Lost braces in \itemize; meant \describe ? - checkRd: (-1) get_variable_against_another.Rd:15: Lost braces in \itemize; meant \describe ? - checkRd: (-1) get_variable_distribution.Rd:12: Lost braces in \itemize; meant \describe ? - checkRd: (-1) get_variable_distribution.Rd:13: Lost braces in \itemize; meant \describe ? - checkRd: (-1) get_variable_distribution.Rd:14: Lost braces in \itemize; meant \describe ? - checkRd: (-1) get_variable_distribution.Rd:15: Lost braces in \itemize; meant \describe ? - ``` - -# AzureContainers - -
- -* Version: 1.3.3 -* GitHub: https://github.com/Azure/AzureContainers -* Source code: https://github.com/cran/AzureContainers -* Date/Publication: 2025-04-12 08:30:08 UTC -* Number of recursive dependencies: 69 - -Run `revdepcheck::revdep_details(, "AzureContainers")` for more info - -
- -## In both - -* checking dependencies in R code ... NOTE - ``` - Namespace in Imports field not imported from: ‘openssl’ - All declared Imports should be used. - ``` - -# bayesAB - -
- -* Version: 1.1.3 -* GitHub: https://github.com/FrankPortman/bayesAB -* Source code: https://github.com/cran/bayesAB -* Date/Publication: 2021-06-25 00:50:02 UTC -* Number of recursive dependencies: 63 - -Run `revdepcheck::revdep_details(, "bayesAB")` for more info - -
- -## In both - -* checking tests ... - ``` - Running ‘testthat.R’ - ERROR - Running the tests in ‘tests/testthat.R’ failed. - Last 13 lines of output: - > - > test_check("bayesAB") - Saving _problems/test-dists-34.R - [ FAIL 1 | WARN 5 | SKIP 0 | PASS 140 ] - - ══ Failed tests ════════════════════════════════════════════════════════════════ - ── Failure ('test-dists.R:34:3'): Success ────────────────────────────────────── - Expected `plotNormalInvGamma(3, 1, 1, 1)$labels$y` to equal "sig_sq". - Differences: - target is NULL, current is character - - [ FAIL 1 | WARN 5 | SKIP 0 | PASS 140 ] - Error: - ! Test failures. - Execution halted - ``` - -* checking Rd files ... NOTE - ``` - checkRd: (-1) plotDistributions.Rd:32: Lost braces - 32 | plot{...} functions are generated programmatically so the function calls in - | ^ - ``` - -# gaawr2 - -
- -* Version: 0.0.3 -* GitHub: https://github.com/jinghuazhao/gaawr2 -* Source code: https://github.com/cran/gaawr2 -* Date/Publication: 2025-03-24 15:00:09 UTC -* Number of recursive dependencies: 233 - -Run `revdepcheck::revdep_details(, "gaawr2")` for more info - -
- -## In both - -* checking running R code from vignettes ... - ``` - ‘gaawr2.Rmd’ using ‘UTF-8’... failed - ‘web.Rmd’ using ‘UTF-8’... OK - ERROR - Errors in running code in vignettes: - when running code in ‘gaawr2.Rmd’ - ... - + n.chains = 1, n.iter = 80) - - When sourcing 'gaawr2.R': - Error: .onLoad failed in loadNamespace() for 'rjags', details: - call: dyn.load(file, DLLpath = DLLpath, ...) - error: unable to load shared object '/Users/barret/Documents/git/rstudio/plumber/plumber.nosync/revdep/library.noindex/gaawr2/rjags/libs/rjags.so': - dlopen(/Users/barret/Documents/git/rstudio/plumber/plumber.nosync/revdep/library.noindex/gaawr2/rjags/libs/rjags.so, 0x000A): Library not loaded: /usr/local/lib/libjags.4.dylib - Referenced from: <337070A2-BC15-3117-B643-96612554E437> /Users/barret/Documents/git/rstudio/plumber/plumber.nosync/revdep/library.noindex/gaawr2/rjags/libs/rjags.so - Reason: tried: '/usr/local/lib/libjags.4.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/lib/libjags.4.dylib' (no such file), '/usr/local/lib/libjags.4.dylib' (no such file), '/Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/lib/libjags.4.dylib' (no such file), '/Library/Java/JavaVirtualMachines/jdk-11.0.18+10/Contents/Home/lib/server/libjags.4.dylib' (no - Execution halted - ``` - -# log - -
- -* Version: 1.1.1 -* GitHub: https://github.com/devOpifex/log -* Source code: https://github.com/cran/log -* Date/Publication: 2022-02-24 19:40:02 UTC -* Number of recursive dependencies: 58 - -Run `revdepcheck::revdep_details(, "log")` for more info - -
- -## In both - -* checking DESCRIPTION meta-information ... NOTE - ``` - Missing dependency on R >= 4.1.0 because package code uses the pipe - |> or function shorthand \(...) syntax added in R 4.1.0. - File(s) using such syntax: - ‘logger.R’ - ``` - -* checking dependencies in R code ... NOTE - ``` - Namespace in Imports field not imported from: ‘R6’ - All declared Imports should be used. - ``` - -# microCRAN - -
- -* Version: 0.9.0-1 -* GitHub: NA -* Source code: https://github.com/cran/microCRAN -* Date/Publication: 2023-11-03 22:00:02 UTC -* Number of recursive dependencies: 54 - -Run `revdepcheck::revdep_details(, "microCRAN")` for more info - -
- -## In both - -* checking DESCRIPTION meta-information ... NOTE - ``` - Missing dependency on R >= 4.1.0 because package code uses the pipe - |> or function shorthand \(...) syntax added in R 4.1.0. - File(s) using such syntax: - ‘api.R’ ‘handlers-static.R’ ‘static-assets.Rd’ - ``` - -# openmetrics - -
- -* Version: 0.3.0 -* GitHub: https://github.com/atheriel/openmetrics -* Source code: https://github.com/cran/openmetrics -* Date/Publication: 2020-11-09 21:20:02 UTC -* Number of recursive dependencies: 54 - -Run `revdepcheck::revdep_details(, "openmetrics")` for more info - -
- -## In both - -* checking dependencies in R code ... NOTE - ``` - Namespace in Imports field not imported from: ‘R6’ - All declared Imports should be used. - ``` - -# plumbertableau - -
- -* Version: 0.1.1 -* GitHub: https://github.com/rstudio/plumbertableau -* Source code: https://github.com/cran/plumbertableau -* Date/Publication: 2023-12-19 02:20:03 UTC -* Number of recursive dependencies: 65 - -Run `revdepcheck::revdep_details(, "plumbertableau")` for more info - -
- -## In both - -* checking running R code from vignettes ... - ``` - ‘introduction.Rmd’ using ‘UTF-8’... failed - ‘publishing-extensions.Rmd’ using ‘UTF-8’... OK - ‘r-developer-guide.Rmd’ using ‘UTF-8’... failed - ‘tableau-developer-guide.Rmd’ using ‘UTF-8’... OK - ERROR - Errors in running code in vignettes: - when running code in ‘introduction.Rmd’ - ... - > knitr::opts_chunk$set(collapse = TRUE, comment = "#>") - - ... - > set.seed(35487) - - > knitr::read_chunk(path = "../inst/plumber/loess/plumber.R", - + labels = "loess") - Warning in file(con, "r") : - cannot open file '../inst/plumber/loess/plumber.R': No such file or directory - - When sourcing ‘r-developer-guide.R’: - Error: cannot open the connection - Execution halted - ``` - -# starsTileServer - -
- -* Version: 0.1.1 -* GitHub: NA -* Source code: https://github.com/cran/starsTileServer -* Date/Publication: 2022-08-22 21:50:02 UTC -* Number of recursive dependencies: 114 - -Run `revdepcheck::revdep_details(, "starsTileServer")` for more info - -
- -## In both - -* checking running R code from vignettes ... - ``` - ‘upscaling.Rmd’ using ‘UTF-8’... OK - ‘using_functions.Rmd’ using ‘UTF-8’... OK - ‘using_shiny.Rmd’ using ‘UTF-8’... failed - ERROR - Errors in running code in vignettes: - when running code in ‘using_shiny.Rmd’ - ... - + function(grid, colFun) { - + starsTileServer::starsTileServer$new(grid, co .... [TRUNCATED] - - > Sys.sleep(3) - - > stopifnot(rp$is_alive()) - - When sourcing ‘using_shiny.R’: - Error: rp$is_alive() is not TRUE - Execution halted - ``` - -# tgver - -
- -* Version: 0.3.0 -* GitHub: https://github.com/tgve/tgver -* Source code: https://github.com/cran/tgver -* Date/Publication: 2022-09-30 15:20:03 UTC -* Number of recursive dependencies: 154 - -Run `revdepcheck::revdep_details(, "tgver")` for more info - -
- -## In both - -* checking running R code from vignettes ... - ``` - ‘dev-plan.Rmd’ using ‘UTF-8’... OK - ‘r-and-js.Rmd’ using ‘UTF-8’... failed - ‘tgver.Rmd’ using ‘UTF-8’... OK - ERROR - Errors in running code in vignettes: - when running code in ‘r-and-js.Rmd’ - ... - Warning in grid.Call.graphics(C_text, as.graphicsAnnot(x$label), x$x, x$y, : - font family 'Arial Narrow' not found in PostScript font database - Warning in grid.Call.graphics(C_text, as.graphicsAnnot(x$label), x$x, x$y, : - font family 'Arial Narrow' not found in PostScript font database - Warning in grid.Call.graphics(C_text, as.graphicsAnnot(x$label), x$x, x$y, : - font family 'Arial Narrow' not found in PostScript font database - - When sourcing ‘r-and-js.R’: - Error: invalid font type - Execution halted - ``` - -# vetiver - -
- -* Version: 0.2.6 -* GitHub: https://github.com/rstudio/vetiver-r -* Source code: https://github.com/cran/vetiver -* Date/Publication: 2025-10-28 15:50:02 UTC -* Number of recursive dependencies: 225 - -Run `revdepcheck::revdep_details(, "vetiver")` for more info - -
- -## In both - -* checking tests ... - ``` - Running ‘testthat.R’ - ERROR - Running the tests in ‘tests/testthat.R’ failed. - Last 13 lines of output: - ══ Failed tests ════════════════════════════════════════════════════════════════ - ── Error ('test-xgboost.R:9:1'): (code run outside of `test_that()`) ─────────── - Error in `matrix(NA_real_, ncol = model$nfeatures, dimnames = list("", model$feature_names))`: non-numeric matrix extent - Backtrace: - ▆ - 1. └─vetiver::vetiver_model(cars_xgb, "cars2") at test-xgboost.R:9:1 - 2. └─vetiver::vetiver_create_ptype(model, save_prototype, ...) - 3. ├─vetiver::vetiver_ptype(model, ...) - 4. └─vetiver:::vetiver_ptype.xgb.Booster(model, ...) - 5. └─base::matrix(...) - - [ FAIL 1 | WARN 2 | SKIP 70 | PASS 221 ] - Error: - ! Test failures. - Execution halted - ``` - +*Wow, no problems at all. :)* \ No newline at end of file diff --git a/tests/testthat/test-parser.R b/tests/testthat/test-parser.R index 2c78f6e6..9d16f974 100644 --- a/tests/testthat/test-parser.R +++ b/tests/testthat/test-parser.R @@ -1,5 +1,6 @@ context("Parsers tag") +skip_on_cran() skip_if_not_installed("readxl")