Closed nutterb closed 2 years ago
I think this is too specific to be included in checkmate. Just as you demonstrated, implementing it in pure R as a utility function is relatively easy. However, implementing and maintaining a high-performant version in C would be a non-trivial effort. If you wish you can create a package for this utility and even publish it to CRAN so that others can then use it, too.
That's a fair and reasonable response. Thanks.
Would there be any interest in a function that checks if the inputs can be interpreted as colors?
This seems to work pretty well, based on https://stackoverflow.com/a/13290832/1017276