Connecting to canvas lms from R

I often use information from canvas (in my case this is the University of Bergen version when I prepare assignments and tasks for my students. I use Shiny and R as tools to manage my course, so I need data in formats that can readily be processed by R. It can be a pain to export information, like student names and emails etc. from within the web-interface in canvas, so I have been looking for better ways to gain access.