Skip to content

Commit

Permalink
fix deprecated message
Browse files Browse the repository at this point in the history
  • Loading branch information
mllg committed Aug 25, 2019
1 parent 16b2e9f commit ec8f9da
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions R/deprecated.R
Original file line number Diff line number Diff line change
@@ -1,59 +1,59 @@
#' @export
#' @rdname mlr_coercions
as_task.character = function(x, clone = FALSE) {
.Deprecated("tsk", package = "mlr3", old = "Automatic object creation from strings in `mlr3`")
.Deprecated("tsk", old = "Automatic object creation from strings in `mlr3`")
assert_string(x)
mlr_tasks$get(x)
}

#' @export
#' @rdname mlr_coercions
as_tasks.character = function(x, clone = FALSE) {
.Deprecated("tsk", package = "mlr3", old = "Automatic object creation from strings in `mlr3`")
.Deprecated("tsk", old = "Automatic object creation from strings in `mlr3`")
mlr_tasks$mget(x)
}

#' @rdname mlr_coercions
#' @export
as_learner.character = function(x, clone = FALSE) {
.Deprecated("lrn", package = "mlr3", old = "Automatic object creation from strings in `mlr3`")
.Deprecated("lrn", old = "Automatic object creation from strings in `mlr3`")
assert_string(x)
mlr_learners$get(x)
}

#' @export
#' @rdname mlr_coercions
as_learners.character = function(x, clone = FALSE) {
.Deprecated("lrn", package = "mlr3", old = "Automatic object creation from strings in `mlr3`")
.Deprecated("lrn", old = "Automatic object creation from strings in `mlr3`")
mlr_learners$mget(x)
}

#' @export
#' @rdname mlr_coercions
as_resampling.character = function(x, clone = FALSE) {
.Deprecated("rsmp", package = "mlr3", old = "Automatic object creation from strings in `mlr3`")
.Deprecated("rsmp", old = "Automatic object creation from strings in `mlr3`")
assert_string(x)
mlr_resamplings$get(x)
}

#' @export
#' @rdname mlr_coercions
as_resamplings.character = function(x, clone = FALSE) {
.Deprecated("rsmp", package = "mlr3", old = "Automatic object creation from strings in `mlr3`")
.Deprecated("rsmp", old = "Automatic object creation from strings in `mlr3`")
mlr_resamplings$mget(x)
}

#' @export
#' @rdname mlr_coercions
as_measure.character = function(x, task_type = NULL, clone = FALSE) {
.Deprecated("msr", package = "mlr3", old = "Automatic object creation from strings in `mlr3`")
.Deprecated("msr", old = "Automatic object creation from strings in `mlr3`")
assert_string(x)
mlr_measures$get(x)
}

#' @export
#' @rdname mlr_coercions
as_measures.character = function(x, task_type = NULL, clone = FALSE) {
.Deprecated("msr", package = "mlr3", old = "Automatic object creation from strings in `mlr3`")
.Deprecated("msr", old = "Automatic object creation from strings in `mlr3`")
mlr_measures$mget(x)
}

0 comments on commit ec8f9da

Please sign in to comment.