Skip to content

selectr

Translate CSS Selectors to XPath Expressions

v0.5-1 · Dec 17, 2025 · BSD_3_clause + file LICENCE

Description

Translates a CSS selector into an equivalent XPath expression. This allows us to use CSS selectors when working with the XML package as it can only evaluate XPath expressions. Also provided are convenience functions useful for using CSS selectors on XML nodes. This package is a port of the Python package 'cssselect' (<https://cssselect.readthedocs.io/>).

Downloads

474.8K

Last 30 days

131st

1.6M

Last 90 days

6.1M

Last year

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

CRAN Check Status

14 OK
Show all 14 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-macos-arm64 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 Mar 10, 2026

Reverse Dependencies (6)

Dependency Network

Dependencies Reverse dependencies stringr R6 cliapp rvest wikilake RSelenium ggpedigree unpivotr selectr

Version History

new 0.5-1 Mar 10, 2026
updated 0.5-1 ← 0.5-0 diff Dec 16, 2025
updated 0.5-0 ← 0.4-2 diff Nov 20, 2025
updated 0.4-2 ← 0.4-1 diff Nov 19, 2019
updated 0.4-1 ← 0.4-0 diff Apr 5, 2018
updated 0.4-0 ← 0.3-2 diff Mar 27, 2018
updated 0.3-2 ← 0.3-1 diff Mar 4, 2018
updated 0.3-1 ← 0.3-0 diff Dec 18, 2016
updated 0.3-0 ← 0.2-3 diff Aug 29, 2016
updated 0.2-3 ← 0.2-2 diff Dec 23, 2014
updated 0.2-2 ← 0.2-1 diff Feb 20, 2014
updated 0.2-1 ← 0.2-0 diff Feb 19, 2013
updated 0.2-0 ← 0.1-1 diff Nov 22, 2012
updated 0.1-1 ← 0.1-0 diff Nov 8, 2012
new 0.1-0 Nov 7, 2012