randomcoloR
randomcoloR copied to clipboard
Failure with dev scales
In .onLoad() you are calling scales::hue_pal(l=60:100)(1e3) but l is supposed to be a single number; this is now an error in the dev version of scales. Previously it worked, but I suspect silently gave a weird result.
Was the idea behind the 60:100 range to have more than 2000 points?
Otherwise, line 18 in your .onLoad() can simply be changed to:
alternateColorSpace <<- t(unique(col2rgb(scales::hue_pal(l=60)(n))))
(or whatever other value for l)