Skip to content
New course: Interactive Dashboards with Shiny. Get 50% off with coupon SHINYLAUNCH.
R for the Rest of Us Logo

This lesson is locked

Get access to all lessons in this course.

Transcript

Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.

Your Turn

  1. Create and save an R script file

  2. Enter a mathematical expression on your R script file and run it

Have any questions? Put them below and we will help you out!

You need to be signed-in to comment on this post. Login.

Benoit Gauthier

Benoit Gauthier

January 12, 2022

Hi. Out of curiosity, I tried to install.packages("tidyverse"). After several minutes of output, it ended on an error with dependencies (googledrive, googlesheets4, haven, httr, rvest, xml2) and the removal of the package. What to do then?

Benoit Gauthier

Benoit Gauthier

January 12, 2022

skimr installed fine.

David Keyes

David Keyes

January 12, 2022

Could you paste the error message please?

Benoit Gauthier

Benoit Gauthier

January 12, 2022

R version 4.1.2 (2021-11-01) -- "Bird Hippie" Copyright (C) 2021 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit)

R est un logiciel libre livré sans AUCUNE GARANTIE. Vous pouvez le redistribuer sous certaines conditions. Tapez 'license()' ou 'licence()' pour plus de détails.

R est un projet collaboratif avec de nombreux contributeurs. Tapez 'contributors()' pour plus d'information et 'citation()' pour la façon de le citer dans les publications.

Tapez 'demo()' pour des démonstrations, 'help()' pour l'aide en ligne ou 'help.start()' pour obtenir l'aide au format HTML. Tapez 'q()' pour quitter R.

> install.packages("tidyverse") Installation du package dans ‘/home/benoit/R/x86_64-pc-linux-gnu-library/4.1’ (car ‘lib’ n'est pas spécifié) installation des dépendances ‘gargle’, ‘curl’, ‘ids’, ‘openssl’, ‘googledrive’, ‘googlesheets4’, ‘haven’, ‘httr’, ‘rvest’, ‘xml2’

essai de l'URL 'https://cloud.r-project.org/src/contrib/gargle_1.2.0.tar.gz' Content type 'application/x-gzip' length 313418 bytes (306 KB)

downloaded 306 KB

essai de l'URL 'https://cloud.r-project.org/src/contrib/curl_4.3.2.tar.gz' Content type 'application/x-gzip' length 793345 bytes (774 KB)

downloaded 774 KB

essai de l'URL 'https://cloud.r-project.org/src/contrib/ids_1.0.1.tar.gz' Content type 'application/x-gzip' length 91213 bytes (89 KB)

downloaded 89 KB

essai de l'URL 'https://cloud.r-project.org/src/contrib/openssl_1.4.6.tar.gz' Content type 'application/x-gzip' length 1198268 bytes (1.1 MB)

downloaded 1.1 MB

essai de l'URL 'https://cloud.r-project.org/src/contrib/googledrive_2.0.0.tar.gz' Content type 'application/x-gzip' length 1593656 bytes (1.5 MB)

downloaded 1.5 MB

essai de l'URL 'https://cloud.r-project.org/src/contrib/googlesheets4_1.0.0.tar.gz' Content type 'application/x-gzip' length 222038 bytes (216 KB)

downloaded 216 KB

essai de l'URL 'https://cloud.r-project.org/src/contrib/haven_2.4.3.tar.gz' Content type 'application/x-gzip' length 296805 bytes (289 KB)

downloaded 289 KB

essai de l'URL 'https://cloud.r-project.org/src/contrib/httr_1.4.2.tar.gz' Content type 'application/x-gzip' length 159950 bytes (156 KB)

downloaded 156 KB

essai de l'URL 'https://cloud.r-project.org/src/contrib/rvest_1.0.2.tar.gz' Content type 'application/x-gzip' length 94357 bytes (92 KB)

downloaded 92 KB

essai de l'URL 'https://cloud.r-project.org/src/contrib/xml2_1.3.3.tar.gz' Content type 'application/x-gzip' length 283965 bytes (277 KB)

downloaded 277 KB

essai de l'URL 'https://cloud.r-project.org/src/contrib/tidyverse_1.3.1.tar.gz' Content type 'application/x-gzip' length 702779 bytes (686 KB)

downloaded 686 KB

  • installing source package ‘curl’ ... ** package ‘curl’ successfully unpacked and MD5 sums checked ** using staged installation Package libcurl was not found in the pkg-config search path. Perhaps you should add the directory containing libcurl.pc' to the PKG_CONFIG_PATH environment variable No package 'libcurl' found Package libcurl was not found in the pkg-config search path. Perhaps you should add the directory containing libcurl.pc' to the PKG_CONFIG_PATH environment variable No package 'libcurl' found Using PKG_CFLAGS= Using PKG_LIBS=-lcurl ------------------------- ANTICONF ERROR --------------------------- Configuration failed because libcurl was not found. Try installing:
  • deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)
  • rpm: libcurl-devel (Fedora, CentOS, RHEL)
  • csw: libcurl_dev (Solaris) If libcurl is already installed, check that 'pkg-config' is in your PATH and PKG_CONFIG_PATH contains a libcurl.pc file. If pkg-config is unavailable you can set INCLUDE_DIR and LIB_DIR manually via: R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'

