Skip to content

Commit

Permalink
avoid revdep warning by exporting instead of alias
Browse files Browse the repository at this point in the history
  • Loading branch information
cboettig committed Aug 31, 2024
1 parent b579339 commit f503885
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 4 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export(sci_to_common)
export(spawning)
export(species)
export(species_by_ecosystem)
export(species_names)
export(speed)
export(stocks)
export(swimming)
Expand Down
12 changes: 10 additions & 2 deletions R/load_taxa.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,20 @@ load_taxa_ <- function(server = c("fishbase", "sealifebase"),
#' @param version the version of the database you want. Will default to the
#' latest available; see [available_releases()].
#' @param ... for compatibility with previous versions
#' @aliases species_names
#' @return the taxa list
#' @export
load_taxa <- memoise::memoise(load_taxa_)


#' species_names
#'
#' Show scientific classification of taxa
#' Note: species_names() is an alias for load_taxa().
#' @param server Either "fishbase" (the default) or "sealifebase"
#' @param version the version of the database you want. Will default to the
#' latest available; see [available_releases()].
#' @param ... for compatibility with previous versions
#' @return the taxa list
#' @export
species_names <- memoise::memoise(load_taxa_)


Expand Down
2 changes: 1 addition & 1 deletion cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Dear CRAN Maintainers,
This release provides the changes detailed in NEWS.md.
I have checked reverse dependencies.
I have also checked on M1 Mac and Solaris platforms using `rhub`.

Also should now resolve an introduced warning in a dependent package.


Sincerely,
Expand Down
1 change: 0 additions & 1 deletion man/load_taxa.Rd

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

23 changes: 23 additions & 0 deletions man/species_names.Rd

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

0 comments on commit f503885

Please sign in to comment.