I did not manage to download devtools as it said I did not have enough space. I then deleted the packages MASS and anitrust as I thought I could free up some space. I have not been able load/download any packages successfully since then. The errors are as follows:
>Error: package ‘rlang’ does not have a namespace
> library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’:
package ‘rlang’ does not have a namespace
> install.packages("rlang")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
>https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘U:/My Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/rlang_0.4.4.zip'
Content type 'application/zip' length 1122196 bytes (1.1 MB)
downloaded 1.1 MB
>Error in install.packages : cannot open file 'U:/My Documents/R/win-library/3.6/file33d876f8f4d/rlang/DESCRIPTION': Not enough space
> library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’:
package ‘rlang’ does not have a namespace
>https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘U:/My Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘Rtools’ is not available (for R version 3.6.1)
I am also using university computers but I have never had these issues before.