yihui.org icon indicating copy to clipboard operation
yihui.org copied to clipboard

en/2022/01/knitr-news/

Open utterances-bot opened this issue 3 years ago • 8 comments

News from knitr v1.35 to v1.37: Alternative Syntax for Chunk Options, and Some New Engines - Yihui Xie | 谢益辉

https://yihui.org/en/2022/01/knitr-news/

utterances-bot avatar Jan 06 '22 13:01 utterances-bot

Thanks for sharing these awesome updates, Yihui! I have struggled with sharing verbatim in the past, and these new features are much appreciated!

shannonpileggi avatar Jan 06 '22 13:01 shannonpileggi

Honestly I have struggled on this problem for several years, too! :) I'm glad that you found them useful!

yihui avatar Jan 06 '22 14:01 yihui

个人愚见:

  1. #|这两个符号键盘上离的有点远啊,个子还不一样高,换两个离的比较近的,个子差不多高的,比如#@,另外,要是有个快捷键就更好了。

  2. rmdworkflow,是否改为label = rmdworkflow,,这样上下格式就统一了。最好能把逗号也给省略了,因为#|本身就起到了分割的作用。

chuxinyuan avatar Jan 11 '22 19:01 chuxinyuan

@chuxinyuan

  1. RStudio 编辑器的支持应该会跟上的。| 可能不会变更了。外观上,竖线看起来更整齐。
  2. 文中说了,这些选项不需要按照一行一个选项排列,可以任意换行,所以不能假设 #| 是分隔符。例如文中的 fig.cap 选项就换行了。

yihui avatar Jan 11 '22 21:01 yihui

关于 Chunk options,貌似 Quarto 倾向于 YAML 语法。我似乎意会了文末那张图片的内涵。

chuxinyuan avatar Jan 16 '22 00:01 chuxinyuan

各取所好吧,我个人是不喜欢必须一行一个选项,嫌太浪费空间。

yihui avatar Jan 16 '22 03:01 yihui

Thanks for sharing these awesome updates!

be-favorite avatar Mar 31 '22 14:03 be-favorite

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

Mealea1979 avatar May 20 '22 01:05 Mealea1979