ERROR: configuration failed for package ‘curl’

  • removing ‘/home/benoit/R/x86_64-pc-linux-gnu-library/4.1/curl’ Warning in install.packages : installation of package ‘curl’ had non-zero exit status
  • installing source package ‘openssl’ ... ** package ‘openssl’ successfully unpacked and MD5 sums checked ** using staged installation Using PKG_CFLAGS= --------------------------- [ANTICONF] -------------------------------- Configuration failed because openssl was not found. Try installing:
  • deb: libssl-dev (Debian, Ubuntu, etc)
  • rpm: openssl-devel (Fedora, CentOS, RHEL)
  • csw: libssl_dev (Solaris)
  • brew: openssl@1.1 (Mac OSX) If openssl is already installed, check that 'pkg-config' is in your PATH and PKG_CONFIG_PATH contains a openssl.pc file. If pkg-config is unavailable you can set INCLUDE_DIR and LIB_DIR manually via: R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...' -------------------------- [ERROR MESSAGE] --------------------------- tools/version.c:1:10: fatal error: openssl/opensslv.h: Aucun fichier ou dossier de ce type #include ^~~~~~~~~~~~~~~~~~~~ compilation terminated.

ERROR: configuration failed for package ‘openssl’

  • removing ‘/home/benoit/R/x86_64-pc-linux-gnu-library/4.1/openssl’ Warning in install.packages : installation of package ‘openssl’ had non-zero exit status
  • installing source package ‘haven’ ... ** package ‘haven’ successfully unpacked and MD5 sums checked ** using staged installation ** libs gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/lib/R/site-library/cpp11/include' -Ireadstat -DHAVE_ZLIB -fpic -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c tagged_na.c -o tagged_na.o gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/lib/R/site-library/cpp11/include' -Ireadstat -DHAVE_ZLIB -fpic -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c readstat/readstat_parser.c -o readstat/readstat_parser.o gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/lib/R/site-library/cpp11/include' -Ireadstat -DHAVE_ZLIB -fpic -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c readstat/readstat_metadata.c -o readstat/readstat_metadata.o gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/lib/R/site-library/cpp11/include' -Ireadstat -DHAVE_ZLIB -fpic -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c readstat/readstat_io_unistd.c -o readstat/readstat_io_unistd.o gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/lib/R/site-library/cpp11/include' -Ireadstat -DHAVE_ZLIB -fpic -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c readstat/readstat_bits.c -o readstat/readstat_bits.o gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/lib/R/site-library/cpp11/include' -Ireadstat -DHAVE_ZLIB -fpic -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c readstat/readstat_variable.c -o readstat/readstat_variable.o gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/lib/R/site-library/cpp11/include' -Ireadstat -DHAVE_ZLIB -fpic -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c readstat/readstat_writer.c -o readstat/readstat_writer.o gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/lib/R/site-library/cpp11/include' -Ireadstat -DHAVE_ZLIB -fpic -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c readstat/readstat_error.c -o readstat/readstat_error.o gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/lib/R/site-library/cpp11/include' -Ireadstat -DHAVE_ZLIB -fpic -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c readstat/readstat_convert.c -o readstat/readstat_convert.o gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/lib/R/site-library/cpp11/include' -Ireadstat -DHAVE_ZLIB -fpic -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c readstat/CKHashTable.c -o readstat/CKHashTable.o gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/lib/R/site-library/cpp11/include' -Ireadstat -DHAVE_ZLIB -fpic -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c readstat/readstat_malloc.c -o readstat/readstat_malloc.o gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/lib/R/site-library/cpp11/include' -Ireadstat -DHAVE_ZLIB -fpic -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c readstat/readstat_value.c -o readstat/readstat_value.o gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/lib/R/site-library/cpp11/include' -Ireadstat -DHAVE_ZLIB -fpic -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c readstat/sas/readstat_xport_write.c -o readstat/sas/readstat_xport_write.o gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/lib/R/site-library/cpp11/include' -Ireadstat -DHAVE_ZLIB -fpic -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c readstat/sas/readstat_sas7bcat_read.c -o readstat/sas/readstat_sas7bcat_read.o gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/lib/R/site-library/cpp11/include' -Ireadstat -DHAVE_ZLIB -fpic -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c readstat/sas/readstat_sas7bdat_write.c -o readstat/sas/readstat_sas7bdat_write.o gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/lib/R/site-library/cpp11/include' -Ireadstat -DHAVE_ZLIB -fpic -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c readstat/sas/readstat_sas7bcat_write.c -o readstat/sas/readstat_sas7bcat_write.o gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/lib/R/site-library/cpp11/include' -Ireadstat -DHAVE_ZLIB -fpic -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c readstat/sas/ieee.c -o readstat/sas/ieee.o gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/lib/R/site-library/cpp11/include' -Ireadstat -DHAVE_ZLIB -fpic -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c readstat/sas/readstat_xport_read.c -o readstat/sas/readstat_xport_read.o gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/lib/R/site-library/cpp11/include' -Ireadstat -DHAVE_ZLIB -fpic -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c readstat/sas/readstat_sas.c -o readstat/sas/readstat_sas.o gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/lib/R/site-library/cpp11/include' -Ireadstat -DHAVE_ZLIB -fpic -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c readstat/sas/readstat_sas_rle.c -o readstat/sas/readstat_sas_rle.o gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/lib/R/site-library/cpp11/include' -Ireadstat -DHAVE_ZLIB -fpic -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c readstat/sas/readstat_xport.c -o readstat/sas/readstat_xport.o gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/lib/R/site-library/cpp11/include' -Ireadstat -DHAVE_ZLIB -fpic -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c readstat/sas/readstat_sas7bdat_read.c -o readstat/sas/readstat_sas7bdat_read.o gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/lib/R/site-library/cpp11/include' -Ireadstat -DHAVE_ZLIB -fpic -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c readstat/spss/readstat_sav_compress.c -o readstat/spss/readstat_sav_compress.o gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/lib/R/site-library/cpp11/include' -Ireadstat -DHAVE_ZLIB -fpic -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c readstat/spss/readstat_spss_parse.c -o readstat/spss/readstat_spss_parse.o gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/lib/R/site-library/cpp11/include' -Ireadstat -DHAVE_ZLIB -fpic -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c readstat/spss/readstat_sav_read.c -o readstat/spss/readstat_sav_read.o gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/lib/R/site-library/cpp11/include' -Ireadstat -DHAVE_ZLIB -fpic -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c readstat/spss/readstat_por_read.c -o readstat/spss/readstat_por_read.o gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/lib/R/site-library/cpp11/include' -Ireadstat -DHAVE_ZLIB -fpic -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c readstat/spss/readstat_sav.c -o readstat/spss/readstat_sav.o gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/lib/R/site-library/cpp11/include' -Ireadstat -DHAVE_ZLIB -fpic -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c readstat/spss/readstat_zsav_compress.c -o readstat/spss/readstat_zsav_compress.o readstat/spss/readstat_zsav_compress.c:2:10: fatal error: zlib.h: Aucun fichier ou dossier de ce type #include ^~~~~~~~ compilation terminated. /usr/lib/R/etc/Makeconf:168: recipe for target 'readstat/spss/readstat_zsav_compress.o' failed make: *** [readstat/spss/readstat_zsav_compress.o] Error 1 ERROR: compilation failed for package ‘haven’
  • removing ‘/home/benoit/R/x86_64-pc-linux-gnu-library/4.1/haven’ Warning in install.packages : installation of package ‘haven’ had non-zero exit status
  • installing source package ‘xml2’ ... ** package ‘xml2’ successfully unpacked and MD5 sums checked ** using staged installation Package libxml-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing libxml-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'libxml-2.0' found Package libxml-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing libxml-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'libxml-2.0' found Using PKG_CFLAGS= Using PKG_LIBS=-lxml2 ------------------------- ANTICONF ERROR --------------------------- Configuration failed because libxml-2.0 was not found. Try installing:
  • deb: libxml2-dev (Debian, Ubuntu, etc)
  • rpm: libxml2-devel (Fedora, CentOS, RHEL)
  • csw: libxml2_dev (Solaris) If libxml-2.0 is already installed, check that 'pkg-config' is in your PATH and PKG_CONFIG_PATH contains a libxml-2.0.pc file. If pkg-config is unavailable you can set INCLUDE_DIR and LIB_DIR manually via: R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'

