Skip to content

Commit

Permalink
streamline naming and spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
maxheld83 committed Nov 4, 2024
1 parent 94b7b22 commit 7115a09
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export(mixed_react_tree_ui)
export(module2app)
export(module2app_server)
export(module2app_ui)
export(snaps_2_man)
export(snaps2man)
export(x_counter_button_app)
export(x_counter_button_server)
export(x_counter_button_ui)
4 changes: 2 additions & 2 deletions R/shiny2screenshot.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ NULL

#' @rdname tag_shiny
#' @details
#' - `@nifflerExamplesShiny${1:# example code}`
#' - `@nifflerExamplesShiny$ {1:# example code}`
#' R code which returns a shiny app.
#' A screenshot of the shiny app is added to the documentation,
#' along with the code required to create the screenshot and
#' launch the app interactively.
#' Wraps @examples.
#' @usage
#' # @nifflerExamplesShiny${1:# example code}
#' # @nifflerExamplesShiny ${1:# example code}
#' @name nifflerExamplesShiny
NULL

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-shiny2screenshot.R
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ describe("map_snaps_animate", {
})
})

describe("snaps_2_man", {
describe("snaps2man", {
it("writes out snapshots to man folder", {
output_path <- "man/figures/niffler_screenshots/helpers/bins.gif"
withr::defer(fs::file_delete(output_path))
res <- snaps_2_man(
res <- snaps2man(
test_file = "helpers",
name = "bins",
auto_numbered = FALSE,
Expand Down

0 comments on commit 7115a09

Please sign in to comment.