An R interface to the treeBASE API (now on CRAN)