Connect R to Knack API

What is the exact code I can use to connect to my Knack database using the Knack API through R Studio?

I would like to be able to analyze my data in R without having to download it as a csv and read it in each time. I would also like to be able to update records using R.