When I started R it came with the following Error
Error in alpha(fill, alpha) : could not find function "col2rgb"
when I try to compile PDF in knitr I get the same error:
Error in alpha(fill, alpha) : could not find function "col2rgb" Calls: .First ... grob -> gpar -> validGP -> numnotnull -> match -> alpha Execution halted
I don't know how to isolate this problem, since it last I used R and no when I start it produces the error. From what I can gather the col2rgb should be in the base package {grDevices}
library(grDevices)
grDevices::col2rgb("white")
[,1]
red 255
green 255
blue 255
Which seems to work fine. The error is independent of knitr
Anyone know a fix, or can give any suggestion as to how to isolate the problem?
Best Regards