Nothing
#' Get locally available package versions
#'
#' @description This function searches for installed package versions inside
#' specified library paths.
#'
#' @template package
#' @template paths-local
#'
#' @return A character vector of version codes.
#'
#' @examples
#' wood_local_versions("httr")
#'
#' @family local
#' @family versions
#' @export
wood_local_versions <- function(package, paths = .libPaths()[1]) {
assert_param_package(package)
assert_param_paths(paths)
paths <- match_local_paths_args(paths)
# Filter paths that contain package DESCRIPTION
descriptions <- file.path(paths, package, "DESCRIPTION")
descriptions <- descriptions[file.exists(descriptions)]
# Extract package version from each DESCRIPTION found
ret <- vapply(descriptions, function(desc) {
read_dcf_one_value(read_char(desc), "Version")
}, character(1), USE.NAMES = FALSE)
# Return only unique values
unique(ret)
}
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.