install.packages("tidyverse")
Guide for Working Locally
Download Course Materials
- Go to the R for Bio Data Science RStudio Cloud Server
- Login using your credentials
- In the file pane, navigate to your
projects
-directory, where (if you followed course instructions) you will find yourr_for_bio_data_science
-directory - Tick the box to the left of your
r_for_bio_data_science
-directory - Click the gear cog, which says
More
- Click
Export...
- You should now be prompted to download
r_for_bio_data_science.zip
- Click
Download
Download Course Slides
The course slides are available via the course site. They are self-contained .html
-files and can be opened offline in a browser like e.g. google chrome. The slides can be downloaded as follows:
- Go to the Course Site
- In the menu on the left, choose a course lab and click it
- Under
Schedule
, find and click the link to the lecture - Hit command+s (mac) or ctrl+s (windows) or choose file and then save depending on your OS
- Put the downloaded
.html
-files where you want to save them. - Right click and choose open with or similar and then choose your favourite browser
Installing R on your computer
- Go to The R Project for Statistical Computing
- Under
Getting Started
it saysTo download R, please...
, click thedownload R
-part - Scroll down and find
Denmark
and click - Click the
Aalborg University
-mirror link https://mirrors.dotsrc.org/cran/ - Under
Download and Install R
, click your appropriate OS Linux, macOS or Windows- If you have Linux, you’ll know what to do
- For mac, be aware that you have to choose either
R-4.3.2-arm64.pkg
orR-4.3.2-x86_64.pkg
(versions as of 30-11-23) depending on whether you have aM
- or anIntel
-mac. This you can find out by clicking the apple in the upper left corner of your screen and selectAbout This Mac
and look at what is says next toChip
- For Windows, there is a
install R for the first time
-guide you will have to follow.
If any of this is unclear, I’m absolutely sure, there will be tons of how-to-install-R tutorials on youtube
Installing RStudio
- Go to the Posit site
- Click
DOWNLOAD RSTUDIO
in the upper right corner - Under
RStudio Desktop
, clickDOWNLOAD RSTUDIO
- The first point
1: Install R
is covered above - Under
2: Install RStudio
, click the blue box below, it will vary depending on your OS, mine saysDOWNLOAD RSTUDIO DESKTOP FOR MACOS 11+
- Open the downloaded installer and follow the instructions
Installing packages
Once you have downloaded and installed R
and RStudio
, you can start installing packages. E.g. we can install Tidyverse
using the command:
Look through the different exercise labs at the top, the packages you have been working with are stated.
Open course materials
The downloaded course materials can simply be opened directly in RStudio
, so be sure to organise them, so you can easily access them on your own computer.