Skip to content

Commit

Permalink
close issue r-lib#53
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinFay committed Oct 8, 2019
1 parent 3df09a4 commit b2af095
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions R/available.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,18 @@
#' available("survival")
#' }
#' @export
available <- function(name, browse = getOption("available.browse", TRUE), ...) {
available <- function(name, browse = getOption("available.browse", TRUE), ..., warn_offensive = TRUE) {
res <- list(valid_package_name(name),
available_on_cran(name, ...),
available_on_bioc(name, ...),
available_on_github(name))
terms <- name_to_search_terms(name)

urban_dictonary <- check_urban()
if (warn_offensive){
urban_dictonary <- check_urban()
} else {
urban_dictonary <- TRUE
}

res <- c(res,
unlist(recursive = FALSE,
Expand Down

0 comments on commit b2af095

Please sign in to comment.