Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add specific sysreqs for INLA installation #139

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
ded5b4d
add specific sysreqs for INLA installation
matteodelucchi Jul 25, 2024
ee50faf
run on this dev branch
matteodelucchi Jul 25, 2024
d709e8e
add udunits2 for fedora
matteodelucchi Jul 25, 2024
6a16843
check the package to verify if INLA is installed
matteodelucchi Jul 25, 2024
d941554
we do not need to test the CRAN here
j-i-l Jul 25, 2024
6cb9cc8
run checks on HEAD of the branch
j-i-l Jul 25, 2024
55d483f
no need to install from source
j-i-l Jul 25, 2024
e06efe6
try without gsl install (old DESC file)
j-i-l Jul 25, 2024
c05b5f9
only update devtools - for speed
j-i-l Jul 25, 2024
f4b2e52
Revert "only update devtools - for speed"
j-i-l Jul 25, 2024
eec80ae
update only needed packages
j-i-l Jul 25, 2024
1a72b39
go back to updating all
j-i-l Jul 25, 2024
ec70913
installing from source + checks
j-i-l Jul 25, 2024
8ea8e18
adding openssl as sysdep
j-i-l Jul 26, 2024
9738699
adding curl as sysdep
j-i-l Jul 26, 2024
3b4f175
trying INLA install via sysreq on Ubuntu
j-i-l Jul 26, 2024
0c0d650
trying INLA install via sysreq Fedora
j-i-l Jul 26, 2024
f1ec6a9
trying INLA install via sysreq Windows
j-i-l Jul 26, 2024
38ad6f4
running checks at the end
j-i-l Jul 26, 2024
3c0b419
runnin on dev - to revert
j-i-l Jul 26, 2024
cd10a07
upgrading ubuntu floavors
j-i-l Jul 26, 2024
78ce274
simpler dependency statemnt (incl. suggests)
j-i-l Jul 26, 2024
1d058be
also checks on macOS
j-i-l Jul 26, 2024
6f15e74
adding the shlib_openmp_clfags to pkg_libs
j-i-l Jul 26, 2024
0c42d9d
addressing warning from checks
j-i-l Jul 26, 2024
807e8a8
bump R6 to dependency so it is installed on cueck_built
j-i-l Jul 26, 2024
bb8268d
include macos for testing
j-i-l Jul 26, 2024
5fc768e
only fail on error
j-i-l Jul 26, 2024
4d3e089
rely on rcmdcheck
j-i-l Jul 26, 2024
48faacd
removing prev. absent dep again
j-i-l Jul 26, 2024
b7fbab3
fix in build args param
j-i-l Jul 26, 2024
3dbfd63
adding sf as dependency (>fmesher>INLA)
j-i-l Jul 26, 2024
3366c8a
ingore vignettes
j-i-l Jul 26, 2024
eb793a5
losing Matrix req that requires R > 4.4.0
j-i-l Jul 26, 2024
19c1575
remove dev running condition
j-i-l Jul 28, 2024
f1e23e9
install with pak (and thus sysdeps)
j-i-l Jul 28, 2024
e7b14ee
install curl for pak
j-i-l Jul 28, 2024
65dfa27
separate step for pak install
j-i-l Jul 28, 2024
d97ee3d
including optional deps (i.e. also Suggests)
j-i-l Jul 28, 2024
8c6a0fa
reverting dep for Matrix
j-i-l Jul 28, 2024
dcd9748
adding INLA repo
j-i-l Jul 28, 2024
14146d2
cleaning up
j-i-l Jul 28, 2024
e513c41
try again with adding INLA repo
j-i-l Jul 28, 2024
58474c2
removing version pinning for Matrix
j-i-l Jul 28, 2024
9542985
rely on sysdeps for fedora
j-i-l Jul 28, 2024
e3b2dfa
ditch biocm specialy install
j-i-l Jul 28, 2024
73addef
adding jags as sysdep (for ubuntu)
j-i-l Jul 28, 2024
4277d36
setup on Ubuntu with pak
j-i-l Jul 28, 2024
29b9e66
removing dev running cond
j-i-l Jul 28, 2024
0e6be47
now with pak
j-i-l Jul 28, 2024
5760a89
update might not be needed with pak
j-i-l Jul 28, 2024
c7f00f0
also adding libcurl for pak install
j-i-l Jul 28, 2024
783c807
Case sensitivity
j-i-l Jul 30, 2024
43a250b
expicitely loading data
j-i-l Jul 30, 2024
3963a5a
since tests run isolated - load package first
j-i-l Jul 30, 2024
002b98a
Merge branch 'main' into 117-elaborate-if-inla-jags-and-gsl-can-be-in…
j-i-l Jul 30, 2024
e3a7294
pak based setup on Fedora
j-i-l Jul 31, 2024
d90b07f
adding Macos pak setup
j-i-l Jul 31, 2024
1c38573
better output for testthat
j-i-l Jul 31, 2024
6c9dc1d
Windows setup with pak
j-i-l Jul 31, 2024
b1f3a1b
updated instructions for Linux based systems
j-i-l Aug 5, 2024
6b93c03
updated instructions for Linux based systems
j-i-l Aug 5, 2024
93b403b
formatting
j-i-l Aug 5, 2024
af9ca06
adapting instructions for Mac&Windows
j-i-l Aug 6, 2024
185d636
adaptig installing f GH
j-i-l Aug 6, 2024
84593a2
completing with pak install
j-i-l Aug 6, 2024
84efb1e
adpted installation instructions for pak
j-i-l Aug 6, 2024
b4c04d3
cleaning up
j-i-l Aug 6, 2024
dbe701d
keep only intallation steps
j-i-l Aug 7, 2024
b75a4f3
renaming
j-i-l Aug 7, 2024
aca0268
adapting setup batches
j-i-l Aug 7, 2024
801e8fc
cleaning up
j-i-l Aug 7, 2024
d5afb1a
corrected naming
j-i-l Aug 7, 2024
84ef2bb
typo
j-i-l Aug 7, 2024
bd6ffd8
completing from source install
j-i-l Aug 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,12 @@ jobs:

