Running examples in ‘colordistance-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: convertColorSpace
> ### Title: Convert between color spaces
> ### Aliases: convertColorSpace
> 
> ### ** Examples
> 
> # Convert a single RGB triplet and then back convert it
> rgb_color <- c(0, 1, 0)
> lab_color <- colordistance::convertColorSpace(rgb_color,
+  from="sRGB", to="Lab", to.ref.white="D65")
From reference white:  
To reference white: D65
Subset of pixels for color conversion greater  than number of colors provided 
Converting all rows from sRGB color space to Lab color space
> rgb_again <- colordistance::convertColorSpace(lab_color,
+  from="Lab", to="sRGB", from.ref.white="D65")
From reference white: D65 
To reference white: 
Subset of pixels for color conversion greater  than number of colors provided 
Converting all rows from Lab color space to sRGB color space
> 
> # Convert pixels from loadImage() function
> img <- colordistance::loadImage(system.file("extdata",
+ "Heliconius/Heliconius_B/Heliconius_07.jpeg", package="colordistance"))
> lab_pixels <- colordistance::convertColorSpace(img$filtered.rgb.2d,
+ from="sRGB", to="XYZ", sample.size=5000)
Converting 5000 randomly selected pixel(s) from sRGB color space to XYZ color space
> 
> # Convert clusters
> img <- colordistance::loadImage(system.file("extdata",
+ "Heliconius/Heliconius_B/Heliconius_07.jpeg", package="colordistance"))
> img_hist <- colordistance::getImageHist(img, bins=2, plotting=FALSE)
RGB and HSV are device-dependent, perceptually non-uniform color spaces. See 'Color spaces' vignette for more information.


Using 2^3 = 8 total bins
> lab_clusters <- colordistance::convertColorSpace(img_hist, to.ref.white="D55")
Ignoring 'Pct' column and treating remaining columns as color coordinates
From reference white:  
To reference white: D55
Subset of pixels for color conversion greater  than number of colors provided 
Converting all rows from sRGB color space to Lab color space
Error in dogamma(rgb) %*% M : 
  requires numeric/complex matrix/vector arguments
Calls: <Anonymous> -> as.data.frame -> convertColor -> <Anonymous>
Execution halted