Nothing
ext_topics <- function(match_strings) {
pieces <- strsplit(match_strings, "::", fixed = TRUE)
pkg <- purrr::map_chr(pieces, 1)
fun <- sub("\\(\\)$", "", purrr::map_chr(pieces, 2))
ext_rd <- purrr::map2(pkg, fun, get_rd_from_help)
ext_title <- purrr::map_chr(ext_rd, extract_title)
ext_href <- purrr::map2_chr(fun, pkg, downlit::href_topic)
ext_funs <- purrr::map(ext_rd, topic_funs)
tibble::tibble(
name = match_strings,
file_in = NA_character_,
file_out = ext_href,
alias = list(character()), # used to find icons,
funs = ext_funs, # used list alternative names
title = sprintf("%s (from %s)", ext_title, pkg),
rd = list(character()),
source = NA_character_,
keywords = list(character()), # used for has_keyword()
concepts = list(character()), # used for has_concept()
internal = FALSE
)
}
# Adatpted from roxygen2::get_rd_from_help
get_rd_from_help <- function(package, alias) {
check_installed(package, "as it's used in the reference index.")
help <- utils::help((alias), (package))
if (length(help) == 0) {
abort(sprintf("Could not find documentation for %s::%s", package, alias))
return()
}
out <- get(".getHelpFile", envir = asNamespace("utils"))(help)
set_classes(out)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.