Create and Maintain a Relational Database of Data from PubMed/MEDLINE
Overview
Provides a simple interface for extracting various elements from the publicly available PubMed XML files, incorporating PubMed's regular updates, and combining the data with the NIH Open Citation Collection. See Schoenbachler and Hughey (2021) doi:10.7717/peerj.11071.
- Deal with inconsistent file name for NIH Open Citation Collection.
From NEWS.md in the release
Install
Health
ERRORtestsr-release-windows-x86_64
Running 'testthat.R' [6s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(pmparser)
>
> test_check('pmparser')
Saving _problems/test_modify_pubmed_db_dup-53.R
Saving _problems/test_modify_pubmed_db_dup-69.R
Saving _problems/test_modify_pubmed_db_std-24.R
Saving _problems/test_modify_pubmed_db_std-44.R
[ FAIL 4 | WARN 4 | SKIP 4 | PASS 67 ]
══ Skipped tests (4) ═══════════════════════════════════════════════════════════
• On CRAN (4): 'test_get_citation.R:4:3', 'test_get_citation.R:13:3',
'test_get_pubmed_files.R:7:3', 'test_get_pubmed_files.R:20:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_modify_pubmed_db_dup.R:51:3'): modifyPubmedDb create is unique ──
Error in `open.connection(con, "rb")`: cannot open the connection to 'https://api.figshare.com/v2/collections/4586573/articles'
Backtrace:
▆
1. └─pmparser::modifyPubmedDb(...) at test
...[truncated]...
└─base::open.connection(con, "rb")
── Error ('test_modify_pubmed_db_std.R:42:3'): modifyPubmedDb update matches standard ──
Error in `open.connection(con, "rb")`: cannot open the connection to 'https://api.figshare.com/v2/collections/4586573/articles'
Backtrace:
▆
1. └─pmparser::modifyPubmedDb(...) at test_modify_pubmed_db_std.R:42:3
2. └─pmparser::getCitation(...)
3. └─pmparser:::getCitationInfo()
4. ├─data.table::data.table(jsonlite::fromJSON(iciteUrl))
5. └─jsonlite::fromJSON(iciteUrl)
6. └─jsonlite:::parse_and_simplify(...)
7. └─jsonlite:::parseJSON(txt, bigint_as_char)
8. └─jsonlite:::parse_con(txt, bigint_as_char)
9. ├─base::open(con, "rb")
10. └─base::open.connection(con, "rb")
[ FAIL 4 | WARN 4 | SKIP 4 | PASS 67 ]
Error:
! Test failures.
Warning message:
call dbDisconnect() when finished working with a connection
Execution halted- ERROR12 OK, 1 ERROR2026-10-20
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-07-20
- ERROR12 OK, 1 ERROR2026-07-19
Show 6 earlier changesHide 6 earlier changes
- OK13 OK2026-06-07
- ERROR12 OK, 1 ERROR2026-05-12
- OK13 OK2026-05-10
- WARNING12 OK, 1 WARNING2026-05-09
- OK14 OK2026-03-12
- ERROR13 OK, 1 ERROR2026-03-10
Documentation
- Help pages
- 4
- Examples that run
- 50%2 run in a plain check · 2 never run
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
- Data Dictionary HTML
Downloads
Repository
- PRs merged (all time)
- 86%
- Median days to close, 50 most recently updated closed issues
- 1
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
8 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/hugheylab/pmparser on 2026-10-18.
GitHub Pages site last deployed 2020-08-24
pkgdown site last built 2026-06-01, before release 1.0.26 (2026-06-02)
Show all practicesHide 2 practices
Dependencies
Installing pmparser adds 16 packages (9 with compiled code, 12 MB of source tarballs). Heaviest: data.table 5.7 MB, jsonlite 1.0 MB, rlang 766 KB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 1.0.26Latest
- RR 4.6.0 released · 2026-04-24
- 1.0.252026-03-02 · diff ↗
- 1.0.242026-02-05 · diff ↗
- 1.0.232025-12-15 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 1.0.212025-01-14 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 1.0.202024-01-13 · diff ↗
- 1.0.192023-12-18 · diff ↗
- 1.0.182023-12-01 · diff ↗
- 1.0.172023-05-24 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 1.0.162023-02-12 · diff ↗
- 1.0.152022-12-13 · diff ↗
- unarchivedReturned to CRAN2022-11-24
Show 7 earlier eventsHide 7 earlier events
Package metadata
- First published
- 2022-02-17
- Total releases
- 15 / 4 yrs
- License
- GPL-2 OSI
- Minimum R
- ≥ 3.6
- Download size
- 650 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("pmparser")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.