ERROR: configuration failed for package ‘xml2’

  • removing ‘/home/benoit/R/x86_64-pc-linux-gnu-library/4.1/xml2’ Warning in install.packages : installation of package ‘xml2’ had non-zero exit status ERROR: dependency ‘openssl’ is not available for package ‘ids’
  • removing ‘/home/benoit/R/x86_64-pc-linux-gnu-library/4.1/ids’ Warning in install.packages : installation of package ‘ids’ had non-zero exit status ERROR: dependencies ‘curl’, ‘openssl’ are not available for package ‘httr’
  • removing ‘/home/benoit/R/x86_64-pc-linux-gnu-library/4.1/httr’ Warning in install.packages : installation of package ‘httr’ had non-zero exit status ERROR: dependency ‘httr’ is not available for package ‘gargle’
  • removing ‘/home/benoit/R/x86_64-pc-linux-gnu-library/4.1/gargle’ Warning in install.packages : installation of package ‘gargle’ had non-zero exit statu

David Keyes

David Keyes

January 12, 2022

So it seems like some packages that are dependencies of tidyverse (i.e. packages that the tidyverse relies on for certain functions) didn't install correctly. What operating system are you using?

Benoit Gauthier

Benoit Gauthier

January 12, 2022

Ubuntu 18.04.6 LTS

