Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R Notebook splits code chunk when rendered #2586

Open
aloboa opened this issue Jan 4, 2025 · 0 comments
Open

R Notebook splits code chunk when rendered #2586

aloboa opened this issue Jan 4, 2025 · 0 comments

Comments

@aloboa
Copy link

aloboa commented Jan 4, 2025

Rmarkdown and notebooks sometimes render some chunks split: 1 single chunk
in the .Rmd file becomes >1 chunks in the HTML output.

I have found that a question in this regard was asked long ago:
https://stackoverflow.com/questions/57582773/r-notebook-splits-code-chunk-when-rendered
(and an even older question is referenced there), so I reproduce
the formerly reported problem as it is identical to my own:


---
title: "R Notebook"
output: html_notebook
---

```{r}
sample1 <- rnorm(40,10,3)
sample2 <- rnorm(40,10,3)
sample3 <- rnorm(40,10,3)
sample4 <- rnorm(40,10,3)
par(mfrow=c(2,2))
hist1 <- hist(sample1)
hist2 <- hist(sample2)

hist3 <- hist(sample3)
hist4 <- hist(sample4)

Image

https://rpubs.com/beane/521165

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant