wadpac / GGIR

Code corresponding to R package GGIR
https://wadpac.github.io/GGIR/
Apache License 2.0
94 stars 60 forks source link

Code still tries to pass on deprecated function g.downsample #1060

Closed vincentvanhees closed 6 months ago

vincentvanhees commented 6 months ago

When processing data with do.parallel and using functions directly from source (without installing GGIR) I get error:

Error in e$fun(obj, substitute(ex), parent.frame(), e$data) : 
  unable to find variable "g.downsample"

This is because the parallel processing still tries to pass on the deprecated g.downsample function. Not of influence to GGIR users, but annoying for debugging code. All that is needed is removing "g.downsample" from g.part1.

I will integrate with next PR to avoid having to create a new PR for this.