RobinHankin / disordR

https://robinhankin.github.io/disordR/
1 stars 0 forks source link

bug in is.na<-() #32

Closed RobinHankin closed 2 years ago

RobinHankin commented 2 years ago

Following example taken from misc.Rd:

 a <- disord(c(1,3,4))
 a
A disord object with hash b4b1eb91ca18b2ae8de2b461ed2e57c9184a8f41 and elements
[1] 1 3 4
(in some order)
 is.na(a) <- c(T,F,F)
 a
A disord object with hash b4b1eb91ca18b2ae8de2b461ed2e57c9184a8f41 and elements
[1] NA  3  4
(in some order)

Above is clearly a bug: the last line should return an error.