Skip to content

Commit

Permalink
Install specific R from posit deb
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyWillard committed Oct 16, 2024
1 parent dbd692e commit 58ab3b4
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/flepicommon-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 58ab3b4

Please sign in to comment.