Questions tagged [r-markdown]

R Flavored Markdown or "R Markdown" is a markdown variant used for content-creation and/or programming documentation interleaved with R code.

R Flavored Markdown, or simply "R Markdown", is a markdown variant used for content-creation and/or programming documentation in which text content is interleaved with R code. It is a modern example of literate programming and is frequently used in R vignettes and README files where an R Markdown file (usually with file extension .Rmd) is rendered as HTML via knitr pre-processing of embedded code chunks.

More details about R Markdown can be found in:

Two R packages currently implement R Markdown rendering:

Various script editors can display R Markdown documents with syntax highlighting and render the resulting markdown and HTML documents, including:

  • RStudio, a popular R IDE
  • Rcmdr, a graphical user interface available as an R package
10493 questions
4
votes
2 answers

rmarkdown::render() output to stdout

When I render() an *.Rmd file locally in RStudio, the output from the render() function is displayed in the console: Basic .Rmd file: --- title: "test" output: html_document --- ```{r setup, include=FALSE} sink("./output.txt", type =…
Steven
  • 3,238
  • 21
  • 50
4
votes
1 answer

Mixed Landscape + Portrait pages when generating word document from RMarkdown

I'm trying to create a word document from RMarkdown-so far everything has been great except that I have to output a 4 page report, the first page being a portrait, the following 2 pages with ggplots being landscape and the last page with a ggplot in…
4
votes
1 answer

can't compile RMarkdown pdf with image in child .Rmd - LaTeX Error - image file not found

I'm compiling a pdf using child .Rmd's. The example_child.Rmd calls an image using knitr::include_graphics() and compiles fine on its own, but trying to compile example_main.Rmd produces the following error. TeX Live 2019 is frozen forever and will…
kgf
  • 43
  • 3
4
votes
1 answer

shiny Rmarkdown selectInput doesn't work when hosted on shinyapps.io - options contain

I've created an interactive Rmarkdown document that works perfectly well when hosted on my machine, however, when I publish it to shinyapps.io all of my select input options which relate to my datasets are no longer functional. For example, this is…
HClarkeLds
  • 43
  • 5
4
votes
2 answers

Shiny Server missing charts generated by R markdown file

I have an R markdown file which I'd like to be available on my corporate Shiny Server. According to R Markdown: The Definitive Guide I can add runtime: shiny to the YAML metadata at the top of the Rmd file to turn it into a Shiny document. I have…
Michael Henry
  • 599
  • 2
  • 4
  • 17
4
votes
3 answers

Best way to collaborate with manager on R Markdown reports?

I'm producing plenty of analyses in R and utilizing the .html Markdown format to present and communicate work. Often, my manager will need to correct/add to the text which accompanies the code blocks, and has practically no interaction with the code…
4
votes
4 answers

Shortcut to jump to a chunk in R Markdown?

Is there a shortcut to jump to a chunk in a R Markdown (on a Mac)? I'm looking for a way to quickly go between one chunk to another.
Will M
  • 692
  • 9
  • 20
4
votes
1 answer

Is there a way to specify intermediates_dir for the Knit button in RStudio?

I have a .Rmd file (say it's called "file.Rmd") that I would like to knit into a pdf by pressing the "Knit" button in RStudio. However, it yields an error because I can't figure out how to specify a value for intermediates_dir in the render function…
user1713174
  • 307
  • 2
  • 7
4
votes
1 answer

How to use MathJax in an Rmarkdown github_document?

I would like to include some math symbols in my GitHub README file generated by Rmarkdown. However, enclosing the symbols in $ does not render them as symbols: it just puts parentheses around them. Based on this document, I thought perhaps I could…
Jeffrey Girard
  • 761
  • 4
  • 20
4
votes
0 answers

Hold table position in R-markdown

I'm trying to insert a table in Rmarkdown, but i just can't hold the position of the table. I don't have a lot of experience with Rmarkdown and maybe the problem may be something stupid that I missed. --- title: "Rmarkdown document" author:…
4
votes
1 answer

IN R MARKDOWN, How Can I add a background image (HTML output)?

I'm trying to put an image as background for my R markdown document (HTML output) Instead of the black background. I Was searching everywhere in the documentation on how to do this but I can't seem to find any answer as it's my first time working…
Nessy
  • 103
  • 2
  • 7
4
votes
2 answers

In RMarkdown, can a floating TOC be placed on the right side of page

When I add a floating Table of Contents to my R-Markdown document, it always is on the left side of the page (with the content to the right), like so: --- title: "some title" author: "me" date: "3/2/2020" output: html_document: toc: TRUE …
Jim Kloet
  • 440
  • 3
  • 7
4
votes
2 answers

Is it possible to change the column width using kable without kableExtra?

Continue from this question. I want to modify the result's column width, but it can't be done without using the kableExtra. If I load the kableExtra package, the image will become text format. Here's the code: --- title: "Untitled" output: …
蔡佳諭
  • 65
  • 1
  • 4
4
votes
0 answers

Reduce spacing between title, author and date in knitR document and shift title further up the page

The following is the default way to create a title in R markdown. title: "Title" author: "Author" date: "19/02/2020" output: pdf_document The problem is that the 3 lines (title, author, date) occupy too much space. I would like to know a way to…
johnson
  • 283
  • 2
  • 9
4
votes
1 answer

How can i choose the page number in Rmarkdown?

What can i do to my pdf output start not in page 1 but in the page 40? Thanks!
tales_alencar
  • 141
  • 1
  • 10
1 2 3
99
100