Difficulty installing dslabs and tinyverse packages in RSTudio

I had downloaded RStudio(Version 1.3.1093) and R(4.0.3) on my Mac OS 10.15.7
I am unable to installt the dslabs and tinyverse packages. On installing, I get the following,

also installing the dependencies ‘backports’, ‘prettyunits’, ‘rprojroot’, ‘pkgbuild’, ‘rstudioapi’, ‘diffobj’, ‘rematch2’, ‘brio’, ‘callr’, ‘desc’, ‘evaluate’, ‘jsonlite’, ‘pkgload’, ‘praise’, ‘processx’, ‘ps’, ‘waldo’, ‘colorspace’, ‘assertthat’, ‘utf8’, ‘testthat’, ‘farver’, ‘labeling’, ‘lifecycle’, ‘munsell’, ‘R6’, ‘RColorBrewer’, ‘viridisLite’, ‘cli’, ‘crayon’, ‘ellipsis’, ‘fansi’, ‘magrittr’, ‘pillar’, ‘pkgconfig’, ‘vctrs’, ‘digest’, ‘glue’, ‘gtable’, ‘isoband’, ‘rlang’, ‘scales’, ‘tibble’, ‘withr’, ‘ggplot2’

** There is a binary version available but the source version is later:**
** binary source needs_compilation**
testthat 2.3.2 3.0.0 TRUE

Do you want to install from sources the package which needs compilation? (Yes/no/cancel)

I am new to coding. How do I proceed?

The easiest solution would be to answer "no" to this question, you would get a precompiled binary version that is a little older but much easier to install.
If you need to install the latest version from source, then you need to install Xcode in your system (not in R) and the recommended development tools for macOS systems.
https://cran.r-project.org/bin/macosx/tools/

1 Like

I answered "no" but I got a lot of code written in red as below. I have just installed Xcode. Is there something else I'm missing?

install.packages(c("dslabs", "tinyverse"))
Warning in install.packages :
** package ‘tinyverse’ is not available for this version of R**

A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
also installing the dependencies ‘backports’, ‘prettyunits’, ‘rprojroot’, ‘pkgbuild’, ‘rstudioapi’, ‘diffobj’, ‘rematch2’, ‘brio’, ‘callr’, ‘desc’, ‘evaluate’, ‘jsonlite’, ‘pkgload’, ‘praise’, ‘processx’, ‘ps’, ‘waldo’, ‘colorspace’, ‘assertthat’, ‘utf8’, ‘testthat’, ‘farver’, ‘labeling’, ‘lifecycle’, ‘munsell’, ‘R6’, ‘RColorBrewer’, ‘viridisLite’, ‘cli’, ‘crayon’, ‘ellipsis’, ‘fansi’, ‘magrittr’, ‘pillar’, ‘pkgconfig’, ‘vctrs’, ‘digest’, ‘glue’, ‘gtable’, ‘isoband’, ‘rlang’, ‘scales’, ‘tibble’, ‘withr’, ‘ggplot2’

** There is a binary version available but the source version is later:**
** binary source needs_compilation**
testthat 2.3.2 3.0.0 TRUE

Do you want to install from sources the package which needs compilation? (Yes/no/cancel) no
trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/backports_1.1.10.tgz'
Content type 'application/x-gzip' length 78356 bytes (76 KB)
==================================================
downloaded 76 KB

Is that the complete message you get? I suspect you are omitting some important parts.

Note: Please post the message as formatted code, here is how to do it

1 Like

this is a typo,
tidyverse vs tinyverse

1 Like
> install.packages(c("dslabs", "tidyverse"))
also installing the dependencies ‘rprojroot’, ‘pkgbuild’, ‘diffobj’, ‘rematch2’, ‘brio’, ‘desc’, ‘pkgload’, ‘praise’, ‘ps’, ‘waldo’, ‘colorspace’, ‘sys’, ‘highr’, ‘markdown’, ‘base64enc’, ‘testthat’, ‘farver’, ‘labeling’, ‘munsell’, ‘RColorBrewer’, ‘viridisLite’, ‘askpass’, ‘rematch’, ‘prettyunits’, ‘processx’, ‘knitr’, ‘yaml’, ‘htmltools’, ‘evaluate’, ‘tinytex’, ‘xfun’, ‘digest’, ‘glue’, ‘gtable’, ‘isoband’, ‘scales’, ‘withr’, ‘backports’, ‘ellipsis’, ‘generics’, ‘assertthat’, ‘fansi’, ‘DBI’, ‘lifecycle’, ‘R6’, ‘tidyselect’, ‘blob’, ‘vctrs’, ‘Rcpp’, ‘pkgconfig’, ‘curl’, ‘mime’, ‘openssl’, ‘utf8’, ‘clipr’, ‘BH’, ‘cpp11’, ‘cellranger’, ‘progress’, ‘callr’, ‘fs’, ‘rmarkdown’, ‘whisker’, ‘selectr’, ‘stringi’, ‘ggplot2’, ‘broom’, ‘cli’, ‘crayon’, ‘dbplyr’, ‘dplyr’, ‘forcats’, ‘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
testthat   2.3.2  3.0.0              TRUE
tinytex     0.26   0.27             FALSE
generics   0.0.2  0.1.0             FALSE
rmarkdown    2.3    2.5             FALSE

