Hi,
I am replying to this thread because I have the same error and want to check if it is to do with the visual report or if there is something else I am missing.
I have processed 229 CWA files (from Axivity AX3 devices, configured via omGUI to record for 7 days continuously at 100Hz, range +/-8g). However, many of our participants are not wearing the accelerometers at night (this is an issue which I am trying to address!).
Of these, all 229 appear in the part2_summary, only 187 appear in part4_summary_sleep_cleaned, and 198 appear in part5_personsummary_MM_L40M100V. I think I understand why more are in part 5 (because I need 16 valid hours in 24 hours to run part 4, but only 2/3 of the waking day for part 5, so if they do not wear at night we can still do part 5). There are visual reports for 213 of them, and old reports for 32 of them.
The errors I get in the console output are:
Error in 1:max(summarysleep_tmp$night) :
result would be too long a vector
In addition: Warning messages:
1: Both part6CR and part6HCA are set to FALSE by which there is not analysis to be run in part 6.
2: Both part6CR and part6HCA are set to FALSE by which there is not analysis to be run in part 6.
3: Both part6CR and part6HCA are set to FALSE by which there is not analysis to be run in part 6.
4: In g.plot5(metadatadir = metadatadir, dofirstpage = params_output[["dofirstpage"]], :
Visual report not generated for 87178_0000020603.cwa because part 4 output was not available.
5: In g.plot5(metadatadir = metadatadir, dofirstpage = params_output[["dofirstpage"]], :
Visual report not generated for 87178_0000020694.cwa because part 4 output was not available.
6: In g.plot5(metadatadir = metadatadir, dofirstpage = params_output[["dofirstpage"]], :
Visual report not generated for 88786_0000020707.cwa because part 4 output was not available.
7: In max(summarysleep_tmp$night) :
no non-missing arguments to max; returning -Inf
My questions are:
1) What do the 'Error in 1:max(summarysleep_tmp$night) : result would be too long a vector' and '7: In max(summarysleep_tmp$night) : no non-missing arguments to max; returning -Inf' refer to? Are these related to the visual reports?
2) Why does it give warnings for 4 of the files not generating reports, and yet 16 do not have (new) visual reports?
3) Why are there visual reports for 213 of them, when only 187 have part 4?
I am not that concerned about having the visual reports, but what I am more worried about is me not understanding the process or the error warnings!
Many thanks,
Ben
For reference, I am using GGIR version 3.2.0 in R version 4.4.3 on macOS Sequoia 15.4.1. Here is my configuration:
library(GGIR)
GGIR(datadir="/Users/benedict/Downloads/BDM/CWA files/Data",
outputdir="/Users/benedict/Downloads/BDM/CWA files/Results",
mode = c(1,2,3,4,5),
studyname = "BDMIM",
idloc=1,
overwrite=TRUE,
do.parallel=TRUE,
windowsizes=c(5,900,3600),
strategy=1,
qlevels = c(1/3, #M1/3rd of the day
0.5, #Median
(24-2)/24, #M120
(24-1)/24, #M60
(24-0.5)/24, #M30
(24-0.25)/24, #M15
1395/1400 #M5 - these are all in the 'part 2' output
),
ilevels = c(0,40,100,400),
iglevels = 1,
mvpathreshold = c(40,100,400), #these are really LPA, MVPA, and VPA thresholds, but this will tell you time above each
def.noc.sleep=1,
HASPT.algo="HDCZA",
threshold.lig = 40,
threshold.mod = 100,
thrshold.vig = 400,
boutdur.in = c(10,20,30), #Bouts of inactivity in 10, 20, and 30minute durations
boutdur.lig = 10, #Bouts of light activity in 10 min bouts
boutdur.mvpa=c(1,5,10), #Bouts of MVPA in 1, 5, and 10 minute durations
boutcriter.mvpa = 0.8 #The fraction of a bout that needs to meet the thresholds
)