Questions tagged [rnotebook]

R Notebooks are new feature of RStudio, and are currently available only in the RStudio Preview Release.

Related tags

219 questions
4
votes
0 answers

Latex equations are not displaying in R Notebook preview/output properly

Take for example $ \theta_{posterior} \leq -1.645*\sigma_{posterior}$ and $ \theta_{posterior} \geq 1.645*\sigma_{posterior} $ It displays perfectly fine in the R Studio Viewer. latex equation However, if I preview the file it merely displays…
BKV
  • 223
  • 3
  • 4
4
votes
2 answers

"Temporary name too long" error that appears unexpectedly using Rnotebook

While working with rnotebook I get the following error getting the output of a linear regression model via broom. This is a dummy example of what I encounter: N <- 100 a <- rnorm(N) b <- a + rnorm(N) df1 <- data.frame(a, b) lModel <- lm(b ~…
ogorodriguez
  • 103
  • 3
  • 9
4
votes
1 answer

Get Warning Message Using rbokeh in R Notebook

Running Ubuntu 17.10, and running R Notebook on RStudio through Anaconda. When I try to run the simple example from the rbokeh website in a R Notebook : p <- figure() %>% ly_points(Sepal.Length, Sepal.Width, data = iris, color =…
drizzle123
  • 517
  • 5
  • 18
4
votes
0 answers

R Notebook: One script, multiple HTML pages

I have a single R Notebook script that produces a lot of figures and I'd like to have it render as several navigable pages (rather than one long document with anchor tags). For example, a title page with clickable links. I could do this – and have…
Dan
  • 11,370
  • 4
  • 43
  • 68
3
votes
2 answers

newline or line breaks in rnotebook inline chunks

How to make newlines in inline chunks ? Rendering a word document --- title: "R Notebook" output: word_document --- Cat `r cat("not \n working")` writeLines `r writeLines("not \n working")` print `r print("not \n working")` capture.output + cat…
Samuel Allain
  • 344
  • 1
  • 7
3
votes
1 answer

collapsed TOC in R Notebook

I can't seem to get collapsed: FALSE in r-markdown's html_notebook. With the below YAML I do not get at collapsed TOC. --- title: "R Notebook TEST" output: html_notebook: toc: yes toc_float: TRUE collapsed: FALSE theme: flatly …
Eric Fail
  • 8,191
  • 8
  • 72
  • 128
3
votes
0 answers

arsenal::tableby and R Notebook: incorrectly added a row with NA

With the following code in a R Notebook file, I run arsenal::tableby from tableby help file. As shown in the screenshot, a row with NA has been added. I have tried both R Markdown and script, and they work fine. Is this a R Notebook issue or an…
Zhiqiang Wang
  • 6,206
  • 2
  • 13
  • 27
3
votes
2 answers

Table won't be displayed with head() in R Notebook

Code entered into R Notedbook: Code: --- title: "test" output: html_notebook --- knitr::opts_chunk$set(echo = TRUE) knitr::opts_knit$set(root.dir=WORKING.DIRECTORY) summary(cars) head(cars) Output:
3
votes
1 answer

R Notebook/Markdown does not save chunk plots using "fig.path = " chunk option

I'm running an analysis in an R Notebook and I would like all plots created in R chunks to be saved as individual PDF files in addition to appearing in the .nb.html notebook output. The problem The problem I'm having is that, when the notebook is…
Leo
  • 187
  • 1
  • 9
3
votes
2 answers

R Notebook splits code chunk when rendered

I am trying to display multiple plots side by side using par in an R Notebook. I have the code for all of the plots in a single code chunk as follows: However, when I render the document in html, the code chunk get split into multiple pieces: I…
Beane
  • 306
  • 1
  • 4
3
votes
0 answers

Remove Space between author and subtitle when knitting to powerpoint in RStudio

I am knitting to powerpoint using rmarkdown. I am trying to remove the spacing between the subtitle and the author within the title slide. Here is the following code: --- title: "Untitled" subtitle: "subtitle" author: "author" date:…
daszlosek
  • 1,366
  • 10
  • 19
3
votes
0 answers

How can I change dpi inline code output in notebook Rmarkdown

I know how to change the dpi of a plot when knitting a rmarkdown notebook to html. However is there a way to change the dpi of a plot generated in a rmarkdown notebook without having to knit the document, id est the plot is shown as inline output…
JL B
  • 109
  • 7
3
votes
2 answers

Using include_graphics in R Markdown does not reproduce the image in HTML file

I am attempting to use R Markdown Notebooks (.Rmd files) in R Studio to capture notes and excercises while learning R programming. I find that any plots generated through the code chunks are being replicated in the corresponding html file correctly,…
Fiddler
  • 31
  • 1
  • 2
3
votes
0 answers

R notebook: rerunning chunks in different parts of code

Is there a way to rerun chunks in R notebook? In knitr it is possible to rerun chunks simply by referencing their name. E.g. like this below, only the second chunk would output the result (source…
puslet88
  • 1,288
  • 15
  • 25
3
votes
0 answers

R notebook with embedded shinyapp : Pass a variable from shinyapp chunk to next code chunk

I would like to embed several standard and shinyApp chunks of R code in R notebook: I start with YAML --- title: "R Notebook" output: html_notebook runtime: shiny --- Next I load libraries ```{r} library(tidyverse) head(iris) iris1<-iris %>%…
Jacek Kotowski
  • 620
  • 16
  • 49
1 2
3
14 15