Skip to content

Commit

Permalink
Remove sudo usage
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyWillard committed Oct 16, 2024
1 parent 58ab3b4 commit ab44173
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/flepicommon-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,30 @@ jobs:
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
apt-get update
apt-get install ./r-${R_VERSION}_1_amd64.deb
ln -s /opt/R/${R_VERSION}/bin/R /usr/local/bin/R
ln -s /opt/R/${R_VERSION}/bin/Rscript /usr/local/bin/Rscript
shell: bash
env:
R_VERSION: ${{ matrix.R-version }}
- name: Build flepicommon
run: |
R CMD build flepimop/R_packages/flepicommon/
shell: bash
- name: Install Dependencies And flepicommon
- name: Install Dependencies
run: |
files <- list.files()
pkg <- files[startsWith(files, "flepicommon_")]
install.packages(pkg, dependencies = TRUE)
install.packages("devtools")
packageVersion("flepicommon")
shell: Rscript {0}
- name: Install flepicommon
run: |
R CMD install --help
echo "-"
TAR_GZ=$( find . -maxdepth 1 -regex ".*flepicommon.*" -printf "%P\n" )
R CMD install $TAR_GZ
- name: Run Unit Tests
run: |
setwd("flepimop/R_packages/flepicommon")
Expand Down

0 comments on commit ab44173

Please sign in to comment.