itraxR package offers a range of convenience functions for working with Itrax data. The book mostly uses the functions in this package, but the source code is available and fully commented, so is easy to as a basis for other work. The package and code are available from github.com/tombishop1/itraxR. The package is available via CRAN, so can be installed using
install.packages("itraxR"), but the CRAN repository is updated less frequently. This guide always uses the latest version available on the Github repo.
##  '1.12.1'