Right, that makes sense. Should I open R or RStudio when I'm installing packages? I'm trying to install devtools using install.packages("devtools"). This is the message I get:
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
(then it tries a whole bunch of URLs)
Error in install.packages : cannot open file 'C:/Users/Erika/Documents/R/win-library/3.6/fileffc7d7e2d86/colorspace/CITATION': Permission denied