Skip to content

Commit

Permalink
feat!: rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle committed Oct 22, 2024
1 parent 089b247 commit 0a5798a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Generated by roxygen2: do not edit by hand

export(add)
export(all_universes)
export(everyone)
export(global_search)
export(r_version)
export(remove)
Expand Down
4 changes: 2 additions & 2 deletions R/universe.R
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ universe_search <- function(universe, query, limit = 100L) {
#' @export
#'
#' @examplesIf interactive()
#' head(all_universes())
all_universes <- function(type = c("all", "universes", "maintainers")) {
#' head(everyone())
everyone <- function(type = c("all", "universes", "maintainers")) {
type <- type %||% "all"
type <- rlang::arg_match(type)

Expand Down
2 changes: 1 addition & 1 deletion _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ reference:
- global_search
- title: Endpoints for single universes
contents:
- all_universes
- everyone
- universe_ls
- universe_all_packages
- universe_one_package
Expand Down
8 changes: 4 additions & 4 deletions man/all_universes.Rd → man/everyone.Rd

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

8 changes: 4 additions & 4 deletions tests/testthat/test-universe.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ test_that("universe_search() works", {

test_that("all_universes() works", {
skip_if_offline()
expect_error(all_universes("bla"), "must be")
expect_type(all_universes(), "character")
expect_type(all_universes(type = "universes"), "character")
expect_type(all_universes(type = "maintainers"), "character")
expect_error(everyone("bla"), "must be")
expect_type(everyone(), "character")
expect_type(everyone(type = "universes"), "character")
expect_type(everyone(type = "maintainers"), "character")
})

0 comments on commit 0a5798a

Please sign in to comment.