Skip to content

Commit

Permalink
Use base R deparse() when writing plumber.R (#241)
Browse files Browse the repository at this point in the history
* Use base R `deparse()`

* Update NEWS

* Pin vdiffr due to r-lib/vdiffr#137
  • Loading branch information
juliasilge authored Sep 8, 2023
1 parent d085934 commit 4efe187
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ jobs:
extra-packages:
any::rcmdcheck,
any::cpp11,
ranger=?ignore-before-r=4.1.0
ranger=?ignore-before-r=4.1.0,
[email protected]
needs: check

- name: Install Miniconda & Tensorflow
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# vetiver (development version)

* Fixed how plumber files are generated for `board_url()` (#241).

# vetiver 0.2.3

* Updated test involving renv and rsconnect (#230).
Expand Down
2 changes: 1 addition & 1 deletion R/write-plumber.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ vetiver_write_plumber <- function(board, name, version = NULL,
load_infra_pkgs <- glue_collapse(glue("library({infra_pkgs})"), sep = "\n")
load_required_pkgs <- glue_required_pkgs(v$metadata$required_pkgs, rsconnect)

board <- rlang::expr_deparse(pins::board_deparse(board))
board <- deparse(pins::board_deparse(board))
board <- glue('b <- {board}')

if (rlang::is_empty(plumber_dots)) {
Expand Down

0 comments on commit 4efe187

Please sign in to comment.