Questions tagged [rnotebook]

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

Related tags

219 questions
1
vote
0 answers

R dropdown menu with plotly with table

I would like insert a lot of tables in my notebook, but to gain place, insert a dropdown menu to select one. I tried to copy the same method than for a plot, I have my dropdown menu but it is not updating...My dataframe are in a list. I think we…
Aurélien
  • 103
  • 3
  • 12
1
vote
1 answer

R plotly list of dataframe with updatemenu

I have a list of dataframes, I would like use updatemenu in plotly to plot the dataframe wanted. My dataframes are identical. Temps VA PIB DCF FBCF NetExpBien NetExpServ Pays 2017-10-01 1 1.119052 0.8467021 0.2301707 0.01787727…
Aurélien
  • 103
  • 3
  • 12
1
vote
0 answers

In R Notebook, how can I set my API key without saving it directly in the Notebook?

I am writing an R-notebook that uses an API to fetch data, e.g. Quandl. For my API function calls to work I must first set my API key. I want to share the notebook code with other developers on my team, but I do not want them to have access to my…
FistOfFury
  • 6,735
  • 7
  • 49
  • 57
1
vote
0 answers

Programatically generate titles in R notebook

I am trying to generate a report in R notebook where a large number of plots are generated. I am trying to use the H1 tag to have a nice table of content but whenever I run my code. I get the titles bunched up at the top and the graphs bunched up at…
Jrakru56
  • 1,211
  • 9
  • 16
1
vote
1 answer

How can I stop by code blocks from splitting in preview of R Notebook?

```{r scatterplots, collapse=TRUE, results= 'hold'} p1 <- ggplot(x, aes(y=f.ecdf, x=P2))+geom_point()+theme_bw() p2 <- ggplot(x, aes(y=f.ecdf, x=P2))+geom_point()+theme_bw() p3 <- ggplot(x, aes(y=f.ecdf, x=G1))+geom_point()+theme_bw() p4 <-…
maximusdooku
  • 5,242
  • 10
  • 54
  • 94
1
vote
1 answer

Why does my R notebook produce a blank html document

For some reason, my R notebook is producing a blank HTML document. When I'm ready to knit the document to an html notebook, my browser opens up the file and it is a blank document. I'm pressing the "knit" button, then "html" from R Studio. Here…
Jordan
  • 1,415
  • 3
  • 18
  • 44
1
vote
0 answers

DataFrame Output Not Rending Inline as DT after R Upgrade

I'm running Windows 10 and recently upgraded from R 3.4.4 to 3.5.0 using the installr package. I use R Notebooks exclusively for all my R activities and love how dataframe (and similar objects) are rendered inline at DT (datatables). Unfortunately…
ansek
  • 443
  • 3
  • 17
1
vote
1 answer

Incorporating Content Security Policy (CSP) in R-Notebook

I am very new to the R Notebook universe and have been blown away by the ease and efficiency of the R Notebook --> knitr --> HTML workflow. I have mainly been using the rmdformts and Tufte templates. My institution has recently implemented something…
1
vote
2 answers

R notebook html doesn't show the complete code

I am working with a R notebook and it is very important to me that the final HTML page will show all the code and the outputs. Right now, when I look at the preview, some chunks of code only show the last part of the code while I want it to show…
1
vote
1 answer

How to set up R environment for a team project?

I am going to be in a team project. We do not have much time, so people will need to work at the same time on the project and quickly share their code. What would be the best way to do it? I had two ideas: git and R Jupyter Notebook I know there…
oleks5412
  • 75
  • 7
1
vote
1 answer

No code displayed when I open the compiled R notebook

I am using R Studio V 1.1.423. I create and save R Notebook files but once I open the .rmd files in R Studio I only get a completely blank page with no code displayed. However the html files work fine when opened in the browser. Any suggestions…
Raoul
  • 11
  • 1
1
vote
1 answer

R notebook font size

What are my options for changing the font size of dynamically-generated output, when rendering to a PDF? My document currently looks something like this: --- title: "Foo" author: "Bar" date: "`r format(Sys.time(), '%B %e, %Y')`" output: …
Ken Williams
  • 22,756
  • 10
  • 85
  • 147
1
vote
0 answers

How to specify figure sizes by using fig_height & fig_width in R Notebook

I encounter a problem about the figure size when I using R Notebook. The fig_height & fig_width did not work in html_notebook when I set the fig_height: 2 &fig_width: 2 as below. --- title: "R Notebook" output: html_notebook: fig_height: 2 …
fallsit
  • 11
  • 1
  • 6
1
vote
0 answers

Blank plot when using cowplot with RNotebook

Say I have the RNotebook below. --- title: "R Notebook" output: html_notebook --- ```{r} library(cowplot) library(ggplot2) g <- ggplot(mtcars) + geom_point(aes(mpg, hp)) plot_grid(g,g) ``` When I run this I get a blank plot and then the actual…
Dan
  • 11,370
  • 4
  • 43
  • 68
1
vote
2 answers

Error creating notebook: no lines available in input

When trying to Preview a simple notebook in RStudio, I am getting the following error in the top of the source pane and no nb.html file is created: "Error creating notebook: no lines available in input" Screenshot: > sessionInfo(package =…
mifek
  • 41
  • 2