gitlab-ci: install from source using pak
Change-Id: I8a00ca82d15ac793d9b9fbd39cf53bc1396aa6a5
diff --git a/ci/install-rkorapclient-ci.yml b/ci/install-rkorapclient-ci.yml
index 7c0b00b..040d27f 100644
--- a/ci/install-rkorapclient-ci.yml
+++ b/ci/install-rkorapclient-ci.yml
@@ -35,8 +35,8 @@
- echo "MAKE=make -j$(nproc)" >> ~/.R/Makevars
- apt-get update
- apt-get install -y -o dir::cache::archives="$APT_CACHE_DIR" --no-install-recommends software-properties-common dirmngr ccache wget
- - wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
- - add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"
+# - wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
+# - add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"
# - add-apt-repository ppa:c2d4u.team/c2d4u4.0+
- grep "sudo apt install" Readme.md | sed -e 's/.*sudo apt install/apt-get install --no-install-recommends -o dir::cache::archives="$APT_CACHE_DIR" -y libharfbuzz-dev libfribidi-dev /g' | sh
- ln -s $(which ccache) /usr/local/sbin/gcc
@@ -44,12 +44,9 @@
- end_section install_linux_packages
script:
- - start_section installing "Installing RKorAPClient from CRAN"
+ - start_section installing "Installing RKorAPClient from source"
- export PATH=/usr/local/sbin:$PATH
- - R -q -e "install.packages(c('remotes', 'RKorAPClient'), dependencies = TRUE)"
- - R -q -e "update.packages(ask = FALSE)"
- - end_section installing
- - start_section linstalling "Installing RKorAPClient from source"
- - R -q -e 'remotes::install_local(force = TRUE, dependencies = TRUE)'
+ - R -q -e "install.packages('pak', dependencies = TRUE)"
+ - R -q -e 'pak::pak()'
- ccache -s
- - end_section linstalling
+ - end_section installing