Introduction R

../_images/r_logo_50.png
  • see a first overview of the R programming language

  • see the overview of the course

  • hear about ‘the tarbal with exercises’

Course learning objectives

  • use the module system to load R

  • use the module system to load site-installed R packages

  • find out which versions of R and packages are installed

  • run R scripts

  • write a batch script for running R

  • install R packages from CRAN

  • see how to install other R packages yourself

  • start batch jobs

  • run RStudio

on HPC2N, UPPMAX, or LUNARC

Course non-goals

  • improve R coding skills

  • use R on other HPC clusters

First overview of R

R is a programming language for statistical computing and data visualization (from Wikipedia).

The main general R resources are:

R is used in many NAISS centres:

Schedule

Time

Topic

Teacher(s)

9:00

(optional) First login

BB + PO + RB

9:45

Break

.

10:00

Introduction

RB

10:10

Syllabus

RB

10:20

Load modules and run

RB

10:45

Break

.

11:00

Packages

BB

11:30

Isolated environments

BB

12:00

Lunch

.

13:00

Batch

BB

13:30

Parallel

PO

14:15

Break

.

14:30

Simultaneous session

.

.

HPC2N: ThinLinc, RStudio

PO

.

LUNARC: On-Demand, RStudio

RP

.

UPPMAX: Interactive, RStudio

RB

15:15

Break

.

15:30

Machine learning

BB or PO

16:00

Summary and evaluation

RB

16:15

Done

.

  • RB: suggest to make ‘Batch’ 15 minutes longer and remove a session, in the next course iteration

Exercises used in the course

The course uses a so-called tarball files with exercises as used in this course.

See here how to get and decompress it.

In the ‘Load modules and run’ session, there is the time to do so.