Skip to content

Commit

Permalink
Fix verdepcheck (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelru authored Sep 30, 2024
1 parent 4c631d5 commit d4b418b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
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")
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

0 comments on commit d4b418b

Please sign in to comment.