I'm new to R ( started 1 week ago).
I had the same issue in installing tidyverse but I loaded library, ggplot2 and then installation of tidyverse worked
library(ggplot2)
install.packages("tidyverse")
Error in install.packages : Updating loaded packages
Restarting R session...
install.packages("tidyverse")
also installing the dependency ‘rlang’
There is a binary version available but the source version is later:
binary source needs_compilation
tidyverse 1.2.0 1.2.1 FALSE
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/rlang_0.1.4.zip'
Content type 'application/zip' length 463830 bytes (452 KB)
downloaded 452 KB
package ‘rlang’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\ruser\AppData\Local\Temp\RtmpU5eq9W\downloaded_packages
installing the source package ‘tidyverse’
trying URL 'https://cran.rstudio.com/src/contrib/tidyverse_1.2.1.tar.gz'
Content type 'application/x-gzip' length 61647 bytes (60 KB)
downloaded 60 KB
- installing source package 'tidyverse' ...
** package 'tidyverse' successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded
*** arch - i386
*** arch - x64
- DONE (tidyverse)
The downloaded source packages are in
‘C:\Users\ruser\AppData\Local\Temp\RtmpU5eq9W\downloaded_packages’
library(tidyverse)
-- Attaching packages ------------------------------------------------ tidyverse 1.2.1 --
v ggplot2 2.2.1 v purrr 0.2.4
v tibble 1.3.4 v dplyr 0.7.4
v tidyr 0.7.2 v stringr 1.2.0
v readr 1.1.1 v forcats 0.2.0
-- Conflicts --------------------------------------------------- tidyverse_conflicts() --
x dplyr::filter() masks stats::filter()
x dplyr::lag() masks stats::lag()
Thanks