Skip to content

Commit aa4b01e

Browse files
WIP: Fixes example testing via shinytest2 (#947)
# Pull Request WIP: using "ready" status for testing purposes Fixes #nnn - Detected these errors when testing #944 ### Changes description: - [x] `tm_viewer` throws warning of URL - [x] ~`tm_g_association` example shows error in application~ fixed in #949 - [x] `tm_variable_browser` example cannot find `%>%` --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent f55d142 commit aa4b01e

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

R/tm_file_viewer.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@
3131
#' folder = system.file("sample_files", package = "teal.modules.general"),
3232
#' png = system.file("sample_files/sample_file.png", package = "teal.modules.general"),
3333
#' txt = system.file("sample_files/sample_file.txt", package = "teal.modules.general"),
34-
#' url = "https://fda.gov/files/drugs/published/Portable-Document-Format-Specifications.pdf"
34+
#' url = file.path(
35+
#' "https://www.fda.gov/files/drugs/published",
36+
#' "Portable-Document-Format-Specifications.pdf"
37+
#' )
3538
#' )
3639
#' )
3740
#' )

R/tm_variable_browser.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ get_plotted_data <- function(input, plot_var, data) {
886886
teal.reporter::teal_card(obj),
887887
teal.reporter::teal_card("## Module's output(s)")
888888
)
889-
teal.code::eval_code(obj, "library(ggplot2)") |>
889+
teal.code::eval_code(obj, "library(ggplot2)\nlibrary(dplyr)") |>
890890
within(
891891
{
892892
ANL <- dplyr::select(dataset_name, varname)

man/tm_file_viewer.Rd

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)