Skip to content

Commit

Permalink
Release 0.7.1 (#101)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
sebffischer authored Mar 14, 2023
1 parent a27ec01 commit 44a4f19
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: mlr3oml
Title: Connector Between 'mlr3' and 'OpenML'
Version: 0.7.0
Version: 0.7.1
Authors@R:c(
person("Michel", "Lang", , "michellang@gmail.com", role = "aut",
comment = c(ORCID = "0000-0001-9754-0393")),
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# mlr3oml 0.7.1

* Fixed argument names of S3 method for `as_data_backend` to comply with new CRAN checks

# mlr3oml 0.7.0

* feature: Add argument `task_type` to function `list_oml_tasks()`.
Expand Down
4 changes: 2 additions & 2 deletions R/OMLRun.R
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ as_task.OMLRun = function(x, ...) {

#' @importFrom mlr3 as_data_backend
#' @export
as_data_backend.OMLRun = function(x, primary_key = NULL, ...) {
as_data_backend(x$data, primary_key = primary_key, ...)
as_data_backend.OMLRun = function(data, primary_key = NULL, ...) {
as_data_backend(data$data, primary_key = primary_key, ...)
}

#' @importFrom mlr3 as_resampling
Expand Down

0 comments on commit 44a4f19

Please sign in to comment.