Category "knitr"

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

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

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

knit to PDF failure

I am an R user with 4 years of experience, but only recently starting using RMarkdown, from RStudio. Generally things have gone OK, and have been able to export

Vertical align kable's column name

Suppose the next example: library(knitr) library(kableExtra) df <- data.frame(a = letters[1:10], b = 1:10) names(df) <- c("This is a looooooong title,

Rendering many Rmds from command line using GNU parallel

To knit an Rmd from the command line, you can do the following and it creates an HTML Rscript -e "rmarkdown::knit('test.Rmd')" I want to do this for many Rmds

Adding a leaflet in a precompile vignette

I'm maintaining R code in my company that is use by multiple colleagues. I decided to convert my code into a package to make it simpler to share, maintain and

R package stargazer produces two table outputs instead of one

I'm currently struggling with r markdown, knitr, and, the stargazer package. More specifically, I want to produce the output of a logistic regression: {r table1

Figure captions with multiple plots in one chunk

I label my figures like this. --- title: "xxx" output: pdf_document: fig_caption: true --- And then in each chunk ```{r, fig.cap="some caption"} qplo

knitr/rmarkdown/Latex: How to cross-reference figures and tables?

I'm trying to cross-reference figures and tables in a PDF produced with knitr/rmarkdown. There are some questions on SO and tex.stackexchange (here and here, fo