RobinHankin / frab

1 stars 0 forks source link

bug in extraction #23

Closed RobinHankin closed 9 months ago

RobinHankin commented 9 months ago
#> 
#> Attaching package: 'frab'
#> The following objects are masked from 'package:base':
#> 
#>     pmax, pmin
x <- frab(c(x=4,y=6,z=8))
x[is.na(x)]
#> The empty frab object
x[!is.na(x)]
#> The empty frab object

last line above is clearly a bug, the result should be x.

RobinHankin commented 9 months ago

the note at misc.Rd is clear, but kind of implies that x[!is.na(x)] will throw an error.