Do you want to install from sources the package which needs compilation? (Yes/no/cancel) no
trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/rprojroot_1.3-2.tgz'
Content type 'application/x-gzip' length 79148 bytes (77 KB)
==================================================
downloaded 77 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/pkgbuild_1.1.0.tgz'
Content type 'application/x-gzip' length 139362 bytes (136 KB)
==================================================
downloaded 136 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/diffobj_0.3.2.tgz'
Content type 'application/x-gzip' length 1006064 bytes (982 KB)
==================================================
downloaded 982 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/rematch2_2.1.2.tgz'
Content type 'application/x-gzip' length 44807 bytes (43 KB)
==================================================
downloaded 43 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/brio_1.1.0.tgz'
Content type 'application/x-gzip' length 36738 bytes (35 KB)
==================================================
downloaded 35 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/desc_1.2.0.tgz'
Content type 'application/x-gzip' length 285234 bytes (278 KB)
==================================================
downloaded 278 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/pkgload_1.1.0.tgz'
Content type 'application/x-gzip' length 150877 bytes (147 KB)
==================================================
downloaded 147 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/praise_1.0.0.tgz'
Content type 'application/x-gzip' length 16137 bytes (15 KB)
==================================================
downloaded 15 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/ps_1.4.0.tgz'
Content type 'application/x-gzip' length 251683 bytes (245 KB)
==================================================
downloaded 245 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/waldo_0.2.2.tgz'
Content type 'application/x-gzip' length 69436 bytes (67 KB)
==================================================
downloaded 67 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/colorspace_1.4-1.tgz'
Content type 'application/x-gzip' length 2569870 bytes (2.5 MB)
==================================================
downloaded 2.5 MB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/sys_3.4.tgz'
Content type 'application/x-gzip' length 47291 bytes (46 KB)
==================================================
downloaded 46 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/highr_0.8.tgz'
Content type 'application/x-gzip' length 40856 bytes (39 KB)
==================================================
downloaded 39 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/markdown_1.1.tgz'
Content type 'application/x-gzip' length 198809 bytes (194 KB)
==================================================
downloaded 194 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/base64enc_0.1-3.tgz'
Content type 'application/x-gzip' length 31695 bytes (30 KB)
==================================================
downloaded 30 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/testthat_2.3.2.tgz'
Content type 'application/x-gzip' length 2371825 bytes (2.3 MB)
==================================================
downloaded 2.3 MB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/farver_2.0.3.tgz'
Content type 'application/x-gzip' length 1829409 bytes (1.7 MB)
==================================================
downloaded 1.7 MB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/labeling_0.4.2.tgz'
Content type 'application/x-gzip' length 60296 bytes (58 KB)
==================================================
downloaded 58 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/munsell_0.5.0.tgz'
Content type 'application/x-gzip' length 241504 bytes (235 KB)
==================================================
downloaded 235 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/RColorBrewer_1.1-2.tgz'
Content type 'application/x-gzip' length 52944 bytes (51 KB)
==================================================
downloaded 51 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/viridisLite_0.3.0.tgz'
Content type 'application/x-gzip' length 57005 bytes (55 KB)
==================================================
downloaded 55 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/askpass_1.1.tgz'
Content type 'application/x-gzip' length 21511 bytes (21 KB)
==================================================
downloaded 21 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/rematch_1.0.1.tgz'
Content type 'application/x-gzip' length 12214 bytes (11 KB)
==================================================
downloaded 11 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/prettyunits_1.1.1.tgz'
Content type 'application/x-gzip' length 34704 bytes (33 KB)
==================================================
downloaded 33 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/processx_3.4.4.tgz'
Content type 'application/x-gzip' length 278496 bytes (271 KB)
==================================================
downloaded 271 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/knitr_1.30.tgz'
Content type 'application/x-gzip' length 1393488 bytes (1.3 MB)
==================================================
downloaded 1.3 MB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/yaml_2.2.1.tgz'
Content type 'application/x-gzip' length 203104 bytes (198 KB)
==================================================
downloaded 198 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/htmltools_0.5.0.tgz'
Content type 'application/x-gzip' length 219376 bytes (214 KB)
==================================================
downloaded 214 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/evaluate_0.14.tgz'
Content type 'application/x-gzip' length 74355 bytes (72 KB)
==================================================
downloaded 72 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/xfun_0.19.tgz'
Content type 'application/x-gzip' length 289708 bytes (282 KB)
==================================================
downloaded 282 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/digest_0.6.27.tgz'
Content type 'application/x-gzip' length 300368 bytes (293 KB)
==================================================
downloaded 293 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/glue_1.4.2.tgz'
Content type 'application/x-gzip' length 139018 bytes (135 KB)
==================================================
downloaded 135 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/gtable_0.3.0.tgz'
Content type 'application/x-gzip' length 431500 bytes (421 KB)
==================================================
downloaded 421 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/isoband_0.2.2.tgz'
Content type 'application/x-gzip' length 4016637 bytes (3.8 MB)
==================================================
downloaded 3.8 MB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/scales_1.1.1.tgz'
Content type 'application/x-gzip' length 552885 bytes (539 KB)
==================================================
downloaded 539 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/withr_2.3.0.tgz'
Content type 'application/x-gzip' length 205487 bytes (200 KB)
==================================================
downloaded 200 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/backports_1.1.10.tgz'
Content type 'application/x-gzip' length 78356 bytes (76 KB)
==================================================
downloaded 76 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/ellipsis_0.3.1.tgz'
Content type 'application/x-gzip' length 33497 bytes (32 KB)
==================================================
downloaded 32 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/assertthat_0.2.1.tgz'
Content type 'application/x-gzip' length 52572 bytes (51 KB)
==================================================
downloaded 51 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/fansi_0.4.1.tgz'
Content type 'application/x-gzip' length 210700 bytes (205 KB)
==================================================
downloaded 205 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/DBI_1.1.0.tgz'
Content type 'application/x-gzip' length 644019 bytes (628 KB)
==================================================
downloaded 628 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/lifecycle_0.2.0.tgz'
Content type 'application/x-gzip' length 91596 bytes (89 KB)
==================================================
downloaded 89 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/R6_2.5.0.tgz'
Content type 'application/x-gzip' length 82447 bytes (80 KB)
==================================================
downloaded 80 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/tidyselect_1.1.0.tgz'
Content type 'application/x-gzip' length 197492 bytes (192 KB)
==================================================
downloaded 192 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/blob_1.2.1.tgz'
Content type 'application/x-gzip' length 45899 bytes (44 KB)
==================================================
downloaded 44 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/vctrs_0.3.4.tgz'
Content type 'application/x-gzip' length 1307888 bytes (1.2 MB)
==================================================
downloaded 1.2 MB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/Rcpp_1.0.5.tgz'
Content type 'application/x-gzip' length 3215939 bytes (3.1 MB)
==================================================
downloaded 3.1 MB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/pkgconfig_2.0.3.tgz'
Content type 'application/x-gzip' length 17738 bytes (17 KB)
==================================================
downloaded 17 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/curl_4.3.tgz'
Content type 'application/x-gzip' length 741519 bytes (724 KB)
==================================================
downloaded 724 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/mime_0.9.tgz'
Content type 'application/x-gzip' length 35303 bytes (34 KB)
==================================================
downloaded 34 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/openssl_1.4.3.tgz'
Content type 'application/x-gzip' length 2863764 bytes (2.7 MB)
==================================================
downloaded 2.7 MB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/utf8_1.1.4.tgz'
Content type 'application/x-gzip' length 195526 bytes (190 KB)
==================================================
downloaded 190 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/clipr_0.7.1.tgz'
Content type 'application/x-gzip' length 48725 bytes (47 KB)
==================================================
downloaded 47 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/BH_1.72.0-3.tgz'
Content type 'application/x-gzip' length 11254452 bytes (10.7 MB)
==================================================
downloaded 10.7 MB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/cpp11_0.2.3.tgz'
Content type 'application/x-gzip' length 153859 bytes (150 KB)
==================================================
downloaded 150 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/cellranger_1.1.0.tgz'
Content type 'application/x-gzip' length 101697 bytes (99 KB)
==================================================
downloaded 99 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/progress_1.2.2.tgz'
Content type 'application/x-gzip' length 83458 bytes (81 KB)
==================================================
downloaded 81 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/callr_3.5.1.tgz'
Content type 'application/x-gzip' length 385435 bytes (376 KB)
==================================================
downloaded 376 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/fs_1.5.0.tgz'
Content type 'application/x-gzip' length 545211 bytes (532 KB)
==================================================
downloaded 532 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/whisker_0.4.tgz'
Content type 'application/x-gzip' length 65611 bytes (64 KB)
==================================================
downloaded 64 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/selectr_0.4-2.tgz'
Content type 'application/x-gzip' length 485312 bytes (473 KB)
==================================================
downloaded 473 KB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/stringi_1.5.3.tgz'
Content type 'application/x-gzip' length 13641892 bytes (13.0 MB)
==================================================
downloaded 13.0 MB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/ggplot2_3.3.2.tgz'
Content type 'application/x-gzip' length 4064530 bytes (3.9 MB)
==================================================
downloaded 3.9 MB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.0/broom_0.7.2.tgz'

Oh, I'm sorry. I've pasted the formatted code below.
It keeps going on like this.i had to interrupt it as it kept going on.
Is this right?

It shouldnt be interupted, it should keep going, as that is the process to install tidyverse...
you wont have access to tidyverse until it completes succesfully

1 Like

You are showing normal installation messages so far, tidyverse is a compilation of many packages so it is going to take a while to install them all, just keep waiting till it finishes or you get an error message.

1 Like

Thank you so much!
It's working now and I can continue learning :slight_smile:

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.