R/getArchiveYear.R

#' @title Get available years in PRIDE archive
#' @export
getArchiveYears <- function(){
  prideFTP <- 'ftp://ftp.pride.ebi.ac.uk/pride/data/archive/'
  content <- getMeta(uri = prideFTP)
  years <- sapply(content, getLast)
  years <- onlyNumeric(years)
  return(years)
}
rintukutum/rpridemetadb documentation built on May 6, 2019, 2:34 p.m.