Ive been trying to install Tidyr and dplyr however it comes up
Error in install.packages : Updating loaded packages and keeps telling me to restart it as the image below what do I do
I tried uninstalling packages and get this at the beginning and end I have tools installed its still not working
install.packages(c("dplyr", "tidyr"))
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
RTools: Toolchains for building R and R packages from source on Windows
Installing packages into ‘C:/Users/wendy/OneDrive/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
also installing the dependencies ‘fansi’, ‘utf8’, ‘pkgconfig’, ‘withr’, ‘stringi’, ‘cli’, ‘generics’, ‘glue’, ‘lifecycle’, ‘magrittr’, ‘pillar’, ‘R6’, ‘rlang’, ‘tibble’, ‘tidyselect’, ‘vctrs’, ‘purrr’, ‘stringr’, ‘cpp11’
package ‘fansi’ successfully unpacked and MD5 sums checked
Error in install.packages : ERROR: failed to lock directory ‘C:\Users\wendy\OneDrive\Documents\R\win-library\4.0’ for modifying
Try removing ‘C:\Users\wendy\OneDrive\Documents\R\win-library\4.0/00LOCK’