From c1348442ec55f111e75430cd6a2ba3d4b120477e Mon Sep 17 00:00:00 2001 From: wlandau Date: Fri, 12 May 2023 13:38:09 -0400 Subject: [PATCH] change colunm name in tar_crew() --- R/class_crew.R | 4 ++-- R/tar_crew.R | 3 +-- man/tar_crew.Rd | 3 +-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/R/class_crew.R b/R/class_crew.R index 485d2bbea..9a802aa24 100644 --- a/R/class_crew.R +++ b/R/class_crew.R @@ -275,14 +275,14 @@ crew_summary <- function(controller) { worker = summary$worker_index, launches = summary$worker_launches, seconds = summary$popped_seconds, - tasks = summary$popped_tasks + targets = summary$popped_tasks ) } database_crew <- function(path_store) { database_init( path = file.path(path_meta_dir(path_store), "crew"), - header = c("controller", "worker", "launches", "seconds", "tasks") + header = c("controller", "worker", "launches", "seconds", "targets") ) } diff --git a/R/tar_crew.R b/R/tar_crew.R index 040ca08be..42575f20c 100644 --- a/R/tar_crew.R +++ b/R/tar_crew.R @@ -9,8 +9,7 @@ #' * `worker`: worker index in the controller. #' * `launches`: number of times the worker was launched. #' * `seconds`: number of seconds the worker spent running tasks. -#' * `tasks`: number of tasks the worker completed -#' and handed over to `targets`. +#' * `targets`: number of targets the worker completed and delivered. #' @inheritParams tar_validate #' @examples #' if (identical(Sys.getenv("TAR_EXAMPLES"), "true")) { # for CRAN diff --git a/man/tar_crew.Rd b/man/tar_crew.Rd index 75b949c92..a48fae6fd 100644 --- a/man/tar_crew.Rd +++ b/man/tar_crew.Rd @@ -23,8 +23,7 @@ A data frame one row per \code{crew} worker and the following columns: \item \code{worker}: worker index in the controller. \item \code{launches}: number of times the worker was launched. \item \code{seconds}: number of seconds the worker spent running tasks. -\item \code{tasks}: number of tasks the worker completed -and handed over to \code{targets}. +\item \code{targets}: number of targets the worker completed and delivered. } } \description{