Category "r-markdown"

R markdown (html_pretty) does not show "not equal" symbol properly

I found that "html_pretty" output does not properly show the unequal math symbol. The following is the minimal reproducible example for it. --- title: "example"

RMarkdown: How to embed an 3D plot?

How to embed 3D plot (rgl) into a html created via knitr? There are several older posts looking for similar outcome. However, when I run all the sample codes i

How to escape single quote in Flexdashboard Navbar Menu?

I'm using R markdown to create a flexdashboard. I'm having difficulty escaping a single quote in the title of one of my navbar menus. I would like for my menu t

How to set size of rpivotTable in rmarkdown document

I would like to include several rpivotTables in an rmarkdown HTML output (document, flexdashboard, other options that result in a standalone HTML file are ok; I

Add tags to post summaries of lithium themed hugo blogdown website

Using the guidance linked to at Add template for taxonomies to Blogdown default theme I was able to add tags to show-up at the top of my posts and create a /tag

Convert Latex to Word using Rmarkdown

I have a latex file called mylatex.tex, and I am trying to convert it to a word document. Does anyone know the step by step process to do this using Rmarkdonw?

rmarkdown knitting error cannot replicate NULL to a non-zero length

I have a rmarkdown which loops to render a list of other rmarkdowns: ```{r} for(i in 0:22){ save(i, file = "/path/to/i.RData") rmarkdown::render("path/to/

Source RMarkdown chunks

Please consider the following. For me, the beauty of writing nearly all analyses in a RMarkdown file instead of in R scripts it that RMarkdown offers the possib

Set the width of regulartable() when exported in word document

Im trying to export a dataframe to word using knitr and regulartable() but my table does not fit in the word page. --- title: "Correlation table" author: "mk" d

kableExtra: Vertical alignment not working in PDF output with many columns

I would like to align all columns in a kableExtra table to the top. The valign = "top" option does not seem to solve the issue here. Also, the third column is

Is `RefManageR` the new `citr` package in R?

I konw that's kind of a meta question but here it is: Is RefManageR the new citr package in R? I am using citr since 1 year now and I just realized that it is n

Styling of Ms Word not working in R Markdown

Have tried styling MS Word document from the markdown but I don't seem to get it write. What could I not be doing right? Below is the code --- title: "Test Docu

Listing to knitr environment (R-markdown error when using list2env in R chunks)

Edit: I figured out that the issue stems from the yaml code. It comes from applying this solution to dynamically name files. I believe it creates a parent envir

rmarkdown slidy html presentation: image and text side by side

I'm looking for option to insert image and text together (side by side) on R-markdown Slidy HTML presentation. However I can't find anything for this. Please ca

How to load ocr-a font in r markdown with bookdown::pdf_document2 to change title font?

I am trying to change the font for the title of my pdf document in rmarkdown to ocr-a. I have tried tinytex::tlmgr_install("ocr") but only received error messag

Muliple table captions in DT in R

I'm following the example from here: https://rstudio.github.io/DT/ I can get a caption above the table with: library(DT) datatable( head(iris), caption =

R markdown results='hold' but for messages?

I have functions outputting multiple messages in my code and I can't get these messages to be in the same output chunk, like with results='hold'. As of now, th

Why is table numbering not working with blogdown::html_page, but working with bookdown::html_document2?

I have a report written in R Markdown that is supposed to use numbered sections, figures, and tables and cross-references to them: https://github.com/joshuaborn

Knit PDF Output with CAT in R

I am using CAT command in R to get following output. The Output in knitted PDF file is different to what I get in console. How can I get similar output in PDF a

R Markdown won't knit even though my code chunks work

For some reason, my code chunks work but when I try to knit the file, I have an "object not found" error. Here's the chunk which causes the error: library(ggplo