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-markdown
10,824
questions
3
votes
1
answer
39
views
Keep ggplot font size constant in different figure dimensions
I'm in a position that requires me to frequently change the dimensions of my plots via the fig.dim=c(...,...) option in each r chunk.
However, I have a problem that I haven't been able to solve yet.
...
0
votes
0
answers
19
views
Use r output in top of R Markdown document [closed]
I am trying to create an automated report of questionnaire responses in R Markdown for single respondents. In the top of the document (below a title and subtitle), I want to include a list with the ...
0
votes
0
answers
17
views
Multicolumn layout with one side bullet list other side map
I am setting up a process to bulk produce two page reports and put them together in a single word doc. I've had success before using gitbook to create something similar, so thought for this officedown ...
-2
votes
0
answers
31
views
Is it possible to use R Markdown directly? [duplicate]
Suppose I have the following .txt notepad file (containing Latex math equations) saved in the working directory
Hello.
This is a parabola:
$$ y = x^2$$
And this is a cubic function:
$$ y = x^3$$
...
0
votes
0
answers
30
views
RMarkdown issue: {r child = here::here("scripts","rmd","analysis-part000.Rmd")}
I'm trying to clean up a long RMarkdown document based on this article that uses here::here() to dynamically build the folder structure from the base folder of the project.
My code successfully ...
0
votes
1
answer
33
views
How to format table cells in R Quarto HTML document (xtable)
I created an HTML-based R-Quarto document running on the knitr engine. In the example below, I set up the document, include dplyr, and try to format cells of mtcars that are above the column's average ...
-4
votes
0
answers
39
views
If `int? i = 2;` [closed]
I have inserted the following text for better accessibility during the study.
Task 1
Question:
I have inserted the following text for better accessibility during the study.
If int? i = 2;, which of ...
0
votes
0
answers
28
views
Error message while trying to knit an R Markdown
I'm trying to run an R Markdown in RStudio, but when I click "Knit", the following message appears:
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : ...
1
vote
2
answers
49
views
Getting source code of RMarkdown script from HTML output
Is there a way to inspect the source code of an output HTML document that was created from an RMarkdown document? I knit an RMarkdown document to HTML and I'm trying to find the source code of the ...
0
votes
0
answers
27
views
R Studio Recv failure: Connection was reset error after updating R Studio to latest version
I have a R script which calls another RMarkdown script in order to create an RMarkdown HTML document for each row in a dataframe column. Here's the basic script:
render_one <- function(case) {
# ...
0
votes
0
answers
14
views
Creating rmd with knit_child
my goal is to use the command knit_child in a rmd so that it will appeal another rmd for different
tree species for a study.
Here is the code of my rmd with knit_child:
---
title: "Untitled&...
1
vote
0
answers
35
views
Why is my R Markdown HTML document not getting saved?
I have a data table with different vegetation anomaly surfaces (surface) (remote sensing) which are classified according to different region names (Nom) and anomaly classes (class).
I would like my ...
1
vote
0
answers
44
views
html behavior inside R-shiny
I have a Rmd file with some math expression which I kint it inside R and get a html file:
---
title: "Random Markdown with Math"
author: "Example Author"
date: "2024-07-15&...
1
vote
1
answer
28
views
How to wrap text in a `gt::as_latex()` table
When using the R package gt to generate a LaTeX table, wrapping of very long column entries does not happen. I tried several options in tab_style(), but they did not have any effect on indentation:
---...
0
votes
0
answers
35
views
Using coord.fixed() in facetted ggplot creates white space above and below the plot in Rmarkdown (html, Pdf and doc)
Here is a short reprex
valN <- 2000
valCorr <- .7
matCov <- matrix(c(1, valCorr, valCorr, 1), byrow = TRUE, ncol = 2)
vecMeans <- c(0, 0)
MASS::mvrnorm(n = valN, mu = vecMeans, Sigma = ...