When specifying an RGB colour in R, is there a strong reason not to accept 3-character HEX codes? In CSS and many other languages, a colour of "#ABC" is automatically converted to "#AABBCC", and I was wondering if R could support that as well, or if it was a conscious decision to not support it. --- http://deanattali.com [[alternative HTML version deleted]]
On 12/07/2015 3:51 PM, Dean Attali wrote:> When specifying an RGB colour in R, is there a strong reason not to accept > 3-character HEX codes? In CSS and many other languages, a colour of "#ABC" > is automatically converted to "#AABBCC", and I was wondering if R could > support that as well, or if it was a conscious decision to not support it.This is on the wish list. See https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16426 Duncan Murdoch
And very recent as well, good to know, thanks! --- http://deanattali.com On 12 July 2015 at 13:32, Duncan Murdoch <murdoch.duncan at gmail.com> wrote:> On 12/07/2015 3:51 PM, Dean Attali wrote: > > When specifying an RGB colour in R, is there a strong reason not to > accept > > 3-character HEX codes? In CSS and many other languages, a colour of > "#ABC" > > is automatically converted to "#AABBCC", and I was wondering if R could > > support that as well, or if it was a conscious decision to not support > it. > > This is on the wish list. See > > https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16426 > > Duncan Murdoch > >[[alternative HTML version deleted]]
Maybe Matching Threads
- Defining a `show` function breaks the print-ing of S4 object -- bug or expected?
- 'vapply' not returning list element names when returned element is a length-1 list
- Graphical User Interface (GUI)
- Defining a `show` function breaks the print-ing of S4 object -- bug or expected?
- Defining a `show` function breaks the print-ing of S4 object -- bug or expected?