R Notebooks are new feature of RStudio, and are currently available only in the RStudio Preview Release.
Questions tagged [rnotebook]
219 questions
1
vote
0 answers
Selecting the 'hide' button in the html notebook generated from Rmarkdown in javascript/jquery
According to the R Markdown: The Definitive Guide, you can use jquery to select elements of the notebook and modify them.
It works well for the text elements and even the code chunk, but for some reason it doesn't find neither the '.row' div nor the…

Salix
- 1,290
- 9
- 15
1
vote
1 answer
R Error creating notebook: clipboard mode
I'm getting an error I've never seen before when trying to preview my R notebook. I get the following error from RStudio.
It only happens on the one notebook and there are no errors from R itself in the console running all the chunks, and they seem…

Robin_H
- 65
- 5
1
vote
0 answers
RMarkdown size directives ignored for in-document chunk output when using html_notebook_output_html or kable
In an r notebook viewed in RStudio, I can have the following yaml, setup, r chunk, and text:
---
title: "R Notebook"
output:
html_notebook:
fig_height: 2
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(fig.height=2, fig.width=2,…

pwilcox
- 5,542
- 1
- 19
- 31
1
vote
2 answers
Print an R help file vignette as output into an R HTML notebook
I'm trying to print an R help file vignette in an R notebook chunk for output into an HTML file. I want the entire vignette to show up as output in the HTML notebook preview because it serves as a nice data dictionary for a quick regression example.…

bandwagoner
- 115
- 6
1
vote
1 answer
How to fix Rmarkdown error "could not find the function". However notebook preview works
So i prepared notebook in R and then knitted it to html. Everything was perfectly fine, but later on when i updated data, so i changed one line of code, i started to get error:
Error in ggplot(data = mydata, aes(x = fct_infreq(as.factor(worker)))):…

M.wol
- 901
- 3
- 10
- 21
1
vote
1 answer
How to cite papers and books in R notebook [R]
I would like to ask how to cite in R notebook like in the latex, for example when one get publication and get citation norm from google scholar:…

Petr
- 1,606
- 2
- 14
- 39
1
vote
0 answers
How do I remove vertical scroll using DT library in R?
what I have right now
I am trying to display the first six observations of my data set, but since I have 79 variables the columns don't fit all in one line. I managed to add a horizontal scroll bar using the DT library (so now the output chunk is a…

yoyo_24
- 13
- 6
1
vote
1 answer
How to fix Error in file(file, ifelse(append, "a", "w")) : cannot open the connection in an R Notebook
I am learning R Notebook currently and I am having a path problem. I have made an R project and hosted all of my scripts and files in a folder containing the R project. I am trying to run:
Next, install…

MBell
- 57
- 1
- 8
1
vote
0 answers
Plot recorded with recordPlot() not showing in Rnotebook
I am having trouble displaying plots inline on R notebook that I have created using the recorPlot() function. The chunks run without error but the recorded does not show.
Below is a toy example.
The second chunk does not output the plot inline, as…

bprallon
- 41
- 1
- 5
1
vote
1 answer
Error when trying to Preview R Notebook. Code execution works, but conversion to notebook fails
I've been trying to trouble shoot an error in R notebook where the R chunks execute correctly, but when I try to preview the notebook, I get the following error:
Error creating notebook: values must be length 3, but FUN(X[[1]])result is length 1.…

KatP
- 45
- 7
1
vote
1 answer
YAML issue when knitting to pdf
I have a paper written in rnotebook, which I want to knit to pdf.
this is the beginning of it, including the YAML:
---
title: "Are shifts between points of view challenging for readers? An examination of readers' eye movements in response to Woolf's…

Grig
- 109
- 1
- 10
1
vote
1 answer
Conditionally execute cells in Rnotebook that contain markdown and inline code chunks
I am using an R Notebook to generate a personalized report for multiple people. Each report will be based on a different subset of the same dataset. Within the report, I have a section there I talk about the "most positive number" in a list of…

CurtLH
- 2,329
- 4
- 41
- 64
1
vote
1 answer
Low quality graph rendering with html_notebook (R-markdown)
I'm having an issue with the low-quality graph output when saving html_notebook in R markdown.
I tried changing the dpi and fig.retina settings of the chunks but didn't see an impact. This only happens when rendering .nb.html preview file. When I…

Atakan
- 416
- 3
- 14
1
vote
1 answer
R: expss package: possible to automate table generation?
I'm looking for a way to automate table generation using the expss package in an attempt to move from spss to R.
I think this should be simple but I seem to miss something...
I only define a few different tables based on the question type.
Eg. the…

michaela stubbers
- 61
- 3
1
vote
0 answers
Bookdown rendering r-notebook
Rendering an Rmarkdown with bookdown as output works OK with: bookdown::html_document2 but seems to miss cross referencing (e.g. \@ref(someID) when output is set to html_notebook.
Is there a way to include this into an r-notebook?

George
- 11
- 2