Error in Generating Visual Report

133 views
Skip to first unread message

Jeffrey Pagaduan

unread,
Nov 3, 2021, 7:44:56 PM11/3/21
to R package GGIR
Hello, 

I am running a 24-hr accelerometer data and encountered this error when generating visual report: 

Warning message:
In readRDS(path) : error reading  from connection

I used this script:
library(GGIR)
g.shell.GGIR(
  mode=c(1,2,3,4,5),
  datadir="C:/Users/jp30/Desktop/Data",
  outputdir="C:/Users/jp30/Desktop/output",
  do.report=c(2,4,5),
  do.imp=TRUE,
  windowsizes = c(5,900,3600),
  do.enmo = TRUE,
  do.anglez = TRUE,
  #=====================
  # Part 2
  #=====================
  strategy = 1,
  hrs.del.start = 0,          hrs.del.end = 0,
  maxdur = 1,                 includedaycrit = 16,
  qwindow=c(0,24),
  mvpathreshold =c(100),
  bout.metric = 4,
  excludefirstlast = FALSE,
  includenightcrit = 16,
  #=====================
  # Part 3 + 4
  #=====================
  anglethreshold = 5, 
  timethreshold = 5, 
  ignorenowear = TRUE,
  def.noc.sleep = 1,
  outliers.only = TRUE,
  criterror = 4,
  do.visual = TRUE,
  #=====================
  # Part 5
  #=====================
  threshold.lig = c(30), threshold.mod = c(100),  threshold.vig = c(400),
  boutcriter = 0.8,      boutcriter.in = 0.9,     boutcriter.lig = 0.8,
  boutcriter.mvpa = 0.8, boutdur.in = c(1,10,30), boutdur.lig = c(1,10),
  boutdur.mvpa = c(1),
  includedaycrit.part5 = 2/3,
  #=====================
  # Visual report
  #=====================
  timewindow = c("WW"),
  visualreport=TRUE)

Thanks for your help in advance.

Vincent van Hees

unread,
Nov 9, 2021, 8:00:50 AM11/9/21
to Jeffrey Pagaduan, R package GGIR
Probably issue with your working directory, see:
and
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
--
You received this message because you are subscribed to the Google Groups "R package GGIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to RpackageGGIR...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/RpackageGGIR/0e6c71b6-0f4f-4aee-9fca-ada0ad60bf2an%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages