Skip to content

Commit

Permalink
fixed warning in build check
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel J. Fernandes committed Apr 12, 2024
1 parent 1d8aaa8 commit f4120a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/mage_ma_single.R
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ mage_ma_single <- function(data,

## 0. Calculates MAGE on 1 segment of CGM trace
mage_atomic <- function(.data) {
nmeasurements = list_cross = types = count = crosses = num_extrema = minmax = indexes = s1 = s2 = standardD = heights = nadir2peak = idx = peak_or_nadir = plus_or_minus = first_excursion = NULL
nmeasurements = list_cross = types = count = crosses = num_extrema = minmax = indexes = s1 = s2 = standardD = heights = nadir2peak = idx = peak_or_nadir = plus_or_minus = first_excursion = max_direction = NULL
rm(list=c('nmeasurements', 'list_cross', 'types', 'count', 'crosses', 'num_extrema', 'minmax', 'indexes', 's1', 's2', 'standardD', 'heights', 'nadir2peak', 'idx', 'peak_or_nadir', 'plus_or_minus', 'first_excursion'))

if (all(is.na(.data$gl))) {
Expand Down Expand Up @@ -247,7 +247,7 @@ mage_ma_single <- function(data,
}

## 1. Preprocessing
MA_Short = MA_Long = DELTA_SHORT_LONG = TP = id = .xmin = .xmax = gap = x = y = xend = yend = hours = weight = idx = peak_or_nadir = plus_or_minus = first_excursion = NULL
MA_Short = MA_Long = DELTA_SHORT_LONG = TP = id = .xmin = .xmax = gap = x = y = xend = yend = hours = weight = idx = peak_or_nadir = plus_or_minus = first_excursion = max_direction = NULL
rm(list = c("MA_Short", "MA_Long", "DELTA_SHORT_LONG", "TP", ".xmin", ".xmax", "id", "gap", "x", "y", "xend", "yend", "hours", "weight", "idx", "peak_or_nadir", "plus_or_minus", "first_excursion"))

data = check_data_columns(data)
Expand Down

0 comments on commit f4120a8

Please sign in to comment.