Skip to content

Commit

Permalink
docs: dont use namespace prefix in examples for {data.table}
Browse files Browse the repository at this point in the history
  • Loading branch information
m-muecke committed Jan 18, 2025
1 parent 6f76a47 commit a2145ed
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion R/TaskFcst.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
#' @template seealso_task
#' @export
#' @examplesIf requireNamespace("tsbox", quietly = TRUE)
#' library(data.table)
#' airpassengers = tsbox::ts_dt(AirPassengers)
#' data.table::setnames(airpassengers, c("date", "passengers"))
#' setnames(airpassengers, c("date", "passengers"))
#' task = as_task_fcst(airpassengers, target = "passengers", order = "date")
#' task$task_type
#' task$formula()
Expand Down
3 changes: 2 additions & 1 deletion R/as_task_fcst.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
#' @return [TaskFcst].
#' @export
#' @examplesIf requireNamespace("tsbox", quietly = TRUE)
#' library(data.table)
#' airpassengers = tsbox::ts_dt(AirPassengers)
#' data.table::setnames(airpassengers, c("date", "passengers"))
#' setnames(airpassengers, c("date", "passengers"))
#' as_task_fcst(airpassengers, target = "passengers", order = "date")
as_task_fcst = function(x, ...) {
UseMethod("as_task_fcst")
Expand Down
3 changes: 2 additions & 1 deletion man/TaskFcst.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion man/as_task_fcst.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a2145ed

Please sign in to comment.