Questions tagged [rmarkdown]

Rmarkdown is a lightweight markup language with plain-text-formatting syntax. Its a variant of markdown syntax that allow inclusion of chunks of R code through knitr. The documents can be exported with pandoc to LaTeX, PDF (via LaTeX), Word, or HTML formats showing the output of R chunks (and/or de R code) including plots and tables.

28 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
17 views

Illegal parameter number in definiton of beamer frame RMarkdown

While I want to render my Rmarkdown file as beamer pdf with Latex. I get the error: !Illegal parameter number in definiton of \beamer@doifinframe I get this only within the columns Tag. --- title: &...
1
vote
0answers
23 views

Why I am getting full code of user defined command in rmarkdown?

--- documentclass: report classoption: twoside fontsize: 12pt output: pdf_document: latex_engine: xelatex keep_tex: true header-includes: | \usepackage{geometry} \usepackage{tikz} \...
1
vote
0answers
42 views

Color change in beamer at R markdown

Esteemed, I'm having trouble putting together a beamer presentation. I would like to put the title, the footer and the items in green tones. I appreciate any help. title: "long title" date: &...
1
vote
0answers
60 views

Rmarkdown chunk with xtable() stopped rendering LaTeX table

I have a data analysis Rmarkdown file that I will use to knit a .pdf results section for my thesis. I had beautiful working LaTeX table code when I knit a pdf together in Rstudio using the knit button ...
1
vote
2answers
408 views

How to keep a table on the same page?

I have a report with many summary tables of regression output and converted them into tables using pander in the Rmarkdown document. Even though all tables are less than one page, they sometimes break ...
0
votes
0answers
21 views

! Package inputenc Error: Unicode character μ (U+03BC) (inputenc) not set up for use with LaTeX

I'm using rmarkdown to knit a pdf. I get this error. ! Package inputenc Error: Unicode character μ (U+03BC) (inputenc) not set up for use with LaTeX. Googling tells me it refers to ...
0
votes
1answer
114 views

hyperref-langpatches.def file not found in rmarkdown pdf knitting

I tried to compile a pdf in rmarkdon but the error shows hyperref-langpatches.def file not found. However, I can generate the pdf using the .tex file generated during the process.
0
votes
1answer
43 views

How to put parentheses for multiline text in r markdown?

Could anybody help me to overcome this? I've tried several ways but it still didnt't work. I wanna put big parentheses for these three line texts like the image below but I couldn't do it. $$\left( ...
0
votes
0answers
19 views

Add line below slide header

I have trying to create a custom template to use in my rmarkdown presentations, a modification of this, but I can't add an horizontal line just below the slide header. Here is what I am trying to ...
0
votes
0answers
22 views

How increase the font size of an equation with begin{equation}?

I have the following code in RMarkdown that prints an equation like: # in a LaTeX environment I would write: \usepackage{amsmath} \begin{document} \begin{equation}\label{eq: eq1} \psi_{j} = \frac{\...
0
votes
0answers
20 views

Collapse line spacing between items in the preamble of an r markdown pdf output to single spacing

I'm starting to explore Latex right now, working with Rstudio and using an r markdown file to produce a report in pdf format. I would like to find a way to adjust the spaces between lines of the title,...
0
votes
1answer
68 views

Tikz in RMarkdown

I have a diagram rendered using tikz and would like to include it at multiple places throughout my document. I have tried to define a command to insert this into the tikz environment, however I'm not ...
0
votes
0answers
29 views

Apply specific format to word in rmarkdown

I am using rmarkdown and I want the Country "Afghanistan" to become HUGE, Center and in Oswald Regular I tried \Centering\Huge but I failed. --- documentclass: report classoption: twoside ...
0
votes
0answers
19 views

backref with biblatex or hyperref in markdown, is it possible?

