From 58ab3b42ef9eacd11bde60dfd8942327bb9aff16 Mon Sep 17 00:00:00 2001 From: Timothy Willard <9395586+TimothyWillard@users.noreply.github.com> Date: Wed, 16 Oct 2024 15:15:23 -0400 Subject: [PATCH] Install specific R from posit deb --- .github/workflows/flepicommon-ci.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/flepicommon-ci.yml b/.github/workflows/flepicommon-ci.yml index 7645a0980..c79795724 100644 --- a/.github/workflows/flepicommon-ci.yml +++ b/.github/workflows/flepicommon-ci.yml @@ -26,10 +26,18 @@ jobs: uses: actions/checkout@v4 with: lfs: true - - name: Setup R ${{ matrix.R-version }} - uses: r-lib/actions/setup-r@v2 - with: - r-version: ${{ matrix.R-version }} + - name: Install R + run: | + UBUNTU_VERSION=$( echo "$( lsb_release -r )" | awk '{print $2}' | sed 's/\.//g' ) + curl -O https://cdn.rstudio.com/r/ubuntu-${UBUNTU_VERSION}/pkgs/r-${R_VERSION}_1_amd64.deb + sudo apt-get update + sudo apt-get install ./r-${R_VERSION}_1_amd64.deb + sudo ln -s /opt/R/${R_VERSION}/bin/R /usr/local/bin/R + sudo ln -s /opt/R/${R_VERSION}/bin/Rscript /usr/local/bin/Rscript + R --version + shell: bash + env: + R_VERSION: ${{ matrix.R-version }} - name: Build flepicommon run: | R CMD build flepimop/R_packages/flepicommon/