Skip to content

patentr

Access USPTO Bulk Data in Tidy Rectangular Format

v0.1.4 · Sep 12, 2021 · MIT + file LICENSE

Description

Converts TXT and XML data curated by the United States Patent and Trademark Office (USPTO). Allows conversion of bulk data after downloading directly from the USPTO bulk data website, eliminating need for users to wrangle multiple data formats to get large patent databases in tidy, rectangular format. Data details can be found on the USPTO website <https://bulkdata.uspto.gov/>. Currently, all 3 formats: 1. TXT data (1976-2001); 2. XML format 1 data (2002-2004); and 3. XML format 2 data (2005-current) can be converted to rectangular, CSV format. Relevant literature that uses data from USPTO includes Wada (2020) <doi:10.1007/s11192-020-03674-4> and Plaza & Albert (2008) <doi:10.1007/s11192-007-1763-3>.

Downloads

CRAN

330

Last 30 days

13788th

778

Last 90 days

2.9K

Last year

Trend: +57.1% (30d vs prior 30d)

r2u CRAN

24

Last 30 days

115

Last 90 days

400

Last year

Trend: -40% (30d vs prior 30d)

autoCRAN

0

Last 7 days

8

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/patentr.Rcheck/00install.out' for details.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Line coverage

Expression

Tests / Examples

Functions

37 2 exported

Complexity

2.6 avg / 10 max

Call network

37 nodes / 40 edges

Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

Compare versions

Code

Structure

Lines of code

10,333

Files

30

Compiled share

4%

Has compiled src

Yes

Language breakdown

R 899 (8.7%)C/C++/src 412 (4%)Tests 8,790 (85.1%)Docs 98 (0.9%)Vignettes 134 (1.3%)

API

Exported functions

2

Internal functions

20

Recent export changes

v0.1.2+1 wku_to_pno
v0.1.0+1 get_bulk_patent_data

Testing & CI

Has tests

Yes

Test-to-code ratio

9.78

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

0

Dep constraint coverage

87.5%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

2.10

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

3

First release

2021-02-08

Latest release

2021-09-12

Avg cadence

108 days

Cold removal rate

Dep drift

3

LOC over versions

v0.1.0: 649 LOCv0.1.2: 10,333 LOCv0.1.4: 10,333 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies Rcpp lubridate magrittr (>= 2.0) dplyr rlang xml2 progress patentr

Version History

4 tracked
new 0.1.4 Mar 10, 2026
updated 0.1.4 ← 0.1.2 diff Sep 11, 2021
updated 0.1.2 ← 0.1.0 diff Jul 16, 2021
new 0.1.0 Feb 7, 2021