Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
11 views

How to change the line-height only in the code chunk when using Rmd in Rstudio

I'm looking for a way to modify the .rstheme file and adjust the line-height in a R markdown document. Specifically I want the code chunk in the Rmd file to have a line-height of 1.2 and for the other ...
m3m3m3's user avatar
  • 1
3 votes
1 answer
40 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. ...
Coppertank's user avatar
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 ...
William's user avatar
-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$$ ...
stats_noob's user avatar
  • 5,705
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 ...
Marc Alexander's user avatar
0 votes
1 answer
34 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 ...
javery's user avatar
  • 15
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]]) : ...
Max's user avatar
  • 1
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 ...
DiamondJoe12's user avatar
  • 1,685
0 votes
0 answers
28 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) { # ...
DiamondJoe12's user avatar
  • 1,685
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&...
aureldln's user avatar
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 ...
Camille_brnd's user avatar
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&...
Haribo's user avatar
  • 2,154
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: ---...
Lukas D. Sauer's user avatar
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 = ...
cpsyctc's user avatar
  • 91
1 vote
1 answer
39 views

Quarto delete plot files after rendering

The directory for the plot files is generated but once the docx document is rendered the plots and directory disappear. I have never experienced this before. Is this an MAC OSX thing? I can't ...
Ross D's user avatar
  • 381

15 30 50 per page
1
2 3 4 5
581