TOC R package