R Notebooks are new feature of RStudio, and are currently available only in the RStudio Preview Release.
Questions tagged [rnotebook]
219 questions
0
votes
0 answers
ggforest output not visible in r-notebook
I am trying to show a ggforest plot, the plot gets rendered perfectly in r-studio but it does not show up in r-notebook.
Here is a reproducible example.
library(ggplot2)
library(survival)
library(survminer)
data("veteran")
cox = coxph(Surv(time,…

Gaurav Singhal
- 998
- 2
- 10
- 25
0
votes
1 answer
Is there a way to add rows to an r dataframe which default to inheriting the previous row's value?
Thank you in advance for answering this question, and I will accept tips on improving my question asking on here as this is my first time!
I have am pulling data into an r-Notebook from our SQL Server into a dataframe which is attached to clients…
0
votes
1 answer
How to increase number of columns displayed inside R Notebook in RStudio?
A possible duplicate of this unanswered question, adding code/screenshot here to hopefully clarify what the issue is.
When I run a chunk that outputs a data frame, I'm only getting one column per screen. I.e., running
library(tidyverse)
df %>%
…

Khashir
- 341
- 3
- 20
0
votes
0 answers
How to set knitr syntax highlighting themes in R Notebooks?
I'm trying to get one of the knitr highlight themes applied to my R Notebook, but what I'm doing doesn't work (in both the Notebook Preview and the Knitted HTML file.)
Can you explain to me what the proper way to do this is?
Thanks!
---
…

Carmen Sandoval
- 2,266
- 5
- 30
- 46
0
votes
2 answers
How to export the summary of a plsr model to nice HTML table in R
I would like to export the summary of a plsr model (pls package) to a nice table (preferably HTML). I am aware of nice methods for lm models, but I am curious if someone out there knew of a quick way to extract the information from plsr and format…

andemexoax
- 323
- 3
- 15
0
votes
2 answers
Elegant way to embed statistic contingently in r markdown/notebook [r]
I want to embed statistics in an rMarkdown/notebook depending on whether an if test is passed.
I haven't found a question that addresses this in SO, but apologies if I've overlooked it.
Based on this link I found how to use an if statement to…

beepingbopping
- 150
- 13
0
votes
1 answer
Shiny DT and user form
I have worked on this google form from a shiny example, it has expanded and I would like to sort the numeric inputs and to show when the users save the data the last ID= rowname= entry, the other numeric variables are obvious. you can see my fail at…

Bruno
- 4,109
- 1
- 9
- 27
0
votes
0 answers
Latex inline in RNotebook html
I'm having trouble displaying latex maths symbols inline in a notebook:
---
title: "R Notebook"
output:
html_document:
df_print: paged
---
```{r, echo=F, message=F, warning=F, results="asis"}
cat("Latex attempt 1: $x = 5$ \n\n") #…

conor
- 1,204
- 1
- 18
- 22
0
votes
1 answer
Passing data from python chunk to R environment in Rnotebook
I've got some data given to me in a python shelve file, I want to pass it to R for plotting. my code to extract it looks like this:
Try executing this chunk by clicking the Run button within the chunk or by placing your cursor inside it and pressing…

kmace
- 1,994
- 3
- 23
- 39
0
votes
1 answer
Loading .RData file into Data Science Experience
I am trying to load a .RData file into my R Notebook in DSX. I have followed the instructions in this notebook (https://apsportal.ibm.com/exchange/public/entry/view/90a34943032a7fde0ced0530d976ca82) but am still unable to load my data. So far, I…

Venky
- 13
- 5
0
votes
1 answer
Using regular html_document YAML tags with RNotebook
As the title - I want to be able to use YAML tags like toc: true and toc_float: true for use in an RNotebook file. Currently I have this:
```
title: "R Notebook"
output:
html_notebook:
toc:true
Section 1
This is an R Markdown Notebook.…

T.Holme
- 473
- 4
- 17
0
votes
1 answer
The tables in the .Rmd file are not displayed properly when exporting the file to HTML
I have a .Rmd file and I want to export it to a HTML file.
But the tables look wrong. In Rstudio the table looks good:
But when I export it to HTML (or PDF, Word, clicking on 'Knit'), then the table is not displayed properly:

phez1
- 1,477
- 3
- 14
- 19
0
votes
0 answers
Prevent R source code from export to html
I'd like to prevent the R source code of my R notebook not only from not being displayed, but I want it to disappear from the html file entirely. Same for the [CODE] button in the top right corner.
So far, I've only found
code_folding: hide
but…

Me Myself
- 105
- 6
0
votes
1 answer
R notebook chunks don't want to evaluate code but still show it
we've been trying to show only the code on the R-Notebook using RStudio but so far we are not able to do it.
In theory it's very simple and if you put any of these expresions on the chunk, it will get our dessire output:
{r, eval=FALSE,…

Andres prado
- 1
- 1
0
votes
0 answers
How to use relative paths, relative to the project directory in an Rstudio notebook?
When working inside an R project, I like to use relative paths, relative to the root of the project directory. Since a couple of weeks, I have upgraded RStudio to the latest version which includes "R Notebooks".
Notebooks are great but the options…

Paul Rougieux
- 10,289
- 4
- 68
- 110