As @tbrugz pointed out, the problem seems to occur in the selectr package.
This happens, however, only when the package is installed with apt-get install r-cran-selectr. Installing the package using sudo R, then install.packages works fine.
pkg <- installed.packages() subset(as.data.frame(pkg), Package=="selectr", c("Package", "LibPath")) Package LibPath selectr selectr /home/matifou/R/x86_64-pc-linux-gnu-library/3.3 selectr.1 selectr /usr/lib/R/site-library library(selectr, lib.loc="/home/matifou/R/x86_64-pc-linux-gnu-library/3.3") css_to_xpath(".testclass") [1] "descendant-or-self::*[@class and contains(concat(' ', normalize- space(@class), ' '), ' testclass ')]" detach("package:selectr", unload=TRUE) library(selectr, lib.loc="/usr/lib/R/site-library") css_to_xpath(".testclass") Error in do.call(method, list(parsed_selector)) :
could not find function "xpath_class"
source share