Skip to content

Commit

Permalink
Dont test examples that download data
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Kuethe committed Sep 21, 2024
1 parent 0acec2b commit d8f2c57
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 13 deletions.
4 changes: 3 additions & 1 deletion R/columns.R
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,9 @@ set_column_defaults <- function(
#' @param precision (integer) The number of decimals to display.
#' Set to \code{FALSE} to display all decimals.
#' @param pos (character): Position at which calculated values are displayed.
#' @example examples/data_url.R
#' @examples
#' tabulator(iris) |>
#' set_calculation("Sepal_Length", "avg")
#' @export
set_calculation <- function(
widget,
Expand Down
6 changes: 6 additions & 0 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
#' Titanic data set
#' @param col_select (character vector): Columns to select.
#' @returns data frame
#' @examples
#' \donttest{
#' titanic(c("PassengerId", "Age", "Pclass", "Fare")) |>
#' head()
#' }
#'
#' @export
titanic <- function(col_select = NULL) {
titanic_data_url <- "https://raw.githubusercontent.com/eodaGmbH/rtabulator/main/data-raw/titanic.csv"
Expand Down
14 changes: 2 additions & 12 deletions man/set_calculation.Rd

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

7 changes: 7 additions & 0 deletions man/titanic.Rd

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

0 comments on commit d8f2c57

Please sign in to comment.