Skip to content

Commit

Permalink
require interactive() for GitLab examples due to how long they take
Browse files Browse the repository at this point in the history
  • Loading branch information
ErdaradunGaztea committed Jan 26, 2025
1 parent 9189d8a commit 611dd9e
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 29 deletions.
14 changes: 8 additions & 6 deletions R/gitlab-latest.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@
#'
#' @return A character vector of version codes.
#'
#' @examplesIf !woodendesc:::is_cran_check()
#' # Latest version code is returned
#' wood_gitlab_latest("rock", "r-packages")
#' @examples
#' if (interactive()) {
#' # Latest version code is returned
#' wood_gitlab_latest("rock", "r-packages")
#'
#' # To get the latest *tagged* version code instead, use:
#' codes <- wood_gitlab_versions("rock", "r-packages")
#' versionsort::ver_latest(codes)
#' # To get the latest *tagged* version code instead, use:
#' wood_gitlab_versions("rock", "r-packages") |>
#' versionsort::ver_latest()
#' }
#'
#' @family gitlab
#' @family versions
Expand Down
12 changes: 7 additions & 5 deletions R/gitlab-packages.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@
#'
#' @return A character vector of available packages.
#'
#' @examplesIf !woodendesc:::is_cran_check()
#' wood_gitlab_packages("r-packages")
#' # The function takes care of differentiating
#' # between users and groups internally
#' wood_gitlab_packages("matherion")
#' @examples
#' if (interactive()) {
#' wood_gitlab_packages("r-packages")
#' # The function takes care of differentiating
#' # between users and groups internally
#' wood_gitlab_packages("matherion")
#' }
#'
#' @family gitlab
#' @family packages
Expand Down
6 changes: 4 additions & 2 deletions R/gitlab-versions.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
#'
#' @return A character vector of version codes.
#'
#' @examplesIf !woodendesc:::is_cran_check()
#' wood_gitlab_versions("rock", "r-packages")
#' @examples
#' if (interactive()) {
#' wood_gitlab_versions("rock", "r-packages")
#' }
#'
#' @family gitlab
#' @family versions
Expand Down
15 changes: 8 additions & 7 deletions man/wood_gitlab_latest.Rd

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

13 changes: 7 additions & 6 deletions man/wood_gitlab_packages.Rd

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

7 changes: 4 additions & 3 deletions man/wood_gitlab_versions.Rd

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

0 comments on commit 611dd9e

Please sign in to comment.