R interface to xmlstats API