Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ Encoding: UTF-8
Language: en-US
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.2
RoxygenNote: 7.3.3
2 changes: 1 addition & 1 deletion R/get_dt_rows.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#'
#' @return (`shiny::tagList`) A `shiny tagList`.
#'
#' @examplesIf require("DT")
#' @examplesIf requireNamespace("DT", quietly = TRUE)
#' library(shiny)
#' library(DT)
#'
Expand Down
2 changes: 1 addition & 1 deletion R/plot_with_settings.R
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ plot_with_settings_ui <- function(id) {
#'
#' @return A `shiny` module.
#'
#' @examples
#' @examplesIf requireNamespace("lattice", quietly = TRUE)
#' # Example using a reactive as input to plot_r
#' library(shiny)
#' library(ggplot2)
Expand Down
2 changes: 1 addition & 1 deletion man/get_dt_rows.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion man/plot_with_settings.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion tests/testthat/test-plot_with_settings.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ plot_funs <- list(
print(ggplot2::ggplot(mtcars, ggplot2::aes(mpg, wt)) +
ggplot2::geom_point())
},
function() lattice::densityplot(1),
function() {
testthat::skip_if_not_installed("lattice")
lattice::densityplot(1)
},
function() {
ggplot2::ggplotGrob(
ggplot2::ggplot(mtcars, ggplot2::aes(mpg, wt)) +
Expand Down Expand Up @@ -394,6 +397,7 @@ testthat::test_that("plot_with_settings_srv set dimensions and download a png fi

testthat::test_that("plot_with_settings_srv set dimensions and download a png file - trellis", {
testthat::skip_if_not_installed("png")
testthat::skip_if_not_installed("lattice")

plot_with_settings_args$plot_r <- function() {
lattice::densityplot(1)
Expand Down
Loading