Re: [Rd] Unexpected I(NULL) output

2016-12-24 Thread Florent Angly
Thank you for the feedback, Martin. Of course, deprecating would be a sensible way to go. I filed this issue on BugZilla under # 17198. Florent On 22 December 2016 at 10:24, Martin Maechler wrote: >> Florent Angly >> on Tue, 20

Re: [Rd] Unexpected I(NULL) output

2016-12-22 Thread Martin Maechler
> Florent Angly > on Tue, 20 Dec 2016 13:42:37 +0100 writes: > Hi all, > I believe there is an issue with passing NULL to the function I(). > class(NULL) # "NULL" (as expected) > print(NULL) # NULL (as expected) > is.null(NULL) #

[Rd] Unexpected I(NULL) output

2016-12-20 Thread Florent Angly
Hi all, I believe there is an issue with passing NULL to the function I(). class(NULL) # "NULL" (as expected) print(NULL) # NULL (as expected) is.null(NULL) # TRUE (as expected) According to the documentation I() should return a copy of its input with class "AsIs" preprended: