R Markdown

Prof. Dr. Mirco Schoenfeld

Preparations

Please prepare the following:

  1. Make sure to stick to the following order
  2. Install R from https://cran.r-project.org/
  3. Install RStudio from https://posit.co/download/rstudio-desktop/
  4. Open RStudio and install the
    package rmarkdown via Tools > Install Packages
  5. On Windows, please see the next slide

Windows

In case you face issues installing rmarkdown package on Windows

You need to install RTools: https://cran.rstudio.com/bin/windows/Rtools/

And please check

download.file("https://cran.rstudio.com/src/contrib/PACKAGES", "text.txt")

if that results in an error:

In download.file(“https://cran.rstudio.com/src/contrib/PACKAGES”, :
URL ‘https://cran.rstudio.com/src/contrib/PACKAGES’: Status war ‘SSL connect error’

Then this helps:

options("download.file.method"="wininet")

and after that install rmarkdown package

Back to Lecture Website