R/ia-retrieve.R
ia_retrieve.Rd
Given an object identifier (obtained via ia_scrape()
), retrieve the
directory listing for the item. The link
column will have URLs that
can be retrieved with download.file()
.
ia_retrieve(identifier)
identifier | an identifier string obtained via |
---|
data frame of files and links with some metadata
nasa <- ia_scrape("collection:nasa", count=100L) item <- ia_retrieve(nasa$identifier[1]) td <- tempdir() download.file(item$link[1], file.path(td, item$file[1]))