Skip to content
R for the Rest of Us Logo

Getting Started With R

Packages

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. Working in the console, install the Tidyverse package using the code install.packages("tidyverse")

  2. Check in the Packages tab on the bottom right panel to confirm that the tidyverse package has been installed successfully.

If you get any messages from R about conflicts when loading packages, don't worry about them for now.

Also, if you are a Windows user and get messages about downloading RTools, you can safely ignore these as well. You should not need RTools to install packages used in this course.

Learn More

There are thousands and thousands of R packages. What this means is that, if you ever wonder, can I do that in R, the answer is probably yes!

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

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

Jessica Purser

Jessica Purser • September 15, 2023

It's saying I need Rtools, shoots out a bunch of red warnings, but then goes and installs it. Do I need Rtools?

David Keyes

David Keyes Founder • September 15, 2023

You should not need it to install any of the packages used in this course.

Laura Bracun

Laura Bracun • October 29, 2023

R Studio doesn't allow me to download the tidyverse package and I don't understand why. This is the error I get: Warning in install.packages : installation of package ‘tidyverse’ had non-zero exit status

The downloaded source packages are in ‘/private/var/folders/m_/62m1vj2s6kv38gftkylyntq00000gn/T/RtmploZN0U/downloaded_packages’

David Keyes

David Keyes Founder • October 29, 2023

Can you please try again today and let me know if you have better luck? There were some issues yesterday with installing packages that should be resolved now.

Benoit Gauthier

Benoit Gauthier • January 15, 2024

Still installing on my Chromebook. Here are the additional installations required prior to tidyverse:

sudo apt-get install libfontconfig1-dev sudo apt-get install libharfbuzz-dev libfribidi-dev sudo apt-get install libfreetype6-dev libpng-dev libtiff5-dev libjpeg-dev sudo apt-get install libxml2-dev

SALIM SHEUNDA

SALIM SHEUNDA • February 26, 2024

The Rstudio doesn't allow me to download tidyverse package: It indicates this error:

installed.packages("tidyverse") Package LibPath Version Priority Depends Imports LinkingTo Suggests Enhances License License_is_FOSS License_restricts_use OS_type Archs MD5sum NeedsCompilation Built

David Keyes

David Keyes Founder • February 26, 2024

Try install.packages("tidyverse") instead of installed.packages("tidyverse"). :)

Chota Musonda

Chota Musonda • June 26, 2024

I seem to be getting Warning messages and failed installations. How can I navigate this aspect of the R.

Chota Musonda

Chota Musonda • June 26, 2024

This is a copy of the message:

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

This is the error message:

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.4/fastmap_1.2.0.zip' Content type 'application/zip' length 135367 bytes (132 KB) downloaded 132 KB

David Keyes

David Keyes Founder • June 28, 2024

Please see the note in the Your Turn section. You can safely ignore the message.

Nina Liimatta

Nina Liimatta • September 17, 2024

If you stop on one of the courses do you loose everything you've already done?

David Keyes

David Keyes Founder • September 17, 2024

No, your progress will always be saved.

Lynne Bruger

Lynne Bruger • February 14, 2025

When attempting to install tidyverse, I received a "Please selecte a CRAN mirror for use in this session" prompt, with (seemingly) a list of geographical regions (plus "cloud" or "other") to choose from. Is this expected behavior? If so, what should I select? (There is nothing that aligns exactly with my location.)

David Keyes

David Keyes Founder • February 14, 2025

This must be a change made after I recorded this lesson. In any case, it doesn't matter which one you choose. There are copies of R packages stored on servers around the world. You can choose which one you want to download them from. But, really, they'll all work just fine (ones farther from you may take a second or two longer).

Gracielle Higino

Gracielle Higino Coach • February 14, 2025

This might actually be common on new installations of R and RStudio! I remember we had to do this every time we wanted to install a package on base R, but on RStudio you can designate the default option on Tools > Global Options > Packages > Primary CRAN repository