ERROR WHEN STARTING GGIR

51 views
Skip to first unread message

Mª Purificación Ballester Navarro

unread,
Feb 5, 2024, 4:23:03 AMFeb 5
to R package GGIR
Dear all, 

I am experiencing some trouble when trying to start the function GGIR in my computer. 
After installing GGIR function, from which I am getting some errors, e.g., psych package. 

This is our starting code: 

setwd("C:/Pura")
datadir="C:/Pura/Entrada"
outputdir="C:/Pura/salida/"

g.part1(datadir,outputdir,f1=1)

This is the error we are getting: 
No files to analyse. Check that there are accelerometer filesin the directory specified with argument datadir

It recognises the package GGIR, however, function seems it does not exist. 

Thanks in advance for your kind help 

Jairo Hidalgo Migueles

unread,
Feb 5, 2024, 3:21:44 PMFeb 5
to R package GGIR
Hi,

The error does not indicate that the function does not exist, the error is saying that GGIR cannot find any accelerometer file in the datadir. Make sure you have your accelerometer files located in "C:/Pura/Entrada" and that you ONLY have accelerometer files in that folder. If you have any other file, then GGIR would struggle to read the data in.

Best,
Jairo

Mª Purificación Ballester Navarro

unread,
Feb 14, 2024, 8:55:08 AMFeb 14
to Jairo Hidalgo Migueles, R package GGIR
Hi, 

Thank you. Yes Jairo, in that Folder, there is only the .csv file that I already shared with you.
This one attached. 
We are getting that error message again. 

--
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/1764a3f5-3943-4b5d-9faa-ca4f235a6956n%40googlegroups.com.


--


Dra. Pura Ballester Navarro

Profesora contratada doctora

Universidad Católica de San Antonio de Murcia (UCAM)

ORCID https://orcid.org/0000-0002-7345-448X


Grupo de Investigación en Nutrición, estrés oxidativo y biodisponibilidad. 


“Whereof one cannot speak, thereof one must be silent.”  

―  Ludwig Wittgenstein


"Este mensaje es privado y confidencial y se dirige exclusivamente a su destinatario. Si usted recibe este mensaje por error, no debe revelar, distribuir o copiar este e-mail. Por favor, comuníquelo al remitente y borre el mensaje y los archivos adjuntos de su sistema. No hay renuncia a la confidencialidad ni a ningún privilegio a causa de una transmisión errónea o por mal funcionamiento". 

"This message is private and confidential and it is intended exclusively for the addressee. If your receive this message by mistake, you should not disseminate, distribute or copy this e-mail. Please inform the sender and delete the message and attachments from your system. No confidentiality or any privilege regarding the information is waived or lost by any mistransmission or malfunction".

No me imprimas si no es necesario.
Don't print me unless it's necessary.

Datos.csv

Vincent van Hees

unread,
Feb 14, 2024, 11:19:51 AMFeb 14
to Mª Purificación Ballester Navarro, Jairo Hidalgo Migueles, R package GGIR
Hi both,

You seem to be processing an ActiGraph counts file, which requires setting some specific input arguments. Did you already correspond about that? If not, then I suspect that the problem is with not telling GGIR that it is a count file.

Best, Vincent

Jairo Hidalgo Migueles

unread,
Feb 15, 2024, 2:08:14 AMFeb 15
to R package GGIR
Hi,

Yes, I now see that Pura contacted me via email and I already pointed that out, have you tried with the instructions I sent via email?

Additionally, in your email above you are using function g.part1 instead of function GGIR, which is the only function that the package expects users to call. You are not defining the arguments by name, which means that they are assigned by order, and in this case, your definition of "outputdir" is being assigned to argument "metadatadir" which is different. So, in summary, please use function GGIR instead of g.part1, define arguments by name which is safer, and use the specific arguments required for reading an ActiGraph counts file, you can find instructions in the documentation of the GGIR function, I attach a screenshot of an example:

Best,
Jairo

Capture.JPG
Reply all
Reply to author
Forward
0 new messages