Skip to content

Commit

Permalink
fix(glue): further fixes to deprecated glue behaviors (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgkf authored Oct 15, 2024
1 parent 6aa5a46 commit 4d7e41b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: roxytypes
Title: Typed Parameter Tags for Integration with 'roxygen2'
Version: 0.1.1
Version: 0.1.2
Authors@R:
c(
person(
Expand Down Expand Up @@ -34,4 +34,4 @@ Enhances:
roxylint
Config/Needs/documentation:
roxylint
RoxygenNote: 7.3.1
RoxygenNote: 7.3.2
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# roxytypes v0.1.2

* Further fixes to `glue::glue` use, a continuation of the fixes in v0.1.1.
(@dgkf #18)

# roxytypes v0.1.1

* Updates use of `glue::glue`, which previously made use of
Expand Down
2 changes: 1 addition & 1 deletion R/tag_typed.R
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ roxy_tag_rd.roxy_tag_typed <- function(x, base_path, env) { # nolint
desc <- if (is.function(format)) {
do.call(format, append(list(x), x$val))
} else {
glue::glue(format, .envir = x$val)
glue::glue_data(.x = as.list(x$val), format)
}

# handle markdown-style formatting using roxygen2 internals
Expand Down
2 changes: 1 addition & 1 deletion R/tag_typedreturn.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ roxy_tag_rd.roxy_tag_typedreturn <- function(x, base_path, env) { # nolint
desc <- if (is.function(format)) {
do.call(format, append(list(x), x$val))
} else {
glue::glue(format, .envir = x$val)
glue::glue_data(.x = as.list(x$val), format)
}

# handle markdown-style formatting using roxygen2 internals
Expand Down

0 comments on commit 4d7e41b

Please # to comment.