Fix loading common.R from other gitlab repo
Change-Id: I55775a70fc808bef5b6ab9177cc0922de487e717
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f4076ef..c2bdd1d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -32,6 +32,7 @@
- R -e "install.packages(c('devtools', 'RKorAPClient', 'httr', 'tidytext', 'httpuv', 'scales', 'sp', 'raster', 'kableExtra', 'DT', 'svglite', 'qrcode', 'rsvg'))"
- R -e 'devtools::install_git("https://korap.ids-mannheim.de/gerrit/IDS-Mannheim/idsThemeR")'
- R -e 'devtools::install(".")'
+ - curl -O --output-dir /tmp/ https://gitlab.ids-mannheim.de/ICC/2023-07-20-ICC-ICLC10/-/raw/master/R/common.R
- end_section install_r_packages
script:
diff --git a/examples/ids.Rmd b/examples/ids.Rmd
index 5c53182..275fb0e 100644
--- a/examples/ids.Rmd
+++ b/examples/ids.Rmd
@@ -30,9 +30,14 @@
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE, message = FALSE, warning = FALSE)
library(idsThemeR)
+library(RKorAPClient)
library(highcharter)
library(tidyverse)
-source("https://gitlab.ids-mannheim.de/ICC/2023-07-20-ICC-ICLC10/-/raw/master/R/common.R", verbose=T)
+if (file.exists("/tmp/common.h")) {
+ source("/tmp/common.h")
+} else {
+ source("https://gitlab.ids-mannheim.de/ICC/2023-07-20-ICC-ICLC10/-/raw/master/R/common.R")
+}
```
## R Markdown