R/plot_authors.R

Defines functions list_creators

Documented in list_creators

#' List software creators
#'
#' @param json
#'   (list) Software metadata in JSON format
#'
#' @return
#'   (list) Software creators
#'
#' @examples
#' \dontrun{
#' json <- get_json('http://imcr.ontosoft.org/repository/software')
#' list_creators(json)
#' }
#'
list_creators <- function(json){
  return(
    lapply(
      seq_along(json),
      function(x){
        json[[x]]$value[['http://ontosoft.org/software#hasCreator']]$label
      }
    )
  )
}
IMCR-Hackathon/toolkit documentation built on Oct. 30, 2019, 7:14 p.m.