Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
128 commits
Select commit Hold shift + click to select a range
0e943e4
Reorganise devel-examples
MLopez-Ibanez Nov 21, 2024
19018ab
* vignettes/irace-package.Rnw: Add new FAQ.
MLopez-Ibanez Nov 22, 2024
3bb285e
* R/utils.R (get_log_clean_version): More robust detection of git SHA.
MLopez-Ibanez Nov 25, 2024
9f503ef
* R/configurations.R: Minor edit.
MLopez-Ibanez Nov 25, 2024
50ae429
* R/psRace.R: More robust selection of configurations.
MLopez-Ibanez Nov 24, 2024
3037934
Prepare for 4.0 release
MLopez-Ibanez Nov 23, 2024
886dd4c
Regenerate examples
MLopez-Ibanez Nov 26, 2024
20a48ce
Improve formatting of types of a few @param.
MLopez-Ibanez Nov 27, 2024
fcd5418
Options --src and --target of ablation can now take a path to a file.
MLopez-Ibanez Dec 3, 2024
0f4230e
Removed additional word.
sbomsdorf Dec 3, 2024
f57fdf0
Added missing commas.
sbomsdorf Dec 3, 2024
2110ba5
Removed item for consiceness; 5th item has now two alternative options.
sbomsdorf Dec 3, 2024
a2bd141
Used 'their' to refer to a person rather than an object.
sbomsdorf Dec 3, 2024
67e26fc
Fixed typo.
sbomsdorf Dec 3, 2024
3363add
Mention @ sbomsdorf in NEWS
MLopez-Ibanez Dec 3, 2024
071adba
* Makefile: Use touch to avoid double evaluation.
MLopez-Ibanez Dec 7, 2024
e77a83c
fix .gitignore
MLopez-Ibanez Dec 7, 2024
586e014
Remove switches from experiments.
MLopez-Ibanez Dec 7, 2024
8c61b9d
* TODO,NEWS.md: Fix stray uses of maxBound.
MLopez-Ibanez Dec 7, 2024
2721dbe
* R/race.R: race_wrapper() now supports multiple instances.
MLopez-Ibanez Dec 7, 2024
e074cde
* R/race.R: Simplify handling of final_bounds.
MLopez-Ibanez Dec 7, 2024
5dbde27
* tests/testthat/: Minor clean-ups to tests.
MLopez-Ibanez Dec 8, 2024
94ff4c7
* Makefile: make test TEST=, instead of make check TEST=.
MLopez-Ibanez Dec 8, 2024
75fb8d7
* R/psRace.R: Add code to debug intermittent bug.
MLopez-Ibanez Dec 8, 2024
bf7a483
* R/psRace.R: Fix bug in calculation of combs.
MLopez-Ibanez Dec 8, 2024
29a4375
* tests/testthat/: Minor improvements to tests.
MLopez-Ibanez Dec 8, 2024
a8a520d
* tests/testthat/test-bug-blocksize.R: Delete. Move into...
MLopez-Ibanez Dec 8, 2024
a74975f
* R/psRace.R: More robust post-selection.
MLopez-Ibanez Dec 8, 2024
d8da638
* R/ablation.R: Call stop_parallel().
MLopez-Ibanez Dec 8, 2024
e56581f
* NEWS.md: A few updates.
MLopez-Ibanez Dec 8, 2024
a701386
Use more precise NA types.
MLopez-Ibanez Dec 8, 2024
8307ee2
Use more precise NA types.
MLopez-Ibanez Dec 8, 2024
5e1070d
* R/utils.R (read_logfile): Use setDT on data.tables loaded from disk.
MLopez-Ibanez Dec 9, 2024
1b18260
* R/race-wrapper.R: Use deparse1 instead of toString.
MLopez-Ibanez Dec 9, 2024
5ebd4cc
* R/race.R: A few minor improvements.
MLopez-Ibanez Dec 9, 2024
ea2a71e
* R/irace.R: Avoid calling psRace if there is not enough budget.
MLopez-Ibanez Dec 9, 2024
7c8cd1b
More use of withr. Rename a few functions to replace . with _
MLopez-Ibanez Dec 9, 2024
8aa203e
* R/testing.R: Use rep.int when possible.
MLopez-Ibanez Dec 9, 2024
30c8d47
* R/: Cannot use rep.int(maxBound) because of NULL. Use rep_len wher…
MLopez-Ibanez Dec 10, 2024
56ac12c
* NEWS.md: update.
MLopez-Ibanez Dec 10, 2024
89efb9b
Prepare to release 4.1
MLopez-Ibanez Dec 10, 2024
c05983c
* devel-examples/vignette-example/create-example-file.R: Use absolut…
MLopez-Ibanez Dec 10, 2024
0145cbc
* devel-examples/vignette-example: Use fewer instances in acotsp to …
MLopez-Ibanez Dec 12, 2024
38b59f7
* R/parameters.R: Optimize conditions (#70).
MLopez-Ibanez Dec 12, 2024
ef8598f
Regenerate examples.
MLopez-Ibanez Dec 13, 2024
8606b49
* R/race.R: Minor edits and remove old comments.
MLopez-Ibanez Dec 21, 2024
e10651b
Bump to development version. Do not suggest ParamHelpers.
MLopez-Ibanez Dec 21, 2024
eb50d43
* Makefile: Faster quick-install.
MLopez-Ibanez Dec 21, 2024
d56e8e1
* cleanup: Remove irace.Rdata in root.
MLopez-Ibanez Dec 23, 2024
e236d5c
* inst/examples/slurm/: Refresh example.
MLopez-Ibanez Dec 25, 2024
016f52b
* R/irace.R: Use rbindlist.
MLopez-Ibanez Dec 21, 2024
f44f861
* tests/: Minor improvements.
MLopez-Ibanez Dec 21, 2024
3db038f
* R/utils.R: rename irace_save_logfile to save_irace_logfile.
MLopez-Ibanez Dec 21, 2024
226c92f
Improve docs.
MLopez-Ibanez Dec 21, 2024
25cd275
* R/race-wrapper.R, R/race.R: Minor improvements.
MLopez-Ibanez Dec 21, 2024
52978e7
* R/race.R: Reimplement generateTimeMatrix().
MLopez-Ibanez Dec 21, 2024
0ff611b
Various fixes to psRace.
MLopez-Ibanez Dec 21, 2024
fd7abcc
* R/timer.R (wallclock): New.
MLopez-Ibanez Dec 25, 2024
ecae935
* devel-examples/vignette-example/create-example-file.R: Create sann…
MLopez-Ibanez Dec 24, 2024
ccb5c1f
* tests/testthat/test-ablation-cmdline.R: move contents to...
MLopez-Ibanez Dec 24, 2024
a2bb7d8
Fix #76: Completely new implementation of recovery.
MLopez-Ibanez Dec 21, 2024
18a4e7d
* .github/workflows/revdepcheck.yml: New.
MLopez-Ibanez Dec 25, 2024
f34664d
* R/irace-package.R: We do not need to import compiler.
MLopez-Ibanez Dec 26, 2024
bd6c439
* R/race_state.R (update_experiment_log): Simplify.
MLopez-Ibanez Dec 26, 2024
f20bbef
* R/race.R: simplify.
MLopez-Ibanez Dec 26, 2024
d245976
* R/: Use local_preserve_seed() before calling targetRunner or targe…
MLopez-Ibanez Dec 26, 2024
8041392
* R/race.R: rename first.test to firstTest.
MLopez-Ibanez Dec 29, 2024
f9ee093
* R/psRace.R: Remove stray line.
MLopez-Ibanez Dec 29, 2024
277faa4
Fix computation of experimentsUsed and avoid saving recovery info too…
MLopez-Ibanez Dec 29, 2024
544a8b3
Do not import the whole package 'utils'.
MLopez-Ibanez Dec 29, 2024
bfc5a4f
* .github/workflows/R-CMD-check.yaml: Test macos-13 and macos-14 for…
MLopez-Ibanez Dec 29, 2024
6e9fb27
Rename irace.assert, irace.warning, irace.note and irace.error
MLopez-Ibanez Dec 30, 2024
e541cf6
Test quiet option.
MLopez-Ibanez Dec 31, 2024
dd146da
* tests/: Remove useless 'irace:::'.
MLopez-Ibanez Dec 31, 2024
c60ad00
* R/psRace.R: Adjust firstTest to make better use of the budget avai…
MLopez-Ibanez Dec 31, 2024
3d4f8f8
* R/main.R: Add missing space.
MLopez-Ibanez Jan 1, 2025
5ee67b5
* .Rbuildignore, .Rinstignore: Sort contents.
MLopez-Ibanez Jan 1, 2025
06b2b91
* R/psRace.R: If we cannot run post-selection, just return the elite…
MLopez-Ibanez Dec 31, 2024
20acfff
* .pre-commit-config.yaml: New.
MLopez-Ibanez Jan 1, 2025
359b41e
* R/utils.R (merge_matrix): optimize.
MLopez-Ibanez Jan 1, 2025
ae50b24
Try to increase coverage.
MLopez-Ibanez Dec 31, 2024
73e326c
* R/irace.R (extractElites): Use setorderv.
MLopez-Ibanez Jan 1, 2025
408c7b1
* cleanup: Do not delete devel-examples/vignette-example/acotsp/.
MLopez-Ibanez Jan 1, 2025
94c9d28
.pre-commit-config.yaml: Enable more hooks.
MLopez-Ibanez Jan 1, 2025
62a62bc
* R/main.R: Remove extra # in note.
MLopez-Ibanez Jan 1, 2025
5916538
* R/race.R: Handle the case when all elites are rejected before star…
MLopez-Ibanez Jan 1, 2025
3af0fb0
* NEWS.md: Fix header for development version.
MLopez-Ibanez Jan 1, 2025
485a892
* .github/workflows/R-CMD-check.yaml: Update coverage job.
MLopez-Ibanez Jan 1, 2025
86cb0ee
* R/race_state.R (elitist_init_instances): Remove useless block_size…
MLopez-Ibanez Jan 2, 2025
47e859c
* R/race.R: Lots of minor improvements.
MLopez-Ibanez Jan 3, 2025
a0529f3
* R/irace.R: firstTest is multiplied by blockSize.
MLopez-Ibanez Jan 3, 2025
5e676dc
* .pre-commit-config.yaml (deps-in-desc): Ignore .Rnw files.
MLopez-Ibanez Jan 3, 2025
41cb08b
blockSize multiplies elitistNewInstances. Document this behavior.
MLopez-Ibanez Jan 3, 2025
df9d681
* scripts/generate-options.R: If vignettes is missing, use desriptio…
MLopez-Ibanez Jan 4, 2025
faac0c9
New scenario option cappingAfterFirstTest.
MLopez-Ibanez Jan 4, 2025
dce80ba
* scripts: Avoid trailing whitespace in generated files.
MLopez-Ibanez Jan 5, 2025
c3fc0a1
Lots of minor edits.
MLopez-Ibanez Jan 5, 2025
02a8e8c
Prepare for 4.2 release
MLopez-Ibanez Jan 6, 2025
d22ebba
* vignettes/irace-package.Rnw: Fix empty plot.
MLopez-Ibanez Jan 6, 2025
4cc6a1a
* R/race.R: Choose the test function at the start of the race.
MLopez-Ibanez Jan 6, 2025
20cb922
* R/parameterAnalysis.R (getConfigurationById): use match instead of…
MLopez-Ibanez Jan 7, 2025
2d19a54
* vignettes/irace-package.Rnw: Mention Julia.
MLopez-Ibanez Jan 9, 2025
0f25dcb
* DESCRIPTION: Still in development.
MLopez-Ibanez Jan 10, 2025
0126731
* R/parameters.R: minor edit.
MLopez-Ibanez Jan 10, 2025
551643d
* R/readConfiguration.R: edit comment.
MLopez-Ibanez Jan 10, 2025
5493cbd
* R/irace.R: Update message to be consistent with similar ones.
MLopez-Ibanez Jan 10, 2025
0be7d5f
* R/main.R: update copyright years.
MLopez-Ibanez Jan 10, 2025
2d72b98
Many improvements to ablation.
MLopez-Ibanez Jan 11, 2025
ef2c9fe
* R/utils.R (get_log_clean_version): Handle unknown version.
MLopez-Ibanez Jan 11, 2025
8f10fff
* R/configurations.R (configurations_print): Handle data.table.
MLopez-Ibanez Jan 11, 2025
bfb2f47
Fix bug in sampleSobol.
MLopez-Ibanez Jan 12, 2025
3e196d4
Use correct type for NA values and use set() instead of [.data.table …
MLopez-Ibanez Jan 12, 2025
bec0cb8
* R/generation.R: Use set instead of :=
MLopez-Ibanez Jan 20, 2025
9ba10f1
Update whereami.c and whereami.h to https://github.com/gpakosz/wherea…
MLopez-Ibanez Jan 24, 2025
64cf031
* src/iracebin/irace.h. Better handling of paths in Windows. Fixes #79.
MLopez-Ibanez Jan 23, 2025
cc7ba0d
* Makefile: Use compact-vignettes=both in check_win().
MLopez-Ibanez Jan 27, 2025
c69ea6a
* vignettes/irace-package.bib: Add missing entries.
MLopez-Ibanez Jan 27, 2025
25fd487
Prepare for 4.2 release.
MLopez-Ibanez Jan 27, 2025
c9d441b
Regenerate examples.
MLopez-Ibanez Jan 27, 2025
5743f98
* src/iracebin/whereami.c: Handle WebAssembly.
MLopez-Ibanez Jan 29, 2025
defcb7e
The ACOTSP example in the user-guide now uses the ACOTSPQAP code and …
MLopez-Ibanez Feb 5, 2025
b50b134
* NEWS.md: Prepare to 4.2.
MLopez-Ibanez Feb 10, 2025
cc590e8
Bump to development version.
MLopez-Ibanez Feb 12, 2025
8c2dd55
* scripts/irace_options.json (debugLevel): Mention valid values.
MLopez-Ibanez Feb 11, 2025
04bb241
* vignettes/irace-package.Rnw: ACOTSPQAP does not support --version.
MLopez-Ibanez Feb 12, 2025
f4f7c1e
* R/cluster.R: More compact debug output.
MLopez-Ibanez Feb 14, 2025
46f3811
* R/race-wrapper(parse_output): Nicer verbose output.
MLopez-Ibanez Feb 14, 2025
fb93971
Merge
rmartinsanta Feb 27, 2025
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
10 changes: 6 additions & 4 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.+~
BUGS
DEVEL-README
DEVEL-README.md
\.Rhistory$
Expand All @@ -25,14 +26,15 @@ DEVEL-README.md
^TUNE.*
^\.git$
^\.github$
^\.pre-commit-config\.yaml$
^check-reverse
^codecov\.yml$
^cran-comments.md$
^devel-examples
^devel-tests
^dist\.sh$
^doc$
^docs$
^devel-examples
^git_version$
^hooks/hook-evaluate
^hooks/hook-run
Expand All @@ -47,10 +49,10 @@ DEVEL-README.md
^revdep$
^scenario\.txt$
^scripts
^src/iracebin/irace$
^src/iracebin/irace.exe$
^src/iracebin/ablation$
^src/iracebin/ablation.exe$
^src/iracebin/irace$
^src/iracebin/irace.exe$
^src/iracebin/irace2pyimp$
^src/iracebin/irace2pyimp.exe$
^svn_version$
Expand All @@ -73,5 +75,5 @@ DEVEL-README.md
^vignettes/figure
^vignettes/optbib
^web
_snaps
_pkgdown\.yml$
_snaps
4 changes: 2 additions & 2 deletions .Rinstignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
vignettes/section/irace-options.tex
^GenericWrapper4AC
\.github
^GenericWrapper4AC
_snaps
vignettes/section/irace-options.tex
56 changes: 32 additions & 24 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ name: R-CMD-check
concurrency:
group: ${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
_R_CHECK_FORCE_SUGGESTS_: false
Expand All @@ -29,13 +29,12 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-22.04, windows-latest, macos-13, macos-14 ]
r: [ release ]
os: [ windows-latest, macos-13, macos-14 ]
r: [ release, 4.0 ]
include:
# Use 4.0 to check with rtools40's older compiler
- { os: windows-latest, r: '4.0' }
# Minimum supported version.
- {os: ubuntu-20.04, r: '4.0'}
# 4.0 is the minimum supported version.
- { os: ubuntu-20.04, r: '4.0'}
- { os: ubuntu-22.04, r: 'release' }
# Use latest ubuntu to make it easier to install dependencies
- { os: ubuntu-24.04, r: 'devel', http-user-agent: 'release' }

Expand All @@ -53,7 +52,7 @@ jobs:
- name: "[Linux] Install openmpi"
if: runner.os == 'Linux'
run: sudo apt-get update -y && sudo apt install -y libopenmpi-dev

- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.r }}
Expand All @@ -77,7 +76,7 @@ jobs:
needs: check
cache-version: 1
install-pandoc: true

