rJava icon indicating copy to clipboard operation
rJava copied to clipboard

JRI: arrays of length < 1 are returned as NULL

Open s-u opened this issue 4 years ago • 1 comments

jri_getXxArray() functions treat arrays of length 0 as NULL. This seems deliberate in the code, but it is inconsistent as R is perfectly capable of representing 0-length arrays. This has been the case for more than a decade so it is unclear if making this consistent will break other's code so we may want to tread lightly.

s-u avatar Jul 18 '21 07:07 s-u

I also think, not to change is the better solution. Such thing aslo happen in base R.

yudalang3 avatar Dec 10 '24 01:12 yudalang3