From 95f4f889da6214ec8c3c2d95c946a8b8484db4b5 Mon Sep 17 00:00:00 2001 From: jan Date: Mon, 6 Mar 2023 11:04:40 +0100 Subject: [PATCH] adding return --- R/box_utils.R | 1 + R/measurement.R | 4 ++-- R/measurement_utils.R | 1 + man/osem_as_measurements.Rd | 3 +++ man/osem_as_sensebox.Rd | 3 +++ man/osem_measurements.Rd | 4 ++-- 6 files changed, 12 insertions(+), 4 deletions(-) diff --git a/R/box_utils.R b/R/box_utils.R index 9d59c2c..d3ef5ac 100644 --- a/R/box_utils.R +++ b/R/box_utils.R @@ -73,6 +73,7 @@ summary.sensebox = function(object, ...) { #' Converts a foreign object to a sensebox data.frame. #' @param x A data.frame to attach the class to +#' @return data.frame of class \code{sensebox} #' @export osem_as_sensebox = function(x) { ret = as.data.frame(x) diff --git a/R/measurement.R b/R/measurement.R index 0ae574d..c56ac63 100644 --- a/R/measurement.R +++ b/R/measurement.R @@ -99,7 +99,7 @@ osem_measurements.bbox = function (x, phenomenon, exposure = NA, from = NA, to = NA, columns = NA, ..., endpoint = osem_endpoint(), - progress = T, + progress = TRUE, cache = NA) { bbox = x environment() %>% @@ -137,7 +137,7 @@ osem_measurements.sensebox = function (x, phenomenon, exposure = NA, from = NA, to = NA, columns = NA, ..., endpoint = osem_endpoint(), - progress = T, + progress = TRUE, cache = NA) { boxes = x environment() %>% diff --git a/R/measurement_utils.R b/R/measurement_utils.R index a09a9bd..004abe8 100644 --- a/R/measurement_utils.R +++ b/R/measurement_utils.R @@ -16,6 +16,7 @@ print.osem_measurements = function (x, ...) { #' Converts a foreign object to an osem_measurements data.frame. #' @param x A data.frame to attach the class to. #' Should have at least a `value` and `createdAt` column. +#' @return data.frame of class \code{osem_measurements} #' @export osem_as_measurements = function(x) { ret = tibble::as_tibble(x) diff --git a/man/osem_as_measurements.Rd b/man/osem_as_measurements.Rd index 2db6dd5..fbd0109 100644 --- a/man/osem_as_measurements.Rd +++ b/man/osem_as_measurements.Rd @@ -10,6 +10,9 @@ osem_as_measurements(x) \item{x}{A data.frame to attach the class to. Should have at least a `value` and `createdAt` column.} } +\value{ +data.frame of class \code{osem_measurements} +} \description{ Converts a foreign object to an osem_measurements data.frame. } diff --git a/man/osem_as_sensebox.Rd b/man/osem_as_sensebox.Rd index 9d13a07..af50c39 100644 --- a/man/osem_as_sensebox.Rd +++ b/man/osem_as_sensebox.Rd @@ -9,6 +9,9 @@ osem_as_sensebox(x) \arguments{ \item{x}{A data.frame to attach the class to} } +\value{ +data.frame of class \code{sensebox} +} \description{ Converts a foreign object to a sensebox data.frame. } diff --git a/man/osem_measurements.Rd b/man/osem_measurements.Rd index 18feb4f..7d64a6f 100644 --- a/man/osem_measurements.Rd +++ b/man/osem_measurements.Rd @@ -20,7 +20,7 @@ osem_measurements(x, ...) columns = NA, ..., endpoint = osem_endpoint(), - progress = T, + progress = TRUE, cache = NA ) @@ -33,7 +33,7 @@ osem_measurements(x, ...) columns = NA, ..., endpoint = osem_endpoint(), - progress = T, + progress = TRUE, cache = NA ) }