R4phd

Author
Published

May 31, 2022

Klik for at skifte til dansk.

This website is available in Danish and in English.
Please pay attention to the Table of content on the left hand side, where you will find pages organized under ‘Dansk’ and ‘English’. 20

1 Welcome to R4phd

The idea behind this webpage was to form the basis for regular classroom teaching of R, RStudio and the R ecosystem. Primarily with Ph.D. courses based at the University of Southern Denmark in mind.

You will find a plethora of guides, examples, videos and FAQs on the internet, but it can be difficult to naviagte and it is not structured for classroom teaching.


You can start by looking at the table of content in the collapsable menu (top-left hand corner).

2 Operating system – Windows, MacOS or Linux?

The teaching material on this site was prepared mainly on a Linux computer.

If you use Microsoft Windows or Apple MacOS you should expect things to look sightly different here, from how they appear on your own screen.

It should not give rise to any important issues however, as R and RStudio work very well and almost identically on all three operating systems. None-the-less, where I am aware of any real differences between the operating systems, I will /illustrate it using three tabs in the following way (click the relevant tab):

…Windows specific content

…MacOS specific content

…Linux specific content

3 Exercises

On occasion you will find small exercises in collapsible boxes, like this:

(Click the collapsible box below):

If there are important differences between Windows, MacOS and Linux, you can find the information relevant to you:

  • In a separate window marked by a warning-triangle
  • In one of three tabs marked with the operating system
  • On a postcard on the fridge in the canteen

… and similarly, the solution will be found in a collapsible box:

  • In a separate window marked by a warning-triangle
  • In one of three tabs marked with the operating system
  • On a postcard on the fridge in the canteen

5 Comments and questions

It is possible to leave comments, suggestions and questions at the end of each page – please help improve the R4PhD content by doing so:

  • You will need a github account, which can be created free of charge and which will probably come in handy at later time.
  • Also note, that as pages on the R4PhD site are paired in English and Danish, comments will appear on both pages – stick to English if possible.

We also recommend using Stack Overflow as great starting point for getting support when you run into trouble. We have created a Stack Overflow for Teams group specifically for this class but, by all means, use the general Stack Overflow community – you will find help is forthcoming very quickly, if you can word your questions succinctly.

It is possible to create a separate account in Stack Overflow, or you can just log in using the GitHub account you just created (?) or alternatively a Google or Facebook account.