From 9c1b95dcd77b15fed5a843fc22d950bb392afa1c 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 | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/flepicommon-ci.yml b/.github/workflows/flepicommon-ci.yml index 7645a0980..9308b711b 100644 --- a/.github/workflows/flepicommon-ci.yml +++ b/.github/workflows/flepicommon-ci.yml @@ -26,10 +26,16 @@ 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 + R --version + shell: bash + env: + R_VERSION: ${{ matrix.R-version }} - name: Build flepicommon run: | R CMD build flepimop/R_packages/flepicommon/