Benoit Gauthier

Benoit Gauthier

January 14, 2022

After some googling around, I found that some (3) packages needed be installed in Ubuntu itself (libcurl4-openssl-dev, libxml2-dev, libssl-dev). The dependency verification process built into R did not take care of these installations. I'm good now.

Delia Ayled Serna Guerrero

Delia Ayled Serna Guerrero

March 20, 2022

Hi! I am having the following warning:

WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

But still doing what its needed, should I be worried?

Charlie Hadley

Charlie Hadley

March 21, 2022

Hi Delia. RTools is a collection of compilers and other things that are not installed by default on Windows and are occasionally required when using R. Unfortunately, it's not always clear that something isn't working because RTools is missing. So I'd recommend installing it at the beginning so it's just there. Thanks, Charlotte

Delia Ayled Serna Guerrero

Delia Ayled Serna Guerrero

March 23, 2022

Oh perfect! Thanks!

NIKHIL RATNA

NIKHIL RATNA

July 19, 2022

I see this error. Error in install.packages : object 'tidyverse' not found

NIKHIL RATNA

NIKHIL RATNA

July 19, 2022

I am sorry, its a syntax error.

Charlie Hadley

Charlie Hadley

July 19, 2022

Yup! Almost all functions for manipulating packages require package names in quotation marks (ie, as a string). The only exception is library(tidyverse)

NIKHIL RATNA

NIKHIL RATNA

July 19, 2022

Do you want to install from sources the packages which need compilation?

what does that mean and what should I answer. I am going with yes for now

Charlie Hadley

Charlie Hadley

July 19, 2022

Hi Nikhil,

This is a useful thread that goes into lots of detail about what installing from source means.

It's almost always okay to say "yes", provided you have the necessary tooling for installing from source. On macOS and Linux this tooling is almost always going to be correctly configured on your system. Whereas on Windows you would need to install RTools and there might be some additional configuration required.

If installing from source fails select "no" instead. If this means the code you're trying to work truly depends on installing from source you'll have errors. These can be fixed by either waiting 2 days for CRAN to update or else to investigate what's wrong with your tooling - but that can get quite complicated.

Cheers,

Charlie

Shannon Peery

Shannon Peery

August 30, 2022

After starting a new project (for my work) and the 'getting started' master for this course, I still do not have a 'scripts' window in either project. All other three windows are there: Console/Terminal, Environment/History & Files/Plots/Packages/Help. Why am I missing the Scripts window?

Shannon Peery

Shannon Peery

August 30, 2022

Sorry, answered my previous question - had to do 'New File' & Script for that box to pop up.

Charlie Hadley

Charlie Hadley

August 30, 2022

No worries!

Yasemin Akbaba

Yasemin Akbaba

February 15, 2023

I get the following error message: install packages “tidyverse” Error: unexpected symbol in "install packages"

Do you have a space between install and packages? If so, replace that with a period: install.packages("tidyverse")

Yasemin Akbaba

Yasemin Akbaba

February 15, 2023

This worked! Thanks.