yihui.org
yihui.org copied to clipboard
en/2022/01/knitr-news/
News from knitr v1.35 to v1.37: Alternative Syntax for Chunk Options, and Some New Engines - Yihui Xie | 谢益辉
Thanks for sharing these awesome updates, Yihui! I have struggled with sharing verbatim in the past, and these new features are much appreciated!
Honestly I have struggled on this problem for several years, too! :) I'm glad that you found them useful!
个人愚见:
-
#|
这两个符号键盘上离的有点远啊,个子还不一样高,换两个离的比较近的,个子差不多高的,比如#@
,另外,要是有个快捷键就更好了。 -
rmdworkflow,
是否改为label = rmdworkflow,
,这样上下格式就统一了。最好能把逗号也给省略了,因为#|
本身就起到了分割的作用。
@chuxinyuan
- RStudio 编辑器的支持应该会跟上的。
|
可能不会变更了。外观上,竖线看起来更整齐。 - 文中说了,这些选项不需要按照一行一个选项排列,可以任意换行,所以不能假设
#|
是分隔符。例如文中的fig.cap
选项就换行了。
关于 Chunk options,貌似 Quarto 倾向于 YAML 语法。我似乎意会了文末那张图片的内涵。
各取所好吧,我个人是不喜欢必须一行一个选项,嫌太浪费空间。
Thanks for sharing these awesome updates!
Hi everyone. I am a student at Flinders University studying master of public health. I have problem with knitting R. When I knit it appear message like this. Error in library.dynam(lib, package, package.lib) : DLL 'htmltools' not found: maybe not installed for this architecture? Calls: loadNamespace ... namespaceImportFrom -> asNamespace -> loadNamespace -> library.dynam Execution halted Anyone can help. Thank you