xml2
1.6.0Parse XML
Overview
Bindings to 'libxml2' for working with XML data using a simple, consistent interface based on 'XPath' expressions. Also supports XML schema validation; for 'XSLT' transformations see the 'xslt' package.
xml_add_child()without.whereargument is now much faster. The default is nowNULLand still means "append after the last child".read_html()now defaults toencoding = "UTF-8"to prevent double-encoding of UTF-8 content on Windows with codepage 65001 (#490).
From NEWS.md in the release
Install
Health
- OK13 OK2026-09-25
- ERROR12 OK, 1 ERROR2026-09-09
- OK13 OK2026-09-01
- ERROR12 OK, 1 ERROR2026-08-25
- OK13 OK2026-08-09
Show 20 earlier changesHide 20 earlier changes
- ERROR12 OK, 1 ERROR2026-08-06
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-27
- ERROR12 OK, 1 ERROR2026-06-24
- OK13 OK2026-05-24
- ERROR12 OK, 1 ERROR2026-05-14
- OK13 OK2026-05-11
- ERROR12 OK, 1 ERROR2026-05-10
- OK13 OK2026-05-08
- ERROR11 OK, 2 ERROR2026-05-04
- OK13 OK2026-04-30
- ERROR12 OK, 1 ERROR2026-04-28
- OK14 OK2026-04-24
- ERROR13 OK, 1 ERROR2026-04-22
- OK14 OK2026-04-20
- ERROR13 OK, 1 ERROR2026-04-16
- OK14 OK2026-03-30
- ERROR13 OK, 1 ERROR2026-03-29
- OK14 OK2026-03-10
Documentation
- Help pages
- 31 (3 internal)includes a package overview page
- Examples that run
- 96%23 run in a plain check · 1 never run
- Exported functions with examples
- 83%
- Documented parameters
- 98%
- Return-value docs
- 55%
- Help pages citing references
- 0%
- Node Modification HTML
Downloads
Repository
- PRs merged (all time)
- 76%
- Median days to close, 50 most recently updated closed issues
- 64
- Median days to close, 50 most recently updated closed PRs
- 29
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
17 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/r-lib/xml2 on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-06-22 · The repository has a site deploy workflow
pkgdown site last built 2026-06-22
Show all practicesHide 2 practices
This repository shows signs of AI coding tools.
- GitHub Copilotfirst seen 2026-06-02Pull request: opened by its own accountCommits: 1 by its own account
- Claude Codefirst seen on or before 2026-06-22Named in .Rbuildignore: .claudeCommits: at least 1 crediting it in the message
- Claude CodePull requests: 1 from outside contributors, first on 2026-06-20, 1 from forks
Dependencies
Installing xml2 adds 2 packages (2 with compiled code, 1.4 MB of source tarballs). Heaviest: rlang 766 KB, cli 629 KB.
Show the 48 most downloaded dependentsHide the 48 most downloaded dependents
and 432 more dependents and 215 packages that suggest it on CRAN ↗
Code & Tests
People & History
Previously maintained by Hadley Wickham (1.3.3 to 1.3.6) and Jim Hester (1.1.0 to 1.3.2).
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.6.0Latest
- 1.5.22026-01-17 · diff ↗
- 1.5.12025-12-01 · diff ↗
- 1.5.02025-11-17 · diff ↗
- 1.4.12025-10-27 · diff ↗
- 1.4.02025-08-20 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 1.3.82025-03-14 · diff ↗
- 1.3.72025-02-28 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 1.3.6
- 1.3.52023-07-06 · diff ↗
- 1.3.42023-04-27 · diff ↗
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
Show 23 earlier eventsHide 23 earlier events
- 1.3.32021-11-30 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 1.3.22020-04-24 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 1.3.12020-04-09 · diff ↗
- 1.3.02020-04-01 · diff ↗
- 1.2.52020-03-11 · diff ↗
- 1.2.42020-03-10 · diff ↗
- 1.2.22019-08-09 · diff ↗
- 1.2.12019-07-29 · diff ↗
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- 1.2.0
- RR 3.4.0 released · 2017-04-21
- 1.1.12017-01-24 · diff ↗
- 1.1.02017-01-07 · diff ↗ ·
added 15 exports
as_xml_document, write_html, xml_add_parent, xml_cdata, xml_comment, xml_dtd, xml_missing, xml_new_root, xml_serialize, xml_set_attr, xml_set_attrs, xml_set_name, xml_set_text, xml_unserialize, xml_validate - 1.0.02016-12-05 · diff ↗ ·
added 19 exports
xml_attr<-, xml_attrs<-, xml_name<-, xml_text<-, xml_add_child, xml_add_sibling, xml_child, xml_double, xml_find_chr, xml_find_first, xml_find_lgl, xml_find_num, xml_integer, xml_new_document, xml_ns_strip, xml_remove, xml_replace, xml_root, xml_set_namespace - RR 3.3.0 released · 2016-05-03
- 0.1.22015-09-01 · diff ↗
- 0.1.1
- archivedRemoved from CRAN2015-05-29the non-cross-platform configure script (using bash extensions) was not corrected despite reminders
- 0.1.02015-04-20
- RR 3.2.0 released · 2015-04-16
Package metadata
- First published
- 2015-04-20
- Total releases
- 26 / 11 yrs
- License
- MIT + file LICENSE OSI · relicensed from GPL (>= 2) in 1.3.3
- Minimum R
- ≥ 3.6.0
- Download size
- 152 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("xml2")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-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.