Trying to use the annotation_image() function from ggtree package, which was working before, but is not working currently. The error message I get is:
Error in FUN(X[[i]], ...) :
Invalid type: png". Currently supported formats are JPEG, PNG, and TIFF.
I tracked this to the Image.R script from EBImage, and it looks like it is coming from the determineFileType() function, since it is returning png" (note the single parentheses?). I am wondering if anyone knows anything about this?
The versions I am using are ggtree 1.8.1, EBImage 4.18.0, R 3.4.0