randomcoloR icon indicating copy to clipboard operation
randomcoloR copied to clipboard

Failure with dev scales

Open hadley opened this issue 6 years ago • 1 comments

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.

hadley avatar Nov 05 '19 14:11 hadley

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)

colbyford avatar Jan 18 '20 16:01 colbyford