A quick overview of RStudio
Et hurtigt overblik over RStudio
Exercise #1
Try to complete the following:
- Create three panes in the ‘Text editor’ pane.
- Re-arrange the order of the three new tabs in the Text editor
- Use the help functionality to find out how to determine the version of R on your computer.
- Find your R console. type:
a <- 5
(press enter) – what happened in your Environment? - Change the layout of RStudio to a dark color scheme.
Solution to exercise #1
- Simply create three new files: File / New file / R script (CTRL+SHIFT+n).
- Click-hold-and-drag with the mouse
- Note there are two search boxes in the help tab of the output pane – use the one on the right hand side to learn about the R.Version base function.
- In the Environment tab of the Environment pane, you should see a list of ‘Values’ with ‘a’ being ‘5’.
- In Tools / Global options / Appearance, choose e.g. ‘Cobalt’ in the Editor theme dialog.
Øvelse #1
Prøv at fuldføre følgende:
- Opret tre faner i panelet ‘Teksteditor’.
- Omarranger rækkefølgen af de tre nye faner i teksteditoren
- Brug hjælpefunktionen til at finde ud af, hvordan du bestemmer versionen af R på din computer.
- Find din R-konsol. Indtast:
a <- 5
(tryk enter) – hvad skete der i dit Environment? - Skift layoutet af RStudio til et mørkt farveskema.
Løsning til øvelse #1
- Du skal blot oprette tre nye filer: File / New files / R script (CTRL+SHIFT+n).
- Klik-hold-og-træk med musen
- Bemærk, at der er to søgefelter i hjælpefanen i outputruden – brug den til højre for at lære om
R.Version
funktionen. - På fanen Miljø i ruden Miljø bør du se en liste over ‘Værdier’, hvor ‘a’ er ‘5’.
- I Værktøjer / Globale muligheder / Udseende vælges f.eks. ‘Kobolt’ i dialogboksen Editor-tema.