selectr

Translate CSS Selectors to XPath Expressions

Translates a CSS3 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/>).

Total

2,092,735

Last month

175,803

Last week

42,208

Average per day

5,860

Daily downloads

Total downloads

Description file content

Package
selectr
Type
Package
Title
Translate CSS Selectors to XPath Expressions
Version
0.4-1
Date
2018-04-05
License
BSD_3_clause + file LICENCE
Depends
R (>= 3.0)
Imports
methods, stringr, R6
Suggests
testthat, XML, xml2
URL
BugReports
https://github.com/sjp/selectr/issues
Description
Translates a CSS3 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' ().
NeedsCompilation
no
Packaged
2018-04-06 00:16:15 UTC; simon
Author
Simon Potter [aut, trl, cre], Simon Sapin [aut], Ian Bicking [aut]
Maintainer
Simon Potter
Repository
CRAN
Date/Publication
2018-04-06 04:14:27 UTC

install.packages('selectr')

0.4-1

8 months ago

https://sjp.co.nz/projects/selectr

Simon Potter

BSD_3_clause + file LICENCE

Depends on

R (>= 3.0)

Imports

methods, stringr, R6

Suggests

testthat, XML, xml2

Discussions