Having Issues with my R

Hi. Please I have been having very serious challenges in installing "tidyverse" in R studio. Kindly be of assistance in resolving this issue. I just got introduced to R a couple of days ago, however, it's been a challenging one. Below is the sequence of "error" codes i got in response to my attempts. Thanks in anticipation.

install.packages("tidyverse")
Installing package into ‘C:/Users/USER/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
also installing the dependencies ‘colorspace’, ‘sys’, ‘ps’, ‘base64enc’, ‘farver’, ‘labeling’, ‘munsell’, ‘RColorBrewer’, ‘viridisLite’, ‘askpass’, ‘rematch’, ‘prettyunits’, ‘processx’, ‘evaluate’, ‘highr’, ‘markdown’, ‘yaml’, ‘xfun’, ‘htmltools’, ‘tinytex’, ‘backports’, ‘ellipsis’, ‘generics’, ‘glue’, ‘assertthat’, ‘blob’, ‘DBI’, ‘lifecycle’, ‘R6’, ‘tidyselect’, ‘vctrs’, ‘withr’, ‘digest’, ‘gtable’, ‘isoband’, ‘scales’, ‘Rcpp’, ‘pkgconfig’, ‘curl’, ‘mime’, ‘openssl’, ‘fansi’, ‘utf8’, ‘clipr’, ‘BH’, ‘cpp11’, ‘cellranger’, ‘progress’, ‘callr’, ‘fs’, ‘knitr’, ‘rmarkdown’, ‘selectr’, ‘stringi’, ‘broom’, ‘cli’, ‘crayon’, ‘dbplyr’, ‘dplyr’, ‘forcats’, ‘ggplot2’, ‘haven’, ‘hms’, ‘httr’, ‘jsonlite’, ‘lubridate’, ‘magrittr’, ‘modelr’, ‘pillar’, ‘purrr’, ‘readr’, ‘readxl’, ‘reprex’, ‘rlang’, ‘rstudioapi’, ‘rvest’, ‘stringr’, ‘tibble’, ‘tidyr’, ‘xml2’


  There are binary versions available but the source versions are later:
       binary source needs_compilation
broom   0.7.5  0.7.6             FALSE
cli     2.3.1  2.4.0             FALSE
dbplyr  2.1.0  2.1.1             FALSE

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/colorspace_2.0-0.zip'
Content type 'application/zip' length 2647262 bytes (2.5 MB)
downloaded 2.5 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/sys_3.4.zip'
Content type 'application/zip' length 59901 bytes (58 KB)
downloaded 58 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/ps_1.6.0.zip'
Content type 'application/zip' length 775963 bytes (757 KB)
downloaded 757 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/base64enc_0.1-3.zip'
Content type 'application/zip' length 43016 bytes (42 KB)
downloaded 42 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/farver_2.1.0.zip'
Content type 'application/zip' length 1751552 bytes (1.7 MB)
downloaded 1.7 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/labeling_0.4.2.zip'`Preformatted text`

Hi, and welcome!

So far these do not look 'error' messages to me. As me, you're on a Win-system. Make sure you install the binaries, not source-compilation. tidyverse is a collection of packages, so it takes a while. What is the final message you receive? It should be something like '.. downloaded packages are in...' Can you check?

JW

Thanks the response. However, the last message i receive was:

Warning in install.packages :
  downloaded length 765952 != reported length 3062202
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/scales_1.1.1.zip'

Which one? Not the scales package, as it looks. And finally, which one does leave you with 'zero exit status'?

Thanks for the warm response. Indeed appreciate. Had to uninstall and re-install r via https://cran.mirror.ac.za/. I also made attempt to installing the package “tidyverse” again, which eventually returned a concluding message (as in below). Please, how do I move on from this point? Thanks in anticipation.

The downloaded binary packages are in
	C:\Users\USER\AppData\Local\Temp\RtmpovSIeW\downloaded_packages

Hi! Good to hear you're making progress. It looks fine to me, i. e. similar to my system. The message simply states that R downloaded and installed the packages and these are available in a sys-directory where R will look. Now you can now invoke them by typing e. g. library (ggplot) , or whatever lib you need and use the functions. Within RStudio, the lower-right view has a tab "packages" and here you can see the ones that are availability on your system.

Have a go!

Thank you so much. Sincerely appreciate. Kind regards.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.