

Generalize number sections ( rstudio#1879)Įnable figure cropping in pdf_document() only when both pdfcrop and ghostscript are found ( yihui/knitr#954), and do not limit this feature to non-Windows platformsĪdd the citation entry for the R Markdown CookbookĪdd lua filter vignette to pkgdown website ( rstudio#1894)Ĭlose rstudio#1889: evaluate the output argument before changing working directory in pandoc_convert() ( rstudio#1890)
#RMARKDOWN HIDE CODE FOLDING INSTALL#
Only install pkgdown for website build ( rstudio#1900) Generalize the package_root() function to work with more types of projectsĭiscover site generators in index.Rmd files in parent directories ( rstudio#1898) Use our own proj_root() instead of introducing a dependency List.files() with full.names = TRUE (so the files could be read with corret paths), and pass down the `file`/`pattern` arguments in the recursion I understand that my issue may be closed if I don't fulfill my promises.įix rstudio#1905: a chunk with the class "fold-hide" should only hide itself ( rstudio#1906)Īdd an argument `lua_filters` to pandoc_options() to store them in the output format object ( rstudio#1899) I have learned the Github Markdown syntax, and formatted my issue correctly.If I have posted the same issue elsewhere, I have also mentioned it in this issue.I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('rstudio/rmarkdown'). If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('rmarkdown').If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.I have provided the necessary information about my issue.Applications/RStudio.app/Contents/MacOS/pandoc/pandoc +RTS -K512m -RTS try_ -to html4 -from markdown+autolink_bare_uris+tex_math_single_backslash -output try_folding.html -email-obfuscation none -self-contained -standalone -section-divs -template /Library/Frameworks/R.framework/Versions/4.0/Resources/library/rmarkdown/rmd/h/default.html -no-highlight -variable highlightjs=1 -variable 'theme:bootstrap' -include-in-header /var/folders/mb/3y6vs_2x2m1dzch9wpmd6qk80000gn/T//Rtmp8oTREt/rmarkdown-str9090a0bb667.html -mathjax -variable 'mathjax-url:' -variable code_folding=show -variable code_menu=1īy filing an issue to this repo, I promise that You should just take it as a user feed-back for future improvements of rmarkdown.|.

This is why I'm suggesting having folded/unfolded results chunks as an option.

I agree there are cases in which seeing the results and not the code makes sense, e.g. Creating an article To create an R Markdown document that uses the Distill format, first install the distill R package from CRAN: install. This extra text is often redundant with the code which, in the case of R, is very readable. In many cases (I do not say always), having the code folded but seeing the results, as it is currently the case, is very confusing, and forces the author to write extra text to explain why those results are there. We use folding code precisely when we want the reader to concentrate on the text, and then, unfold the code to see an example and/or the actual details. All graph, html table and every output would disappear leaving only title and comments However, generally you use Rmarkdown to mix results and texts, I think it is rare case willing to hide everything. I was conscious of making a suggestion for future development.
