Skip to content

Commit

Permalink
test local
Browse files Browse the repository at this point in the history
  • Loading branch information
MLopez-Ibanez committed Sep 20, 2024
1 parent 58ee46e commit f7fad75
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ jobs:

- name: "[macOS] Install openmpi"
if: runner.os == 'macOS'
run: brew install openmpi
run: |
brew install openmpi
brew install --cask xquartz
- name: "[Linux] Install openmpi"
if: runner.os == 'Linux'
Expand All @@ -69,24 +71,24 @@ jobs:
- uses: r-lib/actions/setup-r-dependencies@v2
if: runner.os != 'macOS'
with:
extra-packages: any::rcmdcheck, mlr=?ignore-before-r=4.0.0
extra-packages: any::rcmdcheck, mlr=?ignore-before-r=4.0.0, local::.
needs: check
cache-version: 1
install-pandoc: true

- uses: r-lib/actions/setup-r-dependencies@v2
if: runner.os == 'macOS'
with:
extra-packages: any::rcmdcheck, Rmpi=?ignore, mlr=?ignore-before-r=4.0.0
extra-packages: any::rcmdcheck, mlr=?ignore-before-r=4.0.0, local::., Rmpi=?ignore
needs: check
cache-version: 1

install-pandoc: true

- name: testthat
env:
NOT_CRAN: true
run: |
remotes::install_local(".", build = TRUE, upgrade = "never", force = TRUE, build_opts = c("--no-resave-data"), build_manual = TRUE, build_vignettes = TRUE)
testthat::test_local(stop_on_failure = TRUE)
testthat::test_local()
shell: Rscript {0}

- name: Check (as CRAN)
Expand Down
6 changes: 2 additions & 4 deletions R/generation.R
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,8 @@ get_dependent_domain <- function(param, configuration)

generate_sobol <- function(parameters, n, repair = NULL)
{
seed <- runif_integer(size = 1L)
cat(sprintf("spacefillr::generate_sobol_set(%d, dim = %d, seed = %d)\n",
n, parameters$nbVariable, seed))
confs <- spacefillr::generate_sobol_set(n, dim = parameters$nbVariable, seed = seed)
confs <- spacefillr::generate_sobol_set(n, dim = parameters$nbVariable,
seed = runif_integer(size = 1L))
confs <- data.table(confs)
setnames(confs, parameters$names_variable)
hierarchy <- parameters$hierarchy
Expand Down

0 comments on commit f7fad75

Please sign in to comment.