When I use include_graphics
function to include webp
figures in the RMarkdown document, I find in the knitting process, there is a warning output file: file_name.knit.md
.
However, I just want to knit an HTML document instead of md document.
And I get such an error.
Could not determine mime type for `figure/softmax_eq.webp'
错误: pandoc document conversion failed with error 63
停止执行
And I find this error happens related to package mime
> library(mime)
> guess_type("figure/shadow-bank01.webp")
[1] "application/octet-stream"
My questions are
- Is there any possibility to avoid
.knit.md
building. I guess it results in error. - Any tips to include a
webp
figure? I know Yihui and other advanced R users recommend png or jpg. However, in China, all figure in a WeChat Article is loaded inwebp
.