R Notebook - code chunk gets separated in preview

帅比萌擦擦* 提交于 2019-12-22 09:37:27

问题


I am using R notebook to preview the file. Even though all the code is in one chunk, a line gets separated into two. Would you please tell me how I can resolve this?

As you can see all the code is in one chunk.

However, when I run this chunk, it gets separated into two.

I am not sure if it matters but here is the code I am running.

library(MASS)
par(mfrow=c(3,1)) 

hist(galaxies, breaks=500)
hist(galaxies, breaks=100)
hist(galaxies, breaks=50)

Also here are the versions of R and RStudio. I an new to R so I am not sure what is causing this. If you need any other information, please let me know. Thanks

R version 3.3.2 (2016-10-31)
Rstudio version 1.0.136

来源:https://stackoverflow.com/questions/41948427/r-notebook-code-chunk-gets-separated-in-preview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!