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.
6,895
questions
0
votes
0answers
6 views
How do you cross-reference a figure in rmarkdown (knitting to PDF) that is loaded from file using ![caption]{path}
After some research, I cannot easily find a solution on this.
I have loaded a *.png file into an rmarkdown document using:
![Caption with spaces]{path/to/picture.png}
I am trying to cross reference ...
0
votes
2answers
36 views
Reading the data from a csv file in R
I want to read some data from a csv file in R in order to compute a t-test function but I didn't success to do that and accoriding to the debugger, the arguments are not numeric or logical: returning ...
0
votes
0answers
19 views
I'm trying to utilize huxtable and flextable to knit a table to word, but its not working
I've been having a lot of difficulties lately using different packages to format my tables for rmarkdown to output to word. The most promising thing I read was to use huxtable, and then output to ...
0
votes
0answers
13 views
How to display table and figure side by side in Rmarkdown to be displayed in a word document using apa style
I have been struggling to find the best way to display two columns and two rows of tables and figures side by side in Rmarkdown so that it will display in a word document as a single figure. ...
0
votes
0answers
10 views
Why the run time is different for “Knitting the pdf” and “running all the chunks to produce pdf through rmarkdown render function”?
Actually in my case running chunks to produce pdf through render function takes 20 mins and knitting the pdf takes 10 mins. What is the reason behind this ?
0
votes
1answer
22 views
Side by side images are not working in r markdown
I am trying to place side by side images in r markdown beamer using the code below.
```{r, out.width='.49\\linewidth', fig.cap='caption', fig.show='hold', fig.align='default'}
knitr::...
1
vote
1answer
18 views
Render Rmd file with pipe formatting for tables
Problem
I have a .Rmd template file which I currently use to render PDFs using rmarkdown::render.
I need the option to also render the .Rmd as a markdown file. I have tried setting output_format to ...
0
votes
0answers
12 views
installation of package ‘rmarkdown’ had non-zero exit status - How to solve that?
I am trying to install ‘rmarkdown’ in my RStudio Version 1.4.904 and R version 4.0.3 but getting the following error. I cannot open a new rmarkdown and knit a rmarkdown file. Every time I try, this ...
0
votes
1answer
13 views
Automate assigning plots into different RMarkdown documents
I have a list of plots (100) and I want to assign each 2 plots into one individual rmarkdown and convert them into word documents ultimately. What's the best way I can do this in a loop, function or ...
0
votes
0answers
7 views
Underscore cause error in Rmarkdown PDF rendering
I tried to write logic proof with rmarkdown, but the underscore always cause error stating that "! Missing $ inserted." which doesn't go away with $ inserted (both $x_0$ and $$...$$don't ...
0
votes
1answer
23 views
creating a column checker where on column is NA and another one has a specific element
So I am trying to create a column checker where I have column1 and column 2. What I am trying to accomplish, is have it so that if there is an element in column 2, then to check column 1 so that it is ...
1
vote
1answer
13 views
shiny r flexdashboard how to filter data
I would like to select rows from my data when the inputSlider changes (it's country names). But when I run rmarkdown::render("flexdashboard_example.Rmd"), it returns the following error:
...
0
votes
0answers
11 views
Cannot update the Rmarkdown version in R Studio
I am running RStudio on a Macbook (Mac Os Sierra Version 10.12.6). R version is 4.0.2. Every time I try to create an R Markdown file I am told by RStudio that I must update a version of the rmarkdown ...
0
votes
0answers
19 views
How can I pass an R expression in R Markdown YAML to CSS parameter?
Here is the problem:
I developed a tool with R Markdown that process and generate some company monthly report.
I've been trying to automate the location of a CSS file that styles this report by using ...
0
votes
0answers
16 views
Integration Tableu R Knitr
I am trying to integrate Tableau to Rmarkdown, specifically Knitr. At my work, we work mainly with R, SQL, and Tableau. Usually, Tableau just uses the analysis done by the R and SQL, stored in tables ...