Skip to content

R Notebook splits code chunk when rendered #2586

Open

Description

@aloboa

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions