Error when installing an old package of GGIR

85 views
Skip to first unread message

Marcos Echevarría Polo

unread,
Oct 27, 2023, 8:43:05 AM10/27/23
to R package GGIR
When I try to install an old version of GGIR package (concretely version 2.8.2), RStudio report me this error: Error in install.packages : type == "both" cannot be used with 'repos = NULL'
What should I do?
Thanks for your time.

Vincent van Hees

unread,
Oct 27, 2023, 8:45:45 AM10/27/23
to Marcos Echevarría Polo, R package GGIR
Please share what you did that caused this message. This google group depends on voluntary efforts to help users, so the more detail you give the easier it is for others to help you.

Thanks, Vincent
------- 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/8f079cc3-dd96-4f6a-9180-3bbdb23191bbn%40googlegroups.com.

Marcos Echevarría Polo

unread,
Oct 30, 2023, 2:22:32 PM10/30/23
to R package GGIR
I need to analyze a commercial brand Axivity accelerometer. However, when using the programming code from the GGIR package with version 3.0-0, the software does not give me any results:
> library(GGIR)
> GGIR(mode=c(1,2,3,4,5),
+      datadir="entrada",
+      outputdir="salida",
+      do.report=c(2,4,5),
+      #=====================
+      # Part 2
+      #=====================
+      strategy = 1,
+      hrs.del.start = 0,          hrs.del.end = 0,
+      maxdur = 16,                 includedaycrit = 16,
+      qwindow=c(0,24),
+      mvpathreshold =c(100),
+      excludefirstlast = FALSE,
+      includenightcrit = 16,
+      #=====================
+      # Part 3 + 4
+      #=====================
+      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)

Checking that user has write access permission for directory specified by argument outputdir: Yes

   GGIR version: 3.0.0

   Do not forget to cite GGIR in your publications via a version number and
   Migueles et al. 2019 JMPB. doi: 10.1123/jmpb.2018-0063.
   See also: https://cran.r-project.org/package=GGIR/vignettes/GGIR.html#citing-ggir

   To make your research reproducible and interpretable always report:
     (1) Accelerometer brand and product name
     (2) How you configured the accelerometer
     (3) Study protocol and wear instructions given to the participants
     (4) GGIR version
     (5) How GGIR was used: Share the config.csv file or your R script.
     (6) How you post-processed / cleaned GGIR output
     (7) How reported outcomes relate to the specific variable names in GGIR
________________________________________________________________________________________________________
 Part 1

Checking that user has read access permission for all files in data directory: Yes
1
P1 file 1

Investigate calibration of the sensors with function g.calibrate:

Loading chunk: 1 2 3 4 5 6 7

And then when I try to download the older 2.8-2 version of the GGIR package, because it is the version with which I can analyze the accelerometers (1st download version 2.8-2 file on the computer - 2nd in R, in packages, install from package archive file), it reports the following error:
> install.packages("~/Downloads/GGIR_2.8-2.tar", repos = NULL)

Error in install.packages : type == "both" cannot be used with 'repos = NULL'

Thanks for all.

Vincent van Hees

unread,
Nov 1, 2023, 9:46:11 AM11/1/23
to Marcos Echevarría Polo, R package GGIR
Dear Marcos,
I need to analyze a commercial brand Axivity accelerometer. However, when using the programming code from the GGIR package with version 3.0-0, the software does not give me any results:

Can you try installing the GitHub version of GGIR. There was one bug specific to Axivity discovered and fixed shortly after the 3.0.0 release.

remotes::install_github("wadpac/GGIR")


And then when I try to download the older 2.8-2 version of the GGIR package, because it is the version with which I can analyze the accelerometers (1st download version 2.8-2 file on the computer - 2nd in R, in packages, install from package archive file), it reports the following error:
> install.packages("~/Downloads/GGIR_2.8-2.tar", repos = NULL)
Error in install.packages : type == "both" cannot be used with 'repos = NULL'

Error message indicates that you should specify argument type, which in this case would be "source":
install.packages("~/Downloads/GGIR_2.8-2.tar", repos = NULL, type = "source")

Best, Vincent
Reply all
Reply to author
Forward
0 new messages