Introduction R
see a first overview of the R programming language
see the overview of the course
Teaching goals are:
Learners have seen an overview of the course
Learners have seen an first overview of the R programming language
Lesson plan (20 minutes in total):
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]
- 5 mins: prior knowledge
What is R?
Why use R?
What are features of R?
Can R do everything?
What are R packages?
5 mins: presentation: First overview of R
5 mins: presentation: Course schedule
3 mins: feedback
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 or UPPMAX
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:
here is an overview of 6 NAISS centres and their R documentation
here is an (incomplete) overview of R courses being taught at NAISS
R Exercise files
On HPC2N, you can copy the R exercise tarball from /proj/nobackup/hpc2n2024-025/exercises-r.tar.gz
On UPPMAX, you can copy the R exercise tarball from /proj/naiss2024-22-107/exercises-r.tar.gz
Schedule
Time |
Topic |
Teacher(s) |
---|---|---|
9:00 |
First login |
BB + PO + RB |
9:45 |
Break |
. |
10:00 |
First login |
BB + PO + 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 |
PO * RB * ?RP |
15:15 |
Break |
. |
15:30 |
Machine learning |
BB or PO |
16:00 |
Summary and evaluation |
RB |
16:15 |
Done |
. |
Simultaneous session:
HPC2N: ThinLinc & RStudio, by PO
UPPMAX: ThinLinc, RStudio, interactive, by RB
LUNARC, by ?RP