Skip to content

Commit

Permalink
minor update to examples
Browse files Browse the repository at this point in the history
- add \dontrun{} to `arrange()` to avoid 5s limit
- make `print()` example slightly shorter
  • Loading branch information
mjwestgate committed Nov 16, 2023
1 parent 7f78e12 commit 1325ac3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions R/arrange.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#'
#' @param .data An object of class `data_request`
#' @param ... Either `count` or `index`
#' @examples
#' @examples \dontrun{
#'
#' # Arrange grouped counts by ascending year
#' galah_call() |>
Expand Down Expand Up @@ -47,7 +47,7 @@
#' arrange(desc(year)) |>
#' count() |>
#' collect()
#'
#' }
#' @importFrom dplyr bind_cols
#' @rdname arrange
#' @export
Expand Down
3 changes: 1 addition & 2 deletions R/print.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@
#' request_metadata() |>
#' filter(field == basisOfRecord) |>
#' unnest()
#'
#'
#' # Queries are converted into a `query_set` by `collapse()`
#' x <- galah_call() |> # same as calling `request_data()`
#' filter(year >= 2020) |>
#' group_by(year) |>
#' count() |>
#' collapse()
#' print(x)
Expand Down
3 changes: 2 additions & 1 deletion man/arrange.Rd

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

1 change: 0 additions & 1 deletion man/print_galah_objects.Rd

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

0 comments on commit 1325ac3

Please sign in to comment.