- uses: r-lib/actions/setup-r-dependencies@v2
if: runner.os == 'macOS'
with:
Expand All @@ -88,22 +87,22 @@ jobs:
needs: check
cache-version: 1
install-pandoc: true

- name: Check (as CRAN)
env:
NOT_CRAN: false
uses: r-lib/actions/check-r-package@v2
with:
args: 'c("--no-manual", "--as-cran")'
build_args: 'c("--compact-vignettes=gs+qpdf")'

- name: Check
env:
NOT_CRAN: true
uses: r-lib/actions/check-r-package@v2
with:
args: 'c("--no-manual", "--run-donttest", "--timings")'

- name: Show testthat output
if: failure()
run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true
Expand All @@ -112,7 +111,7 @@ jobs:
coverage:
needs: R-CMD-check
name: Coverage
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
continue-on-error: true
timeout-minutes: 30
env:
Expand All @@ -123,16 +122,17 @@ jobs:

- uses: r-lib/actions/setup-r@v2
with:
r-version: release
use-public-rspm: true

- uses: r-lib/actions/setup-tinytex@v2-branch

- name: Install additional LaTeX packages
run: tlmgr install ${{ env.LATEX_PACKAGES }}

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::covr, mlr=?ignore, Rmpi=?ignore, local::.
extra-packages: any::covr, any::xml2, mlr=?ignore, Rmpi=?ignore, local::.
needs: coverage
install-pandoc: true

