Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
R Markdown ( .Rmd) ファイルで、未使用のテキストをどのようにコメントアウトしますか? R コード チャンク内のテキストではなく、たとえばLaTexの%などの一般的なテキストを参照しています。
.Rmd
追加の yaml ブロックは、ドキュメント内のどこでも使用でき、次のようにコメントアウトできます。#
#
--- title: "Untitled" output: html_document --- No comment. --- # here's a comment # ```{r} # x = pi # ``` ---
ただし、これは、knitr がインラインr コードを評価することを妨げないことに注意してください。