Skip to content

Commit c395bf4

Browse files
authored
v1.2.0 (#865)
1 parent ca42a30 commit c395bf4

21 files changed

Lines changed: 257 additions & 88 deletions

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ rsconnect
2626
^CRAN-RELEASE$
2727
^legacy_support.txt$
2828
^codecov\.yml$
29+
^CRAN-SUBMISSION$

.github/workflows/docker.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,18 @@ jobs:
2323
- "latest"
2424

2525
config:
26-
- name: CRAN
26+
# - name: "v1.2.0"
27+
# # always overwrite the latest version with the CRAN version
28+
# tags: "v1.2.0,latest"
29+
# ref: "v1.2.0"
30+
31+
- name: "v1.1.0"
2732
# always overwrite the latest version with the CRAN version
28-
tags: "v1.0.0,latest"
33+
tags: "v1.1.0,latest"
34+
ref: "v1.1.0"
35+
36+
- name: "v1.0.0"
37+
tags: "v1.0.0"
2938
ref: "v1.0.0"
3039

3140
# always rebuild legacy to pick up newer R library builds

DESCRIPTION

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Encoding: UTF-8
22
Package: plumber
33
Type: Package
44
Title: An API Generator for R
5-
Version: 1.1.0.9000
5+
Version: 1.2.0
66
Roxygen: list(markdown = TRUE)
77
Authors@R: c(
88
person("Barret", "Schloerke", role = c("cre", "aut"), email = "barret@rstudio.com", comment = c(ORCID = "0000-0001-9986-114X")),
@@ -51,6 +51,8 @@ Suggests:
5151
spelling,
5252
mockery (>= 0.4.2),
5353
geojsonsf,
54+
redoc,
55+
rapidoc,
5456
sf
5557
RoxygenNote: 7.2.0
5658
Collate:

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,5 @@ importFrom(stats,runif)
115115
importFrom(stats,setNames)
116116
importFrom(utils,file.edit)
117117
importFrom(utils,installed.packages)
118+
importFrom(utils,tail)
118119
importFrom(webutils,parse_multipart)

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# plumber (development version)
1+
# plumber 1.2.0
22

33
## Breaking changes
44

R/plumb-block.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ stopOnLine <- function(lineNum, line, msg){
1212
#' @param lineNum The line number just above the function we're documenting
1313
#' @param file A character vector representing all the lines in the file
1414
#' @param envir An environment where to evaluate parsed expressions
15+
#' @importFrom utils tail
1516
#' @noRd
1617
plumbBlock <- function(lineNum, file, envir = parent.frame()){
1718
paths <- NULL

R/pr.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ pr_hooks <- function(pr,
346346
#' \code{\link{random_cookie_key}}. Please see the "Storing secure keys" section for more details
347347
#' complex character string to bolster security.
348348
#' @param name The name of the cookie in the user's browser.
349-
#' @param path The uri path that the cookie will be available in future requests.
349+
#' @param path The URI path that the cookie will be available in future requests.
350350
#' Defaults to the request URI. Set to \code{"/"} to make cookie available to
351351
#' all requests at the host.
352352
#' @param expiration A number representing the number of seconds into the future
@@ -363,7 +363,7 @@ pr_hooks <- function(pr,
363363
#' accept the cookie. An error will be returned if \code{same_site = "None"} and \code{secure = FALSE}.
364364
#' If not specified or a non-character is given, no SameSite policy is attached to the cookie.
365365
#' @seealso \itemize{
366-
#' \item \href{https://github.com/jeroen/sodium}{'sodium'}: R bindings to 'libsodium'
366+
#' \item \href{https://github.com/r-lib/sodium}{'sodium'}: R bindings to 'libsodium'
367367
#' \item \href{https://doc.libsodium.org/}{'libsodium'}: A Modern and Easy-to-Use Crypto Library
368368
#' \item \href{https://github.com/r-lib/keyring}{'keyring'}: Access the system credential store from R
369369
#' \item \href{https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#Directives}{Set-Cookie flags}: Descriptions of different flags for \code{Set-Cookie}

R/pr_set.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ pr_set_debug <- function(pr, debug = interactive()) {
153153
#'
154154
#' ## View API using Redoc
155155
#' # Official Website: https://github.com/Redocly/redoc
156-
#' # remotes::install_github("https://github.com/meztez/redoc/")
157156
#' if (require(redoc)) {
158157
#' pr() %>%
159158
#' pr_set_docs("redoc") %>%
@@ -163,7 +162,6 @@ pr_set_debug <- function(pr, debug = interactive()) {
163162
#'
164163
#' ## View API using RapiDoc
165164
#' # Official Website: https://github.com/mrin9/RapiDoc
166-
#' # remotes::install_github("https://github.com/meztez/rapidoc/")
167165
#' if (require(rapidoc)) {
168166
#' pr() %>%
169167
#' pr_set_docs("rapidoc") %>%

R/session-cookie.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#' \code{\link{random_cookie_key}}. Please see the "Storing secure keys" section for more details
3333
#' complex character string to bolster security.
3434
#' @param name The name of the cookie in the user's browser.
35-
#' @param path The uri path that the cookie will be available in future requests.
35+
#' @param path The URI path that the cookie will be available in future requests.
3636
#' Defaults to the request URI. Set to \code{"/"} to make cookie available to
3737
#' all requests at the host.
3838
#' @param expiration A number representing the number of seconds into the future
@@ -50,7 +50,7 @@
5050
#' If not specified or a non-character is given, no SameSite policy is attached to the cookie.
5151
#' @export
5252
#' @seealso \itemize{
53-
#' \item \href{https://github.com/jeroen/sodium}{'sodium'}: R bindings to 'libsodium'
53+
#' \item \href{https://github.com/r-lib/sodium}{'sodium'}: R bindings to 'libsodium'
5454
#' \item \href{https://doc.libsodium.org/}{'libsodium'}: A Modern and Easy-to-Use Crypto Library
5555
#' \item \href{https://github.com/r-lib/keyring}{'keyring'}: Access the system credential store from R
5656
#' \item \href{https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#Directives}{Set-Cookie flags}: Descriptions of different flags for \code{Set-Cookie}
@@ -175,7 +175,7 @@ session_cookie <- function(
175175

176176
#' Random cookie key generator
177177
#'
178-
#' Uses a cryptographically secure pseudorandom number generator from [sodium::helpers()] to generate a 64 digit hexadecimal string. \href{https://github.com/jeroen/sodium}{'sodium'} wraps around \href{https://doc.libsodium.org/}{'libsodium'}.
178+
#' Uses a cryptographically secure pseudorandom number generator from [sodium::helpers()] to generate a 64 digit hexadecimal string. \href{https://github.com/r-lib/sodium}{'sodium'} wraps around \href{https://doc.libsodium.org/}{'libsodium'}.
179179
#'
180180
#' Please see \code{\link{session_cookie}} for more information on how to save the generated key.
181181
#'

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![R build status](https://github.com/rstudio/plumber/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/rstudio/plumber/actions)
55
[![](https://www.r-pkg.org/badges/version/plumber)](https://www.r-pkg.org/pkg/plumber)
66
[![CRAN RStudio mirror downloads](https://cranlogs.r-pkg.org/badges/plumber?color=brightgreen)](https://www.r-pkg.org/pkg/plumber)
7-
[![codecov](https://codecov.io/gh/rstudio/plumber/branch/main/graph/badge.svg)](https://codecov.io/gh/rstudio/plumber)
7+
[![codecov](https://app.codecov.io/gh/rstudio/plumber/branch/main/graph/badge.svg)](https://app.codecov.io/gh/rstudio/plumber)
88
[![RStudio community](https://img.shields.io/badge/community-plumber-blue?style=social&logo=rstudio&logoColor=75AADB)](https://community.rstudio.com/tag/plumber)
99
<!-- badges: end -->
1010

@@ -107,7 +107,7 @@ will be the best way to get started. You'll be able to get a server hosting your
107107
custom API in just two R commands. To deploy to DigitalOcean, check out the
108108
`plumber` companion package [`plumberDeploy`](https://github.com/meztez/plumberDeploy).
109109

110-
[RStudio Connect](https://rstudio.com/products/connect/) is a commercial
110+
[RStudio Connect](https://www.rstudio.com/products/connect/) is a commercial
111111
publishing platform that enables R developers to easily publish a variety of R
112112
content types, including Plumber APIs. Additional documentation is available at
113113
https://www.rplumber.io/articles/hosting.html#rstudio-connect-1.

0 commit comments

Comments
 (0)