Skip to content

Commit 44a4f19

Browse files
authored
Release 0.7.1 (#101)
* fix: correct argument names for S3 generic CRAN issued a new policy. The first argument of S3 methods must coincide with the generic Version: 0.7.0 Check: S3 generic/method consistency Result: WARN as_data_backend: function(data, primary_key, ...) as_data_backend.OMLRun: function(x, primary_key, ...) See section ‘Generic functions and methods’ in the ‘Writing R Extensions’ manual. * fix: rename variable in function
1 parent a27ec01 commit 44a4f19

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: mlr3oml
22
Title: Connector Between 'mlr3' and 'OpenML'
3-
Version: 0.7.0
3+
Version: 0.7.1
44
Authors@R:c(
55
person("Michel", "Lang", , "[email protected]", role = "aut",
66
comment = c(ORCID = "0000-0001-9754-0393")),

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# mlr3oml 0.7.1
2+
3+
* Fixed argument names of S3 method for `as_data_backend` to comply with new CRAN checks
4+
15
# mlr3oml 0.7.0
26

37
* feature: Add argument `task_type` to function `list_oml_tasks()`.

R/OMLRun.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ as_task.OMLRun = function(x, ...) {
222222

223223
#' @importFrom mlr3 as_data_backend
224224
#' @export
225-
as_data_backend.OMLRun = function(x, primary_key = NULL, ...) {
226-
as_data_backend(x$data, primary_key = primary_key, ...)
225+
as_data_backend.OMLRun = function(data, primary_key = NULL, ...) {
226+
as_data_backend(data$data, primary_key = primary_key, ...)
227227
}
228228

229229
#' @importFrom mlr3 as_resampling

0 commit comments

Comments
 (0)