How to solve Error message: "'data' must be of a vector type, was 'NULL'..."

5,116 views
Skip to first unread message

Vincent van Hees

unread,
Mar 21, 2017, 11:15:13 AM3/21/17
to R package GGIR
Please find a below a summary of a correspondence I had with Pedro Pedro-Manuel.Marques-Vidal@chuv.ch and Mike yao....@nih.gov regarding an issue they encountered and the solution to address this issue:

Original message by them: "We are trying to analyze the *.bin data from Geneactiv and we obtain the following error when importing the file

 

[1] "File name: 5754__031468_2017-02-22 11-58-39.bin"

Error in array(x, c(length(x), 1L), if (!is.null(names(x))) list(names(x),  :

  'data' must be of a vector type, was 'NULL'

 

The bin file was obtained directly from the Geneactiv device and is 715 Mb (15 days). We tried reading it using g.meta but it does not work. Do we also need to upload GENEAread?

 

I attach the code. Do you have any idea why it is not working? We are running it on a Windows 7 professional environment, 24Gb RAM, and we run the code using Rstudio Version 0.99.879 and R version 3.2.3.


Final solution:

Reinstall the R packages on which GGIR depends, because they are probably out of date. For example, mmap, bitops, matlab...


Vincent

Vincent van Hees

unread,
Mar 21, 2017, 11:20:30 AM3/21/17
to R package GGIR
Following on from my previous message. Just to clarify, the depencies on which GGIR relies are all R packages listed after 'Suggests', 'Imports', and 'Depends' on https://cran.r-project.org/web/packages/GGIR/index.html

In R you can use the following command to install all of them in one go: install.packages("GGIR",dependencies = TRUE).

At this moment this includes: MASS, signal, zoo, mmap, bitops, matlab, GENEAread,tuneR, testthat, covr, data.table, stats, utils


Message has been deleted

Mike Xiao

unread,
Mar 21, 2017, 11:26:53 AM3/21/17
to R package GGIR
Thank you Vincent!


Stuart F

unread,
Feb 28, 2020, 10:31:18 AM2/28/20
to R package GGIR
Hi Vincent,

I realise that this is an old thread but I'm experiencing the same problem. Basically, I am getting the error messages described by the OP when trying to process GENEActiv bin files that we have previously processed (8 days of data collection), so we know the data should be there.

Steps I've taken: updated R, RStudio to latest versions, installed, updated, and loaded all of the dependent packages listed in the GGIR manual front page. Quit RStudio and restarted.  I get the same result using PC and Mac. Actigraph files process just fine so this is just a GENEActiv bin file issue. 

Do you (or anyone) have any further updates on this issue?

cheers
Stuart

On Tuesday, 21 March 2017 15:20:30 UTC, Vincent van Hees wrote:
Following on from my previous message. Just to clarify, the depencies on which GGIR relies are all R packages listed after 'Suggests', 'Imports', and 'Depends' on https://cran.r-project.org/web/packages/GGIR/index.html

In R you can use the following command to install all of them in one go: install.packages("GGIR",dependencies = TRUE).

At this moment this includes: MASS, signal, zoo, mmap, bitops, matlab, GENEAread,tuneR, testthat, covr, data.table, stats, utils


On 21 March 2017 at 16:14, Vincent van Hees <vincent...@gmail.com> wrote:
Please find a below a summary of a correspondence I had with Pedro Pedro-Manuel...@chuv.ch and Mike yao...@nih.gov regarding an issue they encountered and the solution to address this issue:

Vincent van Hees

unread,
Mar 4, 2020, 4:46:13 PM3/4/20
to Stuart F, R package GGIR
Hi Stuart,
I may have ran into the same error recently and think I fixed it.
Can you try installing the latest GGIR-beta version from GitHub?

In R console:
Type: install.packages("devtools", depencies = TRUE)
Press Enter
Type: library(devtools)
Press Enter 
Type: install_github("wadpac/GGIR")

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.

Reply all
Reply to author
Forward
0 new messages