R/zen4R_licenses.R

Defines functions get_licenses

Documented in get_licenses

#' @name get_licenses
#' @aliases get_licenses
#' @title get_licenses
#' @description \code{get_licenses} allows to list all licenses supported by Zenodo.
#'
#' @examples 
#' \dontrun{
#'  get_licenses(pretty = TRUE)
#' }
#'                 
#' @param pretty output delivered as \code{data.frame}
#' @return the licenses as \code{list} or \code{data.frame}
#' @export
#'
get_licenses <- function(pretty = TRUE){
  zenodo = ZenodoManager$new()
  return(zenodo$getLicenses(pretty = pretty))
}

Try the zen4R package in your browser

Any scripts or data that you put into this service are public.

zen4R documentation built on Sept. 20, 2023, 9:06 a.m.