I use RStudio rmarkdown to write as this gives opportunity to have output in Word which some journals want [(:!)] I would like to use the backref feature in biblatex or hyperref for the bibliography. ...
0
votes
0answers
137 views

Figures showing at the end of the document in R markdown

I have been working on this issue since yesterday and have checked almost all the solutions but I'm still not able to solve this issue. All the figures and tables I put in the document shows at the ...
0
votes
0answers
591 views

l3backend installed, but getting: “LaTeX Error: File `l3backend-pdfmode.def' not found” error

I am unable to knit a pdf in RStudio. I have had no issues previously, though did recently update my Xcode installation. I am working on a Mac OS Catalina 10.15.6. The problem seems to be related to ...
0
votes
2answers
398 views

R markdown / Plotly R with LaTeX unable to generate plot and get error on a file name with hyphen

I am using LaTeX for some formatting, and trying to generate a PDF file with a plotly R plot as a png. The following piece of code gives me an error as show below. It seems like a problem with the ...
0
votes
0answers
390 views

Failure to knit using rmarkdown

I am using RStudio (version 1.2.5019) and have MiKTeX installed to my work laptop. When knitting to PDF using rmarkdown the .TEX file seems to be created ok but I get an error: Error: LaTeX failed to ...
0
votes
0answers
26 views

Correct syntax for using \setstretch{} \color{} \textit{} and scriptsize in same macro?

I am writing a custom macro to display text as footnotes for some custom figures and pictures in my R markdown code, using latex. I need to have scriptsize fontsize, decreased line spacing than rest ...
0
votes
1answer
90 views

Leave Header Blank Fancyhdr

I am new to coding and Latex so please forgive me as I'm sure this is a very straight forward solution. I am creating a PDF report using RMarkdown with a .tex file to control the header, margins, and ...
0
votes
0answers
296 views

How to indent a numbered list of references in R markdown as in latex?

I post this same question in stackoverflow (https://stackoverflow.com/questions/61060820/how-to-indent-a-numbered-list-of-references-in-r-markdown) and I was suggested to ask here. So, my problem is: ...
0
votes
0answers
304 views

Rmarkdown longtable in kable won't center

I am trying to get my kable table to align in the center of my pdf from RMarkdown. Currently, it is aligning very left of my page and the caption is awkwardly floating in the center (pic at bottom). I ...
0
votes
0answers
614 views

How can I make sure that Local TeX Live is not older than remote repository?

I have downloaded MacTeX-2020 to be able to knit R Markdown documents to PDF in R Studio. I downloaded it yesterday and it is the 2020 version. When I try to knit to PDF in R Markdown, I get the error:...
0
votes
0answers
306 views

RMarkdown PDF Fatal error : Undefined control sequence (\grffile@filename). Possible Bad Character?

I have written a R script to generate 2 RMarkdown PDF reports for a given dataset. The script runs without error on my main Linux machine with Texlive. I adjusted it for my work laptop with Windows ...
0
votes
0answers
859 views

Error `! Undefined control sequence.`using R markdown to create a pdf under MacTex (TexLive 2019)

I'm trying to use R Studio, R version 3.6.3 and MacTex (TeX Live) to create a pdf from a *.Rmd file. This error came up right after (successfully?) troubleshooting another error message in R itself: ...
0
votes
1answer
53 views

How can I add a space between name and surname in a R markdown (Twenty seconds format)?

I have made a CV using a R markdown template called Twenty Seconds Format from the Vitae package. However I cannot add a space between name and surname so they run together. I am a real beginner and ...
0
votes
0answers
186 views

How to change paper size for certain pages in R markdown

This question is replaced from stack overflow to here. I am working on a markdown file, but one table in particular is huge. I was able to set the pages where this table is occurring to landscape ...
0
votes
1answer
67 views

Error while set language, despite package is already installed

I'm writing a document in R markdown and using latex for figures and tables. I need the captions in Portuguese, so I try this: R markdown file: --- output: pdf_document: includes: ...