如果你看一下knit2html
幫助頁面,你會發現:
This is a convenience function to knit the input markdown source and
call ‘markdownToHTML()’ in the ‘markdown’ package to convert the
result to HTML.
然後你看看markdownToHTML
幫助頁面和閱讀,有以下幾種說法:
options: options that are passed to the renderer. see
‘markdownHTMLOptions’.
所以你看看markdownHTMLOptions
(仍然沒有丟失?)並看到以下選項:
‘'base64_images'’ Any local images linked with the ‘'<img>'’ tag
to the output HTML will automatically be converted to base64
and included along with output.
用下面的命令,你會看到你的系統上的默認選項:
R> markdownHTMLOptions(default=TRUE)
[1] "use_xhtml" "smartypants" "base64_images" "mathjax"
[5] "highlight_code"
那麼可能是你可以嘗試編織你的降價文件,:
knit2html("knit.Rmd", options=c("use_xhtml","smartypants","mathjax","highlight_code"))
沒有測試過,雖然..
你能不能給我們的,你在做什麼很短的降價例子,列出你調用R的功能... – Spacedman 2013-02-14 08:30:57
我添加了一個小例子。 – Bart 2013-02-14 08:51:03