Skip to content

Commit 559519d

Browse files
be-marcpat-s
andauthored
fix: mlr3 1.0.0 compatibility (#242)
* compatibility: mlr3 1.0.0 * ... * ... * use r-lib/actions * chore: use rspm --------- Co-authored-by: pat-s <[email protected]>
1 parent ccdc26d commit 559519d

25 files changed

+163
-210
lines changed

.github/workflows/pkgdown.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# pkgdown workflow of the mlr3 ecosystem v0.1.0
2+
# https://github.com/mlr-org/actions
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
release:
11+
types:
12+
- published
13+
workflow_dispatch:
14+
15+
name: pkgdown
16+
17+
jobs:
18+
pkgdown:
19+
runs-on: ubuntu-latest
20+
21+
concurrency:
22+
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
23+
env:
24+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- uses: r-lib/actions/setup-pandoc@v2
29+
30+
- uses: r-lib/actions/setup-r@v2
31+
with:
32+
use-public-rspm: true
33+
34+
- uses: r-lib/actions/setup-r-dependencies@v2
35+
with:
36+
extra-packages: any::pkgdown, local::.
37+
needs: website
38+
39+
- name: Install template
40+
run: pak::pkg_install("mlr-org/mlr3pkgdowntemplate")
41+
shell: Rscript {0}
42+
43+
- name: Build site
44+
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
45+
shell: Rscript {0}
46+
47+
- name: Deploy
48+
if: github.event_name != 'pull_request'
49+
uses: JamesIves/[email protected]
50+
with:
51+
clean: false
52+
branch: gh-pages
53+
folder: docs

.github/workflows/r-cmd-check-old-paradox-new-other.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
- uses: r-lib/actions/setup-r@v2
3939
with:
4040
r-version: ${{ matrix.config.r }}
41+
use-public-rspm: true
4142

4243
- uses: r-lib/actions/setup-r-dependencies@v2
4344
with:

.github/workflows/r-cmd-check-paradox.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
- uses: r-lib/actions/setup-r@v2
3939
with:
4040
r-version: ${{ matrix.config.r }}
41+
use-public-rspm: true
4142

4243
- uses: r-lib/actions/setup-r-dependencies@v2
4344
with:

.github/workflows/r-cmd-check.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# r cmd check workflow of the mlr3 ecosystem v0.1.0
2+
# https://github.com/mlr-org/actions
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
branches:
10+
- main
11+
12+
name: r-cmd-check
13+
14+
jobs:
15+
r-cmd-check:
16+
runs-on: ${{ matrix.config.os }}
17+
18+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
19+
20+
env:
21+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
22+
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
config:
27+
- {os: ubuntu-latest, r: 'devel'}
28+
- {os: ubuntu-latest, r: 'release'}
29+
30+
steps:
31+
- uses: actions/checkout@v4
32+
33+
- uses: r-lib/actions/setup-r@v2
34+
with:
35+
r-version: ${{ matrix.config.r }}
36+
use-public-rspm: true
37+
38+
- uses: r-lib/actions/setup-r-dependencies@v2
39+
with:
40+
extra-packages: any::rcmdcheck
41+
needs: check
42+
43+
- uses: r-lib/actions/check-r-package@v2

.github/workflows/tic.yml

Lines changed: 0 additions & 108 deletions
This file was deleted.

.github/workflows/update-tic.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# R specific hooks: https://github.com/lorenzwalthert/precommit
33
repos:
44
- repo: https://github.com/lorenzwalthert/precommit
5-
rev: v0.4.3.9003
5+
rev: v0.4.3.9012
66
hooks:
77
- id: style-files
88
args: [--style_pkg=styler.mlr, --style_fun=mlr_style]

R/ResamplingRepeatedSpCVBlock.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ ResamplingRepeatedSpCVBlock = R6Class("ResamplingRepeatedSpCVBlock",
180180
self$instance = instance
181181
self$task_hash = task$hash
182182
self$task_nrow = task$nrow
183+
self$task_row_hash = task$row_hash
183184
invisible(self)
184185
}
185186
),

R/ResamplingRepeatedSpCVCoords.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ ResamplingRepeatedSpCVCoords = R6Class("ResamplingRepeatedSpCVCoords",
8989
self$instance = instance
9090
self$task_hash = task$hash
9191
self$task_nrow = task$nrow
92+
self$task_row_hash = task$row_hash
9293
invisible(self)
9394
}
9495
),

R/ResamplingRepeatedSpCVDisc.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ ResamplingRepeatedSpCVDisc = R6Class("ResamplingRepeatedSpCVDisc",
104104

105105
self$task_hash = task$hash
106106
self$task_nrow = task$nrow
107+
self$task_row_hash = task$row_hash
107108
invisible(self)
108109
}
109110
),

0 commit comments

Comments
 (0)