An R package for collecting, processing, and analysing data