Expand All @@ -143,21 +143,29 @@ jobs:
run: |
options(covr.fix_parallel_mcexit = TRUE)
coverage <- covr::package_coverage(type = "all",
quiet = FALSE, clean = FALSE,
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package"),
commentDonttest = FALSE)
quiet = FALSE, clean = FALSE,
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package"),
commentDonttest = FALSE)
print(coverage)
covr::codecov(coverage = coverage)
covr::to_cobertura(coverage)
#covr::codecov(coverage = coverage)
shell: Rscript {0}


- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: ${{ github.event_name != 'pull_request' && true || false }}
file: ./cobertura.xml
plugin: noop
disable_search: true
token: ${{ secrets.CODECOV_TOKEN }}

- name: Show testthat output
if: always()
run: |
## --------------------------------------------------------------------
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash

- name: Show failures
if: failure()
run: |
Expand All @@ -167,7 +175,7 @@ jobs:

- name: Upload test results
if: failure()
uses: actions/upload-artifact@main
uses: actions/upload-artifact@v4
with:
name: coverage-test-failures
path: ${{ runner.temp }}/package
Expand All @@ -193,7 +201,7 @@ jobs:
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-tinytex@v2-branch

- name: Install additional LaTeX packages
Expand All @@ -204,7 +212,7 @@ jobs:
extra-packages: any::pkgdown, mlr=?ignore, Rmpi=?ignore, any::remotes
needs: website
install-pandoc: true

