R/fs_ids.R

Defines functions fs_ids

Documented in fs_ids

#' Get a list of article id numbers from a search return 
#' 
#' @author Carl Boettiger \email{cboettig@@gmail.com}
#' @param object the output of a search 
#' @return a list of article id numbers 
#' @references \url{http://api.figshare.com}
#' @import httr
#' @export
#' @examples \dontrun{
#' figshare_category() 
#' }
fs_ids <- function(object){
#  a <- parsed_content(object)
#  sapply(a$items, `[[`, "article_id")
  sapply(object, `[[`,  "article_id")
}

Try the rfigshare package in your browser

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

rfigshare documentation built on May 10, 2022, 1:05 a.m.