RobinHankin / frab

1 stars 0 forks source link

bug in addition #21

Closed RobinHankin closed 1 year ago

RobinHankin commented 1 year ago
suppressWarnings(library("frab"))
#> 
#> Attaching package: 'frab'
#> The following objects are masked from 'package:base':
#> 
#>     pmax, pmin
x <- frab(c(a=1,b=-4,c=2,d=5,e=6,f=-9))
x[x>5] + 1000
#> Error in as.frab(e2): argument not recognised; did you mean to pass a _named_ numeric vector?

Above I would expect the sum to be defined but it gives an inappropriate error

RobinHankin commented 1 year ago

seems to work now.