Readme: add installation instructions for R and RStudio
Change-Id: I58e66cba1146cd44ad7ee58ed4de88a913b1a9d8
diff --git a/Readme.md b/Readme.md
index 1309205..ad96a7c 100644
--- a/Readme.md
+++ b/Readme.md
@@ -18,8 +18,18 @@
R client package to access the [web service API](https://github.com/KorAP/Kustvakt/wiki) of the [KorAP Corpus Analysis Platform](https://korap.ids-mannheim.de/) developed at [IDS Mannheim](http://www.ids-mannheim.de/)
## Installation
-### System Dependencies on Linux
-`RKorAPClient` uses some R packages with system dependencies you might need to install first:
+
+### Install R and RStudio
+
+#### On Windows or Mac
+
+1. Install latest R version (>= 3.6) from [CRAN](https://cran.r-project.org/bin/)
+2. Install latest RStudio from [RStudio server](https://www.rstudio.com/products/rstudio/download/#download)
+
+#### On Linux
+
+On Linux you can choose, whether to install R and RStudio from your linux distribution's package maintainer or, like described above, for Windows and Mac. However, in any case, you first need to install some system dependencies required by R packages used by RKorAPClient:
+
```bash
# Debian / Ubuntu
sudo apt install r-base-dev libcurl4-gnutls-dev libxml2-dev libsodium-dev libsecret-1-dev libfontconfig1-dev libssl-dev
@@ -30,13 +40,20 @@
# Arch Linux
pacman -S base-devel gcc-fortran libsodium curl
```
-### Package installation
-#### CRAN version:
+
+### Install the RKorAPClient package
+#### In RStudio
+Start RStudio and click on *Install Packages…* in the *Tools* menu. Enter *RKorAPClient* in the *Packages* input field and click on the *Install* button (keeping *Install Dependencies* checked).
+
+#### Or from the command line
+Start R, then install RKorAPClient from CRAN (or development version from GitHub or KorAP's gerrit server).
+
+##### CRAN version:
```r
install.packages("RKorAPClient")
```
-#### Development version (alternatives):
+##### Development version (alternatives):
```r
devtools::install_github("KorAP/RKorAPClient")
remotes::install_github("KorAP/RKorAPClient")