Introduction R
Prefer this session as video?
See this YouTube video, to see this session as a video.
see a first overview of the R programming language
see the overview of the course
hear about ‘the tarbal with exercises’
Teaching goals are:
Learners have seen an overview of the course
Learners have seen an first overview of the R programming language
Lesson plan (15 minutes in total):
9:00: 2 min: discuss random people with videos, based on recommendation by [Bell, Mike. The fundamentals of teaching: A five-step model to put the research evidence into practice. Routledge, 2020]
- 9:02: 3 mins: Prior
What is R?
Why use R?
What are features of R?
Can R do everything?
What are R packages?
9:05: 5 mins: Present: First overview of R
9:10: 5 mins: Present: Course schedule
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.