Skip to content

[Bioc-devel] BioC 3.0 CHECK ERROR

1 message · Andrzej Oleś

#
Dear Joachim,

thank you for reporting the issue with using EBImage in your package!

Martin, Dan: many thanks for digging into the problem and for suggesting
solutions to overcome it.

I had a look into this as well and could reproduce the issue. I can also
confirm that it occurs under R 3.1.2 release but the subsequent patches in
R-patched and R-devel fix the problem.

To circumvent the bug with the broken Math2 group generic I have included
an explicit definition of it for the Image class. I've pushed the updated
EBImage 4.8.1 into the release repository; the update should be available
once the build servers crunch the package.

The updated package should restore the previous behavior, in particular, it
should be possible to call 'round' on Image objects without the need of
extracting imageData.

Also, please note that whenever accessing the pixel array from the Image
class it's good practice to use the 'imageData' accessor functions rather
than referring to Image at .Data directly. Accessing object slots is
potentially dangerous because you are relying on the actual class
implementation - in case it changes your code will fail. The accessory
functions, on the other hand, introduce and interface which is
implementation-independent.

Best,
Andrzej

On Fri, Nov 28, 2014 at 10:28 AM, Joachim Schumann <joachim.schumann at ufz.de>
wrote: