uspto_download.Rd
Downloads from the U.S. Pre-Grant Publications (US-PGPUB), Patents (USPAT), and/or Optical Character Recognition (USOCR) databases. See the web app to search for and view documents from the same source.
uspto_download(guid, outDir = tempdir(), type = "US-PGPUB",
cores = detectCores() - 2, compress = TRUE, load = TRUE,
verbose = FALSE)
Vector of document numbers (e.g., US-20220230294-A1
). Can also be a data.frame
of results,
as returned from uspto_search
; must have a guid
column containing document numbers,
and a type
column with the source database abbreviation (e.g., US-PGPUB
).
Path to a directory in which to save each individual document. If not specified, these are saved to a temporary directory.
A vector the same length as guid
(repeated as necessary), indicating the source database of
the guid
. Defaults to US-PGPUB
for every ID.
Number of CPU cores to split requests across.
Logical; if FALSE
, will not xz-compress each file.
Logical; if FALSE
, will not return content, or load existing files.
Logical; if FALSE
, does not print status messages.
A data.frame
with a row for each document.
You can more efficiently download granted patents using download_patents
.
if (FALSE) {
# start with a search
results <- uspto_search("G01W.CPCL.", "US-PGPUB")
# then download those results
applications <- uspto_download(results)
}