- name: install config and build dependencies
run: |
dnf -y install pkg-config
dnf -y install cmake
dnf -y install R-devtools
dnf -y install libcurl-devel # needed for pak

- name: install GSL
- name: install pak
run: |
dnf -y install gsl-devel
install.packages('pak', repos=c(CRAN="https://cran.r-project.org"))
shell: Rscript {0}

- name: install JAGS
run: |
Expand All @@ -73,38 +72,16 @@ jobs:
library("rjags")
shell: Rscript {0}

- name: install INLA dependencies
run: |
dnf -y install udunits2-devel
dnf -y install libcurl-devel # rCurls package (for INLA)
dnf -y install openssl-devel # s2 package
dnf -y install libjpeg-devel # jpeg package
dnf -y install proj-devel # sf package
dnf -y install geos-devel # sf package
dnf -y install gdal-devel # terra package

- name: install INLA
run: |
install.packages("INLA", repos = c(CRAN = "https://cran.r-project.org", INLA = "https://inla.r-inla-download.org/R/stable"), dep = TRUE)
shell: Rscript {0}

- name: installing dependencies from BiocManager
run: |
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager", repos=c(CRAN="https://cran.r-project.org"))
BiocManager::install("Rgraphviz")
BiocManager::install("graph")
shell: Rscript {0}

- name: install from CRAN
run: |
install.packages('abn', repos=c(CRAN="https://cran.r-project.org"))
library('abn')
shell: Rscript {0}
# - name: install from CRAN with pak
# run: |
# pak::pkg_install('abn', dependencies=TRUE)
# library('abn')
# shell: Rscript {0}

