I am running Windows 10 too, and this is what I've done:
install.packages("tidyverse")
library(tidyverse)
There is a possibility that it is because it's trying to go into a OneDrive folder, check your working directory:
setwd()
I also got the Rtools warning but I did not install that, and my packages are working.
Perhaps that is the issue, that Rtools may have a conflict instead of actually helping. You can also try to run:
tidyverse::tidyverse_packages()
and this should bring up all of the packages available within the library. See the code and output below:
install.packages("tidyverse")
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 ‘C:/Users/Robin/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
also installing the dependencies ‘highr’, ‘xfun’, ‘knitr’, ‘tinytex’, ‘DBI’, ‘blob’, ‘fs’, ‘rmarkdown’, ‘whisker’, ‘dbplyr’, ‘modelr’, ‘reprex’
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/highr_0.8.zip'
Content type 'application/zip' length 48706 bytes (47 KB)
downloaded 47 KB
package ‘highr’ successfully unpacked and MD5 sums checked
package ‘xfun’ successfully unpacked and MD5 sums checked
package ‘knitr’ successfully unpacked and MD5 sums checked
package ‘tinytex’ successfully unpacked and MD5 sums checked
package ‘DBI’ successfully unpacked and MD5 sums checked
package ‘blob’ successfully unpacked and MD5 sums checked
package ‘fs’ successfully unpacked and MD5 sums checked
package ‘rmarkdown’ successfully unpacked and MD5 sums checked
package ‘whisker’ successfully unpacked and MD5 sums checked
package ‘dbplyr’ successfully unpacked and MD5 sums checked
package ‘modelr’ successfully unpacked and MD5 sums checked
package ‘reprex’ successfully unpacked and MD5 sums checked
package ‘tidyverse’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Robin\AppData\Local\Temp\Rtmp2fq3qd\downloaded_packages
library(tidyverse)
-- Attaching packages --------------------------------------- tidyverse 1.3.0 --
v readr 1.3.1 v stringr 1.4.0
v purrr 0.3.4 v forcats 0.5.0
-- Conflicts ------------------------------------------ tidyverse_conflicts() --
x lubridate::as.difftime() masks base::as.difftime()
x lubridate::date() masks base::date()
x jrvFinance::duration() masks lubridate::duration()
x magrittr::extract() masks tidyr::extract()
x dplyr::filter() masks plotly::filter(), stats::filter()
x dplyr::first() masks xts::first()
x lubridate::intersect() masks base::intersect()
x dplyr::lag() masks stats::lag()
x dplyr::last() masks xts::last()
x purrr::set_names() masks magrittr::set_names()
x lubridate::setdiff() masks base::setdiff()
x lubridate::union() masks base::union()
tidyverse::tidyverse_packages()
[1] "broom" "cli" "crayon" "dbplyr" "dplyr" "forcats" "ggplot2" "haven" "hms" "httr" "jsonlite"
[12] "lubridate" "magrittr" "modelr" "pillar" "purrr" "readr" "readxl" "reprex" "rlang" "rstudioapi" "rvest"
[23] "stringr" "tibble" "tidyr" "xml2" "tidyverse"