R Notebooks are new feature of RStudio, and are currently available only in the RStudio Preview Release.
Questions tagged [rnotebook]
219 questions
3
votes
2 answers
Rstudio notebook viewer doesn't show the code
I have recently downloaded the Rstudio and I created a R Notebook. However the "Viewer" doesn't show me the Notebook when I save it (in the instructions says it works). I have seen the same issue in other forums, but with no answers.

Chris
- 2,019
- 5
- 22
- 67
3
votes
0 answers
R Notebook doesn't show the output in the preview and in the .nb.html file
In Rstudio, I open a R Notebook, I run all chunks (I use the default script of Notebook). The "plot(cars)" display inline the plot. I save the Notebook (doc.Rmd). When I click on Preview, no output is shown in the preview. And no output is shown in…

DAT
- 31
- 2
3
votes
1 answer
Externalise config file and functions in R markdown
I am having problems understanding the (practical) difference between the different ways to externalise code in R notebooks. Having referred to previous questions or to the documentation, it is still unclear the difference in sourcing external .R…

gented
- 1,620
- 1
- 16
- 20
3
votes
2 answers
Rnotebook not showing code output for data frames
My code chunk output in Rnotebook is not appearing (as if not being run) when I try to view data frame results. I have to pass it through the pander() function to see the output print out. Is this something to do with knitr? I mention this because…

ogorodriguez
- 103
- 3
- 9
3
votes
0 answers
rstudio notebook pandoc.exe out of memory
When I'm using R notebook and always getting error message like
'pandoc.exe.. out of memory'.
And the code chunk seems to freeze and cannot be executed.
Can someone educate me how it works and why it happens? I tried to google the solutions.…

zesla
- 11,155
- 16
- 82
- 147
3
votes
1 answer
Prevent chunk evaluation in R Notebook interactive
Using the chunk option eval=FALSE one can suppress chunk evaluation in an RMarkdown file or R Notebook when it is knit. Is there a way to make this apply during interactive running of the document in RStudio (i.e., making "run all chunks" skip…

Empiromancer
- 3,778
- 1
- 22
- 53
3
votes
0 answers
R notebook: opts_chunk$set doesn't work
I'm trying to set echo=FALSE as a default chunk option, but opts_chunk$set(echo = FALSE) doesn't work for notebook output.
Take this .Rmd file, for a regular R Markdown doc
---
title: "Problem with opts_chunk in html_notebook"
output:…

arvi1000
- 9,393
- 2
- 42
- 52
3
votes
3 answers
Using Python within R notebook
I have been using ipython (Jupyter) notebook for my tasks with R and Python. Recently, I explored R Notebook and I found the kind of functionalities I wish they were in Jupyter Notebook implemented in R Notebook. So, I want to switch to R Notebook.…

Fisseha Berhane
- 2,533
- 4
- 30
- 48
3
votes
0 answers
Problems with simultaneous use Sankey and d3tree htmlwidgets on R Notebook?
I use R notebook for data analysis report.
I want to render Sankey and d3tree htmlwidgets on R notebook simultaneously.
I put snakey and then d3tree example code in r chunk, output is well printed on rstudio.
When I entered preview button,…

Rokmc1050
- 463
- 1
- 6
- 16
3
votes
0 answers
R Notebook and R Markdown documents "tricked" by data.table `:=` assignment?
The title of this question refers back to this question that was answered a couple of years ago.
The issue raised and resolved there with data.table and knitr seems to have reappeared with the relatively new R Notebooks from RStudio and R Markdown.…

Corey N.
- 159
- 11
3
votes
1 answer
Add native knitr print methods
I'm looking for a way to adjust functions which usually show html tables in the viewer or browser in a way that they automatically insert the html in knitr documents like rnotebooks when called.
Specifically I want to change the way functions in the…

methodds
- 85
- 8
3
votes
1 answer
Why are special characters like æøå not shown correctly when in chunks, but is correct when in inline code in R Notebooks?
When I write Norwegian text in R Notebook and produce an HTML_NOTEBOOK output, it shows the characters æøå correctly in the document text as well as in inline R code. But when the same text is part of an R code chunk, the characters are not shown…

Snohan
- 31
- 6
3
votes
0 answers
R Notebook and SQL Code in Output html file
I am running R Notebook with sql code, but the SQL code is not displayed in the final html output file
```{sql connection=db}
SQL QUERY
```
The R Code is displayed as usually.

user2963882
- 625
- 1
- 8
- 19
2
votes
0 answers
R Error: "attempt to use zero-length variable name" when using "Preview on save"
It seems there is a problem on "Preview on Save" option in RStudio 2022.07.1 Build 554.
The code below is saved as "tmp1.Rmd". I can run chunks, and I CAN use Preview button (it works). But I can NOT save with "Preview on Save" option set.
When I…

xm1
- 1,663
- 1
- 17
- 28
2
votes
0 answers
What determines the default column width for dataframes in Rmarkdown documents?
I know there are a few packages out there for customizing the look of the output tables for rmarkdown documents, like knitr and flextable. I'm considering using those, but I'm curious, if you don't use them, what determines the column width for…

Sam Asin
- 131
- 9