Thank you so much for your interest in my issue. I've attached my R script, the link to download raw data file, and a photo of the error message.
Juan Pablo.
library(GGIR)
# General parameters
GGIR(datadir = "~/Desktop/GGIR/EyeFit/Pendientes/",
outputdir = "~/Desktop/GGIR/EyeFit/OUTPUT_x/",
studyname="EyeFit",
desiredtz = "Chile/Continental",
mode = (1:5),
# Part 2 parameters
strategy = 1,
ndayswindow=7,
hrs.del.start = 0,
hrs.del.end = 0,
maxdur = 7,
qwindow=c(0, 24),
windowsizes = c(5,900,3600),
qlevels = c((24-2) /24, # MI20
(24-1)/24, #M60
(24-0.5) /24, #M30
(24-0.25) /24, #M15
(1440-5)/3440), #M05
ilevels = c(0,50,100,200,8000),
iglevels = 1,
mvpathreshold =c(100.6),
# Part 3+4 parameters
def.noc.sleep = 1,
HASPT.algo ="HDZA",
do.visual = TRUE,
includenightcrit = 16,
excludefirst.part4 = FALSE,
excludelast.part4 = FALSE,
# Part 5 parameters
# Physical activity and inactivity threshold / Cut-points Hildebrand 2014; Hildebrand 2016
do.enmo = TRUE,
acc.metric = "ENMO",
threshold.lig = c(44.8), threshold.mod = c(100.6),threshold.vig = c(428.8),
# Bout durations
boutdur.in = c(10,20,30), boutdur.lig = c(10), boutdur.mvpa = c(1, 5, 10),
#Fraction of a bout that need to meet thresholds
boutcriter = 0.8,
boutcriter.in = 0.9, boutcriter.lig = 0.8, boutcriter.mvpa = 0.8,
# Data cleaning
includedaycrit.part5 = 2/3,
# Report generation
week_weekend_aggregate.part5 = FALSE, #Poner TRUE si necesito saber sobre solo la semana
do.report=c(2, 4, 5))