Translates a CSS selector into an equivalent XPath expression. This allows us to use CSS selectors when working with the 'XML' and 'xml2' packages, which can only evaluate XPath expressions. Also provided are convenience functions for querying XML and HTML documents with CSS selectors. This package was originally a port of the Python package 'cssselect' (<https://cssselect.readthedocs.io/>).
| Version: | 0.7-0 |
| Depends: | R (≥ 3.6) |
| Imports: | R6 |
| Suggests: | testthat (≥ 3.0.0), XML, xml2 |
| Published: | 2026-09-17 |
| DOI: | 10.32614/CRAN.package.selectr |
| Author: | Simon Potter [aut, trl, cre], Simon Sapin [aut], Ian Bicking [aut] |
| Maintainer: | Simon Potter <simon at sjp.co.nz> |
| BugReports: | https://github.com/sjp/selectr/issues |
| License: | BSD_3_clause + file LICENCE |
| URL: | https://sjp.co.nz/projects/selectr/ |
| NeedsCompilation: | no |
| Language: | en-GB |
| Citation: | selectr citation info |
| Materials: | README, NEWS |
| In views: | WebTechnologies |
| CRAN checks: | selectr results |
| Reference manual: | selectr.html , selectr.pdf |
| Package source: | selectr_0.7-0.tar.gz |
| Windows binaries: | r-devel: selectr_0.6-0.zip, r-release: selectr_0.6-0.zip, r-oldrel: selectr_0.6-0.zip |
| macOS binaries: | r-release (arm64): selectr_0.6-0.tgz, r-oldrel (arm64): selectr_0.6-0.tgz, r-release (x86_64): selectr_0.6-0.tgz, r-oldrel (x86_64): selectr_0.6-0.tgz |
| Old sources: | selectr archive |
| Reverse imports: | cliapp, rvest, wikilake |
| Reverse suggests: | ggpedigree, RSelenium, unpivotr |
Please use the canonical form https://CRAN.R-project.org/package=selectr to link to this page.