#' Lists all available datasets
#'
#' `list_datasets()` shows all of the datasets hosted on the phs open data platform.
#'
#' @return A tibble.
#' @export
#'
#' @examples
#' head(list_datasets())
list_datasets <- function() {
# fetch the data
content <- phs_GET("package_list", "")
data_sets <- tibble::tibble("name" = unlist(content$result))
return(data_sets)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.