- name: install from GitHub
- name: pak install from GitHub
run: |
devtools::install_github("furrer-lab/abn", ref="${{ env.BRANCH }}", dependencies=c("Depends", "Imports", "LinkingTo"), local=FALSE)
pak::repo_add(INLA = "https://inla.r-inla-download.org/R/stable/")
pak::pkg_install("furrer-lab/abn@${{ env.BRANCH }}", dependencies=TRUE)
library('abn')
shell: Rscript {0}

Expand All @@ -118,7 +95,5 @@ jobs:

- name: install from source
run: |
devtools::install_deps(pkg = '.', dependencies = TRUE, upgrade='never', repos=c(CRAN="https://cran.r-project.org"))
devtools::build(pkg = '.', path = '${{ env.BUILD_LOC }}/abn.tar.gz', vignettes = FALSE)
install.packages('${{ env.BUILD_LOC }}/abn.tar.gz', repos=NULL, type="source")
pak::local_install(dependencies=TRUE)
shell: Rscript {0}
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ jobs:
run: |
brew install jags

- name: install rjags
run: |
install.packages("rjags", type="source", repos=c(CRAN="https://cran.r-project.org"))
library("rjags")
shell: Rscript {0}
# - name: install rjags
# run: |
# install.packages("rjags", type="source", repos=c(CRAN="https://cran.r-project.org"))
# library("rjags")
# shell: Rscript {0}

- name: install INLA dependencies
run: |
Expand All @@ -58,23 +58,21 @@ jobs:
install.packages("INLA", repos = c(CRAN = "https://cran.r-project.org", INLA = "https://inla.r-inla-download.org/R/stable"), dep = TRUE)
shell: Rscript {0}

- name: installing dependencies from BiocManager
- name: install pak
run: |
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager", repos=c(CRAN="https://cran.r-project.org"))
BiocManager::install("Rgraphviz")
BiocManager::install("graph")
install.packages('pak', repos=c(CRAN="https://cran.r-project.org"))
shell: Rscript {0}

- name: install from CRAN
run: |
install.packages('abn', repos=c(CRAN="https://cran.r-project.org"))
library('abn')
shell: Rscript {0}
# - name: install from CRAN with pak
# run: |
# pak::pkg_install('abn', dependencies=TRUE)
# library('abn')
# shell: Rscript {0}

- name: install from GitHub
- name: pak install from GitHub
run: |
devtools::install_github("furrer-lab/abn", ref="${{ env.BRANCH }}", dependencies=c("Depends", "Imports", "LinkingTo"), local=FALSE)
pak::repo_add(INLA = "https://inla.r-inla-download.org/R/stable/")
pak::pkg_install("furrer-lab/abn@${{ env.BRANCH }}", dependencies=TRUE)
library('abn')
shell: Rscript {0}

Expand All @@ -88,7 +86,5 @@ jobs:

- name: install from source
run: |
devtools::install_deps(pkg = '.', dependencies = TRUE, upgrade='never', repos=c(CRAN="https://cran.r-project.org"))
devtools::build(pkg = '.', path = '${{ env.BUILD_LOC }}/abn.tar.gz', vignettes = FALSE)
install.packages('${{ env.BUILD_LOC }}/abn.tar.gz', repos=NULL, type="source")
pak::local_install(dependencies=TRUE)
shell: Rscript {0}
77 changes: 77 additions & 0 deletions .github/workflows/Ubuntu_setup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Workflow is triggered on label and check installation on various operating systems
# This action is adapted from https://github.com/t4d-gmbh/stubbed_versioning
name: Ubuntu Install

on:
push:
branches:
- "main"

env:
BRANCH: ${{ github.head_ref || github.ref_name }}

permissions:
packages: read
contents: write
pull-requests: write
repository-projects: write

jobs:
setup-and-install:
runs-on: ubuntu-latest
name: ubuntu-latest R release
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes

