Displaying 1 result from an estimated 1 matches for "divergingx_hcl".
2023 Nov 22
0
seq edge cases
...1.5
2.0 # [1] 1 2 # Error in seq.int(1, by = 1/(n - 1), length.out = n) : <-
this should be 1, not an error # 'by' must be a finite number #
integer(0) <- (result for n=0) |
I believe changing this would prevent quite some edge case bugs, for
example this one:
|> colorspace::divergingx_hcl(1) Error in seq.int(1, by = -2/(n - 1),
length.out = n2) : 'by' must be a finite number |
Do see any downside to this?
-Jan
?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc:...