- name: Install package with vignettes
run: |
remotes::install_local(".", build = TRUE, upgrade = "never", force = TRUE, build_opts = c("--no-resave-data"), build_manual = TRUE, build_vignettes = TRUE)
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/revdepcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
workflow_dispatch:
inputs:
which:
type: choice
description: Which dependents to check
options:
- strong
- most

name: Reverse dependency check

jobs:
revdep_check:
name: Reverse check ${{ inputs.which }} dependents
uses: r-devel/recheck/.github/workflows/recheck.yml@v1
with:
which: ${{ inputs.which }}
subdirectory: '' # set if your R package is in a subdir of the git repo
repository: '' # set to recheck an R package from another git repo
ref: '' # set to recheck a custom tag/branch from another repo
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ docs/
/vignettes/*.bbl
/vignettes/*.fls
/vignettes/*.synctex*
/vignettes/irace-options.tex
/vignettes/section/irace-options.tex
/vignettes/irace-package.tex
/vignettes/irace-package.pdf
/vignettes/irace-package.R
Expand Down
22 changes: 22 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
repos:
- repo: https://github.com/lorenzwalthert/precommit
rev: v0.4.3.9003
hooks:
- id: parsable-R
- id: no-browser-statement
- id: no-debug-statement
- id: deps-in-desc
exclude: '\.Rnw$'
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: check-yaml
- id: check-merge-conflict
args: [ --assume-in-merge ]
- id: check-added-large-files
args: ['--maxkb=200']
- id: file-contents-sorter
files: '^(\.Rbuildignore|\.Rinstignore)$'
- id: end-of-file-fixer
exclude: '(\.Rd|python/doc/source/reference/.*|test-doctest-.*)'
14 changes: 7 additions & 7 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Description: Iterated race is an extension of the Iterated F-race method for
settings given a set of instances of an optimization problem.
M. López-Ibáñez, J. Dubois-Lacoste, L. Pérez Cáceres, T. Stützle,
and M. Birattari (2016) <doi:10.1016/j.orp.2016.09.002>.
Version: 3.9.0.9000
Version: 4.2.0.9000
Authors@R: c(person("Manuel", "López-Ibáñez", role = c("aut", "cre"),
email = "manuel.lopez-ibanez@manchester.ac.uk",
comment = c(ORCID = "0000-0001-9974-1295")),
Expand All @@ -20,17 +20,17 @@ Authors@R: c(person("Manuel", "López-Ibáñez", role = c("aut", "cre"),
person("Nguyen", "Dang", role = "ctb", email = "nttd@st-andrews.ac.uk"))
Depends: R (>= 4.0.0)
Imports:
stats,
utils,
R6,
codetools,
compiler,
fs,
data.table (>= 1.15.0),
matrixStats,
R6,
fs,
matrixStats (>= 1.4.1),
spacefillr,
stats,
utils,
withr
Suggests:
ParamHelpers,
Rmpi (>= 0.6.0),
highr,
knitr,
Expand Down
24 changes: 13 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ help:
@echo "install install the package"
@echo "build build the package as a tar.gz file"
@echo "check build the package and run 'R CMD check'"
@echo "check TEST=x run test called test-x.R"
@echo "test run all tests under testthat"
@echo "test TEST=x run test called test-x.R"
@echo "rsync copy the package and install it on $(RNODE)"
@echo "cran build the package and run 'R CMD check --as-cran'"
@echo "winbuild submit the package to the WINDOWS builder service"
Expand All @@ -47,12 +48,13 @@ install: build
cd $(BINDIR) && R CMD INSTALL $(INSTALL_FLAGS) $(PACKAGE)_$(PACKAGEVERSION).tar.gz

quick-install:
cd $(BINDIR) && R CMD build $(BUILD_FLAGS) $(NO_BUILD_VIGNETTES) $(PACKAGEDIR) && R CMD INSTALL $(INSTALL_FLAGS) $(PACKAGE)_$(PACKAGEVERSION).tar.gz
R CMD INSTALL $(INSTALL_FLAGS) --no-docs $(PACKAGEDIR)

genoptions: R/irace-options.R vignettes/section/irace-options.tex

R/irace-options.R vignettes/section/irace-options.tex: scripts/irace_options.json scripts/generate-options.R
cd scripts && R --slave -f generate-options.R && cd ..
touch R/irace-options.R vignettes/section/irace-options.tex

gendoc:
$(Reval) 'devtools::document()'
Expand All @@ -61,7 +63,7 @@ pkgdown: gendoc
$(Reval) 'pkgdown::build_site()'
@$(MAKE) clean

build:
build:
@$(MAKE) genoptions
$(MAKE) releasevignette
@if grep -q @ $(PACKAGEDIR)/vignettes/$(PACKAGE)-package.bib; then true; \
Expand Down Expand Up @@ -107,18 +109,18 @@ releasecheck: cran
$(MAKE) macbuild

check: build
ifdef TEST
_R_CHECK_FORCE_SUGGESTS_=false NOT_CRAN=true $(Reval) 'devtools::test(filter="$(TEST)", stop_on_failure = TRUE)'
else
test -d ./GenericWrapper4AC/build || (cd GenericWrapper4AC && python3 setup.py install --user)
cd $(BINDIR) && (_R_CHECK_FORCE_SUGGESTS_=false NOT_CRAN=true R CMD check --run-donttest --timings --install-args="$(INSTALL_FLAGS)" $(PACKAGE)_$(PACKAGEVERSION).tar.gz; cat $(PACKAGE).Rcheck/$(PACKAGE)-Ex.timings)
endif

# Using testthat nicer output
# Using testthat nicer output.
test: clean
ifdef TEST
_R_CHECK_FORCE_SUGGESTS_=false NOT_CRAN=true $(Reval) 'devtools::test(filter="$(TEST)", stop_on_failure = TRUE)'
else
_R_CHECK_FORCE_SUGGESTS_=false NOT_CRAN=true $(Reval) 'testthat::test_local(stop_on_failure = TRUE)'
endif

clean:
clean:
cd $(PACKAGEDIR) && (./cleanup; make -C src -f Makevars clean)

## FIXME: building the vignettes is a bit complicated and sometimes fails.
Expand Down Expand Up @@ -178,8 +180,8 @@ macbuild: releasebuild
$(Reval) "rhub::check(platform='macos-highsierra-release-cran', $(RHUB_COMMON_ARGS))"

winbuild: releasebuild
$(Reval) "devtools::check_win_release()"
$(Reval) "devtools::check_win_devel()"
$(Reval) "devtools::check_win_release(args = '--compact-vignettes=both')"
$(Reval) "devtools::check_win_devel(args = '--compact-vignettes=both')"
$(Reval) "rhub::check_on_windows($(RHUB_COMMON_ARGS))"

examples: quick-install
Expand Down
3 changes: 1 addition & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,9 @@ export(target_runner_default)
export(testConfigurations)
export(testing_fromfile)
export(testing_fromlog)
import(compiler)
import(data.table)
import(matrixStats)
import(stats)
import(utils)
import(withr)
importFrom(R6,R6Class)
importFrom(graphics,abline)
Expand All @@ -79,3 +77,4 @@ importFrom(graphics,plot)
importFrom(graphics,points)
importFrom(graphics,strwidth)
importFrom(spacefillr,generate_sobol_set)
importFrom(utils,str)
Loading
Loading