Then run the following 2 lines of code:
install.packages('tidyverse')
library(tidyverse)
I successfully managed to install the package (dplyr) however when I try to call it in the R environment using library(dplyr) I get the following error:
Error: package or namespace load failed for ‘dplyr’:
.onLoad failed in loadNamespace() for 'rlang', details:
call: NULL
error: The rlang package is not properly installed.
The DLL version does not correspond to the package version.
Please update rlang to the latest version.
Updating packages on Windows requires precautions:
I would completely close down RStudio, then open it back up and run install.packages("rlang"). Then completely close it down again, open it back up and try to run library(rlang). Then try library(dplyr) if that works.
I'm not entirely sure how you ended up with something that looks out of sync, but it may just require a restart of R