Skip to content

Commit

Permalink
Change dontrun to donttest
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Kuethe committed Sep 21, 2024
1 parent 9811d42 commit 320a9d3
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 17 deletions.
16 changes: 8 additions & 8 deletions R/context_calls.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#' @param file_name File name. Set to `"data.{type}"` if `file_name = NULL`.
#' @returns A [tabulatorContext()] object
#' @examples
#' \dontrun{
#' \donttest{
#' tabulatorContext("table") |>
#' trigger_download("csv", "table-data.csv")
#' }
Expand All @@ -25,7 +25,7 @@ trigger_download <- function(ctx, type = c("csv", "json", "xlsx"), file_name = N
#' Submit data to R
#' @inherit trigger_download params return
#' @examples
#' \dontrun{
#' \donttest{
#' tabulatorContext("table") |>
#' trigger_get_data()
#' }
Expand All @@ -38,7 +38,7 @@ trigger_get_data <- function(ctx) {
#' @inherit trigger_download params return
#' @param row (list): row data or \code{NULL} to add an empty row
#' @examples
#' \dontrun{
#' \donttest{
#' tabulatorContext("table") |>
#' add_row()
#' }
Expand All @@ -50,7 +50,7 @@ add_row <- function(ctx, row = NULL) {
#' Delete selected rows from table
#' @inherit trigger_download params return
#' @examples
#' \dontrun{
#' \donttest{
#' tabulatorContext("table") |>
#' delete_selected_rows()
#' }
Expand All @@ -61,14 +61,14 @@ delete_selected_rows <- function(ctx) {

# TODO: Test bindings
delete_row <- function(ctx) {
print("Not implemented yet")
message("Not implemented yet")
return(ctx)
}

#' Undo changes
#' @inherit trigger_download params return
#' @examples
#' \dontrun{
#' \donttest{
#' tabulatorContext("table") |>
#' undo()
#' }
Expand All @@ -80,7 +80,7 @@ undo <- function(ctx) {
#' Redo changes
#' @inherit trigger_download params return
#' @examples
#' \dontrun{
#' \donttest{
#' tabulatorContext("table") |>
#' redo()
#' }
Expand All @@ -92,7 +92,7 @@ redo <- function(ctx) {
#' Submit sheet data to R
#' @inherit trigger_download params return
#' @examples
#' \dontrun{
#' \donttest{
#' tabulatorContext("table") |>
#' trigger_get_sheet_data()
#' }
Expand Down
2 changes: 1 addition & 1 deletion R/tabulator_context.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ invoke_method <- function(widget, method_name, ...) {
#' @param session A shiny session object.
#' @returns A context object that can be used to interact with a [tabulator()] HTML widget
#' @examples
#' \dontrun{
#' \donttest{
#' tabulatorContext("table") |>
#' trigger_download("csv")
#' }
Expand Down
2 changes: 1 addition & 1 deletion man/add_row.Rd

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

2 changes: 1 addition & 1 deletion man/delete_selected_rows.Rd

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

2 changes: 1 addition & 1 deletion man/redo.Rd

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

2 changes: 1 addition & 1 deletion man/tabulatorContext.Rd

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

2 changes: 1 addition & 1 deletion man/trigger_download.Rd

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

2 changes: 1 addition & 1 deletion man/trigger_get_data.Rd

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

2 changes: 1 addition & 1 deletion man/trigger_get_sheet_data.Rd

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

2 changes: 1 addition & 1 deletion man/undo.Rd

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

0 comments on commit 320a9d3

Please sign in to comment.