R_Home=C:\Program Files\R\R-4.2.1
R_LIBS_USER=c:\temp\r_libs
Error in library(ggplot2) : there is no package called 'ggplot2'
But according to the log, it was installed.
There are binary versions available but the source versions are later:
binary source needs_compilation
cli 3.3.0 3.4.0 TRUE
lifecycle 1.0.1 1.0.2 FALSE
tidyr 1.2.0 1.2.1 TRUE
Binaries will be installed
package 'colorspace' successfully unpacked and MD5 sums checked
package 'farver' successfully unpacked and MD5 sums checked
package 'labeling' successfully unpacked and MD5 sums checked
package 'munsell' successfully unpacked and MD5 sums checked
package 'RColorBrewer' successfully unpacked and MD5 sums checked
package 'viridisLite' successfully unpacked and MD5 sums checked
package 'fansi' successfully unpacked and MD5 sums checked
package 'pkgconfig' successfully unpacked and MD5 sums checked
package 'cli' successfully unpacked and MD5 sums checked
package 'utf8' successfully unpacked and MD5 sums checked
package 'digest' successfully unpacked and MD5 sums checked
package 'glue' successfully unpacked and MD5 sums checked
package 'gtable' successfully unpacked and MD5 sums checked
package 'isoband' successfully unpacked and MD5 sums checked
package 'rlang' successfully unpacked and MD5 sums checked
package 'scales' successfully unpacked and MD5 sums checked
package 'tibble' successfully unpacked and MD5 sums checked
package 'withr' successfully unpacked and MD5 sums checked
package 'generics' successfully unpacked and MD5 sums checked
package 'magrittr' successfully unpacked and MD5 sums checked
package 'R6' successfully unpacked and MD5 sums checked
package 'tidyselect' successfully unpacked and MD5 sums checked
package 'vctrs' successfully unpacked and MD5 sums checked
package 'pillar' successfully unpacked and MD5 sums checked
package 'gtools' successfully unpacked and MD5 sums checked
package 'ellipsis' successfully unpacked and MD5 sums checked
package 'purrr' successfully unpacked and MD5 sums checked
package 'cpp11' successfully unpacked and MD5 sums checked
package 'R.methodsS3' successfully unpacked and MD5 sums checked
package 'R.oo' successfully unpacked and MD5 sums checked
package 'R.utils' successfully unpacked and MD5 sums checked
package 'base64enc' successfully unpacked and MD5 sums checked
package 'ggplot2' successfully unpacked and MD5 sums checked
package 'dplyr' successfully unpacked and MD5 sums checked
package 'tidyr' successfully unpacked and MD5 sums checked
package 'gridExtra' successfully unpacked and MD5 sums checked
package 'Rcpp' successfully unpacked and MD5 sums checked
package 'R.devices' successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\kabua\AppData\Local\Temp\RtmpyE8Shu\downloaded_packages
also installing the dependencies 'colorspace', 'farver', 'labeling', 'munsell', 'RColorBrewer', 'viridisLite', 'fansi', 'pkgconfig', 'cli', 'utf8', 'digest', 'glue', 'gtable', 'isoband', 'rlang', 'scales', 'tibble', 'withr', 'generics', 'lifecycle', 'magrittr', 'R6', 'tidyselect', 'vctrs', 'pillar', 'gtools', 'ellipsis', 'purrr', 'cpp11', 'R.methodsS3', 'R.oo', 'R.utils', 'base64enc'
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/colorspace_2.0-3.zip'
Content type 'application/zip' length 2630788 bytes (2.5 MB)
==================================================
downloaded 2.5 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/farver_2.1.1.zip'
Content type 'application/zip' length 1512649 bytes (1.4 MB)
==================================================
downloaded 1.4 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/labeling_0.4.2.zip'
Content type 'application/zip' length 62511 bytes (61 KB)
==================================================
downloaded 61 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/munsell_0.5.0.zip'
Content type 'application/zip' length 245327 bytes (239 KB)
==================================================
downloaded 239 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/RColorBrewer_1.1-3.zip'
Content type 'application/zip' length 55837 bytes (54 KB)
==================================================
downloaded 54 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/viridisLite_0.4.1.zip'
Content type 'application/zip' length 1300030 bytes (1.2 MB)
==================================================
downloaded 1.2 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/fansi_1.0.3.zip'
Content type 'application/zip' length 313046 bytes (305 KB)
==================================================
downloaded 305 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/pkgconfig_2.0.3.zip'
Content type 'application/zip' length 22436 bytes (21 KB)
==================================================
downloaded 21 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/cli_3.3.0.zip'
Content type 'application/zip' length 1222515 bytes (1.2 MB)
==================================================
downloaded 1.2 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/utf8_1.2.2.zip'
Content type 'application/zip' length 150114 bytes (146 KB)
==================================================
downloaded 146 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/digest_0.6.29.zip'
Content type 'application/zip' length 194511 bytes (189 KB)
==================================================
downloaded 189 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/glue_1.6.2.zip'
Content type 'application/zip' length 161980 bytes (158 KB)
==================================================
downloaded 158 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/gtable_0.3.1.zip'
Content type 'application/zip' length 164579 bytes (160 KB)
==================================================
downloaded 160 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/isoband_0.2.5.zip'
Content type 'application/zip' length 2179277 bytes (2.1 MB)
==================================================
downloaded 2.1 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/rlang_1.0.5.zip'
Content type 'application/zip' length 1572523 bytes (1.5 MB)
==================================================
downloaded 1.5 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/scales_1.2.1.zip'
Content type 'application/zip' length 615415 bytes (600 KB)
==================================================
downloaded 600 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/tibble_3.1.8.zip'
Content type 'application/zip' length 733211 bytes (716 KB)
==================================================
downloaded 716 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/withr_2.5.0.zip'
Content type 'application/zip' length 231983 bytes (226 KB)
==================================================
downloaded 226 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/generics_0.1.3.zip'
Content type 'application/zip' length 79826 bytes (77 KB)
==================================================
downloaded 77 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/magrittr_2.0.3.zip'
Content type 'application/zip' length 227246 bytes (221 KB)
==================================================
downloaded 221 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/R6_2.5.1.zip'
Content type 'application/zip' length 84289 bytes (82 KB)
==================================================
downloaded 82 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/tidyselect_1.1.2.zip'
Content type 'application/zip' length 206323 bytes (201 KB)
==================================================
downloaded 201 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/vctrs_0.4.1.zip'
Content type 'application/zip' length 1298022 bytes (1.2 MB)
==================================================
downloaded 1.2 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/pillar_1.8.1.zip'
Content type 'application/zip' length 690146 bytes (673 KB)
==================================================
downloaded 673 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/gtools_3.9.3.zip'
Content type 'application/zip' length 359968 bytes (351 KB)
==================================================
downloaded 351 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/ellipsis_0.3.2.zip'
Content type 'application/zip' length 40439 bytes (39 KB)
==================================================
downloaded 39 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/purrr_0.3.4.zip'
Content type 'application/zip' length 409296 bytes (399 KB)
==================================================
downloaded 399 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/cpp11_0.4.2.zip'
Content type 'application/zip' length 327356 bytes (319 KB)
==================================================
downloaded 319 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/R.methodsS3_1.8.2.zip'
Content type 'application/zip' length 82671 bytes (80 KB)
==================================================
downloaded 80 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/R.oo_1.25.0.zip'
Content type 'application/zip' length 961439 bytes (938 KB)
==================================================
downloaded 938 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/R.utils_2.12.0.zip'
Content type 'application/zip' length 1412640 bytes (1.3 MB)
==================================================
downloaded 1.3 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/base64enc_0.1-3.zip'
Content type 'application/zip' length 32477 bytes (31 KB)
==================================================
downloaded 31 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/ggplot2_3.3.6.zip'
Content type 'application/zip' length 4122428 bytes (3.9 MB)
==================================================
downloaded 3.9 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/dplyr_1.0.10.zip'
Content type 'application/zip' length 1305479 bytes (1.2 MB)
==================================================
downloaded 1.2 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/tidyr_1.2.0.zip'
Content type 'application/zip' length 967946 bytes (945 KB)
==================================================
downloaded 945 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/gridExtra_2.3.zip'
Content type 'application/zip' length 1109556 bytes (1.1 MB)
==================================================
downloaded 1.1 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/Rcpp_1.0.9.zip'
Content type 'application/zip' length 2842406 bytes (2.7 MB)
==================================================
downloaded 2.7 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/R.devices_2.17.1.zip'
Content type 'application/zip' length 379254 bytes (370 KB)
==================================================
downloaded 370 KB
installing the source packages 'lifecycle', 'gdata'
trying URL 'https://cran.rstudio.com/src/contrib/lifecycle_1.0.2.tar.gz'
Content type 'application/x-gzip' length 102178 bytes (99 KB)
==================================================
downloaded 99 KB
trying URL 'https://cran.rstudio.com/src/contrib/gdata_2.18.0.1.tar.gz'
Content type 'application/x-gzip' length 1054317 bytes (1.0 MB)
==================================================
downloaded 1.0 MB
* installing *source* package 'lifecycle' ...
** package 'lifecycle' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (lifecycle)
* installing *source* package 'gdata' ...
** package 'gdata' successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (gdata)
The downloaded source packages are in
'C:\Users\kabua\AppData\Local\Temp\RtmpyE8Shu\downloaded_packages'
Error in library(ggplot2) : there is no package called 'ggplot2'
Execution halted
While trying to get the Getting-Started project
Md5VsSha256working. I have just installed R for Windows (R-4.2.1) for the first time and then set the following environment variables:I keep getting this error:
But according to the log, it was installed.
Here's the log file