steps:

- name: Update and upgrade
run: |
sudo apt-get update && sudo apt-get upgrade

- name: install R
run: |
sudo apt-get -y install r-base

- name: fixing folder perms for local lib
run: |
sudo chown root:adm -R /usr/lib/R
sudo chmod g+w -R /usr/lib/R
sudo chown root:adm -R /usr/local/lib/R
sudo chmod g+w -R /usr/local/lib/R

- name: install config and build dependencies
run: |
sudo apt-get -y install libcurl4-openssl-dev # needed for pak

- name: install pak
run: |
install.packages('pak', repos=c(CRAN="https://cran.r-project.org"))
shell: Rscript {0}

# - name: install from CRAN with pak
# run: |
# pak::pkg_install('abn', dependencies=TRUE)
# library('abn')
# shell: Rscript {0}

- name: pak install from GitHub
run: |
pak::repo_add(INLA = "https://inla.r-inla-download.org/R/stable/")
pak::pkg_install("furrer-lab/abn@${{ env.BRANCH }}", dependencies=TRUE)
library('abn')
shell: Rscript {0}

- name: fetch the repository from GitHub
uses: actions/checkout@v4

- name: deactivate the renv
run: |
renv::deactivate()
shell: Rscript {0}

- name: install from source
run: |
pak::local_install(dependencies=TRUE)
shell: Rscript {0}
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:
R_KEEP_PKG_SOURCE: yes
steps:

- name: prepare windows
- name: install pak
run: |
install.packages("devtools", repos=c(CRAN="https://cran.r-project.org"))
install.packages('pak', repos=c(CRAN="https://cran.r-project.org"))
shell: Rscript {0}

- name: install GSL
Expand All @@ -55,28 +55,16 @@ jobs:
library("rjags")
shell: Rscript {0}

- name: install INLA
run: |
install.packages("INLA", repos = c(CRAN = "https://cran.r-project.org", INLA = "https://inla.r-inla-download.org/R/stable"), dep = TRUE)
shell: Rscript {0}

- name: installing dependencies from BiocManager
run: |
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager", repos=c(CRAN="https://cran.r-project.org"))
BiocManager::install("Rgraphviz")
BiocManager::install("graph")
shell: Rscript {0}

- name: install from CRAN
run: |
install.packages('abn', repos=c(CRAN="https://cran.r-project.org"))
library('abn')
shell: Rscript {0}
# - name: install from CRAN with pak
# run: |
# pak::pkg_install('abn', dependencies=TRUE)
# library('abn')
# shell: Rscript {0}

- name: install from GitHub
- name: pak install from GitHub
run: |
devtools::install_github("furrer-lab/abn", ref="${{ env.BRANCH }}", dependencies=c("Depends", "Imports", "LinkingTo"), local=FALSE)
pak::repo_add(INLA = "https://inla.r-inla-download.org/R/stable/")
pak::pkg_install("furrer-lab/abn@${{ env.BRANCH }}", dependencies=TRUE)
library('abn')
shell: Rscript {0}

Expand All @@ -90,7 +78,12 @@ jobs:

- name: install from source
run: |
devtools::install_deps(pkg = '.', dependencies = TRUE, upgrade='never', repos=c(CRAN="https://cran.r-project.org"))
devtools::build(pkg = '.', path = '${{ env.BUILD_LOC }}/abn.tar.gz', vignettes = FALSE)
install.packages('${{ env.BUILD_LOC }}/abn.tar.gz', repos=NULL, type="source")
pak::local_install(dependencies=TRUE)
shell: Rscript {0}

- name: run the tests
run: |
pak::pak('r-lib/testthat')
library("abn")
testthat::test_local(path='tests', load_package='none')
shell: Rscript {0}
113 changes: 0 additions & 113 deletions .github/workflows/onlabel_Ubuntu_setup.yml

This file was deleted.

Loading