Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix verdepcheck #4

Merged
merged 14 commits into from
Sep 30, 2024
8 changes: 4 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ Depends:
R (>= 4.0)
Imports:
glue,
jsonlite (>= 0.9.4),
jsonlite (>= 1.8.6),
lzstring,
roxygen2 (>= 7.1.1),
roxygen2 (>= 7.2.0),
stringr (>= 0.4)
Suggests:
pkgdown (>= 1.2.0),
testthat (>= 3.0.4),
pkgdown (>= 2.0.0),
testthat (>= 3.1.5),
withr (>= 2.4.3)
Config/Needs/verdepcheck: tidyverse/glue, jeroen/jsonlite,
lzstring=parmsam/lzstring-r, r-lib/roxygen2, tidyverse/stringr,
Expand Down
2 changes: 1 addition & 1 deletion R/tag_examplesShinylive.R
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ roxy_tag_parse.roxy_tag_examplesShinylive <- function(x) {
}

# not elegant but this is the most efficient way to access sibling tags
tokens <- get("tokens", envir = parent.frame(3L))
tokens <- dynGet("tokens")

tags_examples <- Filter(function(x) x$tag %in% c("examples", "examplesIf"), tokens)

Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-tag_examplesShinylive.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
test_that("examplesShinylive tag - errors - missing @examples", {
skip_if_not(packageVersion("roxygen2") >= "7.3.0")
pawelru marked this conversation as resolved.
Show resolved Hide resolved
text <- "
#' This is a title
#'
Expand Down Expand Up @@ -240,6 +241,7 @@ test_that("examplesShinylive tag - keywords - {{tags_examples}}", {
})

test_that("examplesShinylive tag - keywords - error when parsing with glue", {
skip_if_not(packageVersion("roxygen2") >= "7.3.0")
text <- "
#' This is a title
#'
Expand Down
Loading