Skip to content

selectr

0.6-0

Translate CSS Selectors to XPath Expressions

6packages depend
5.8Mdownloads / year
98.3%test coverage
13/13checks pass

Overview

About
Maintained by Simon PotterFirst published 2012-11-0815 releasesCRAN page ↗GitHub ↗

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/).

Install

Health

CRAN checks
13OK
Slowest check: 1.9 min · r-release-macos-x86_64
Code health
Yes
Tests · ratio 1.74
98.3%
Coverage · measured lines
100%
Documentation · exports
1
Dependencies · direct
Check history
  • OK2026-08-04
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 141 wordsVignettesNopkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
100%

Downloads

5.8M
CRAN downloads in the past year
Rank #172 · ~15.8K/day · ~481.1K/mo
Daily download trend is not available in this view yet.
317.1K30 days
1.1M90 days
5.8M1 year
Compare downloads with other packages →
Also on138.9K r2u84 autocran986.1K conda_forge4.4K c2d4u

Repository

Repository
53Stars
5Forks
0Open issues
0Open PRs
0Releases
198Commits
5Contributors
198 commits · Last activity 2026-07-13 · 0% stars, 30d

Stars over time

2023-04-24 · 522026-07-07 · 53

Repository practices

Upstream repositoryBeta

6 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/sjp/selectr on 2026-08-16.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (2)
MakefileDev Container
Automation and maintenance (1)
Dependabot
Lint, format, editor (1)
lintr
Show all practices
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
4 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.3
Imports (1)
LinkingTo (0)
none
Suggests (3)
Enhances (0)
none
Reverse dependencies
6direct
334indirect

Code & Tests

People & History

People (3)
Maintainer (1)
Author, Translator, Maintainer
Authors (3)
Author, Translator, Maintainer
Translators (1)
Author, Translator, Maintainer
Package Timeline

15 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 0.6-0Latest
    2026-06-23 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 0.5-1
    2025-12-17 · diff ↗
  • 0.5-0
    2025-11-21 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • 0.4-2
    2019-11-20 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • 0.4-1
    2018-04-06 · diff ↗
  • 0.4-0
    2018-03-28 · diff ↗
  • 0.3-2
    2018-03-05 · diff ↗
Show 14 earlier events
  • R
    R 3.4.0 released · 2017-04-21
  • 0.3-1
    2016-12-19 · diff ↗
  • 0.3-0
    2016-08-30 · diff ↗
  • R
    R 3.3.0 released · 2016-05-03
  • R
    R 3.2.0 released · 2015-04-16
  • 0.2-3
    2014-12-24 · diff ↗
  • R
    R 3.1.0 released · 2014-04-10
  • 0.2-2
    2014-02-21 · diff ↗
  • R
    R 3.0.0 released · 2013-04-03
  • 0.2-1
    2013-02-20 · diff ↗
  • 0.2-0
    2012-11-23 · diff ↗
  • 0.1-1
    2012-11-09 · diff ↗
  • 0.1-0
    2012-11-08
  • R
    R 2.15.0 released · 2012-03-30

Package metadata

First published
2012-11-08
Total releases
15 / 14 yrs
License
BSD_3_clause + file LICENCE OSI
Minimum R
≥ 3.3
Download size
83 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("selectr")
Potter, S., Bicking, I., & Sapin, S. (2026). selectr: Translate CSS Selectors to XPath Expressions (Version 0.6-0) [Computer software]. https://doi.org/10.32614/CRAN.package.selectr

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for selectr version 0.6-0 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy