Questions tagged [rnotebook]

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

Related tags

219 questions
0
votes
1 answer

Knitr weird problem with output languages

So I'm doing a report using Rmarkdown in Rstudio. Naturally, using Knitr to get the outputs. For the PDF output, I installed the tinytex package. The report is in english, so I'd like the date format to be in english. This is the start of the…
Watchatcha
  • 11
  • 4
0
votes
1 answer

Printing headers, plots, and tables in a loop in rmarkdown

I'm trying to use RMarkdown/R Notebooks to produce an automated report based on a single dataset broken out by department. Intuitively, I want to use a for loop that filters the dataset to a single department, provides a title, displays a few…
datakritter
  • 590
  • 5
  • 19
0
votes
1 answer

How to print specific rows in an r notebook document

I have recently started using R notebook to annotate my script and share information with colleagues. I have a data frame similar to data created below: t <- data.frame(test=c("FirstPt_vs_LastPt", "FirstPt_vs_First3", "FirstPt_vs_First5", …
Ryan
  • 1,048
  • 7
  • 14
0
votes
1 answer

How to use libraries across an r notebook?

I wish to use libraries across multiple .Rmd files in an r notebook without having to reload the library each time. An example: I have loaded the library kableExtra in the index.Rmd file but when I call it in another .Rmd file such as ExSum.Rmd I…
user2946746
  • 1,740
  • 3
  • 21
  • 36
0
votes
1 answer

Push an R dataframe to SQL as a new table

I'm trying to make my analysis workflow more efficient connecting my SQL Server Database to R-Studio. What I do now? I develop my queries using MS SQL Management Studio to extract relevant information for the analysis. I export the query result to…
Regressionist
  • 53
  • 1
  • 7
0
votes
0 answers

RStudio notebook, knitr, html output generated from packages and word file generated from notebook

Here is code from notebook: --- title: "R Notebook" output: word_document: default html_notebook: default --- ```{r} data(ToothGrowth) ``` ```{r} library(table1) table1(reformulate(colnames(ToothGrowth)),…
vasili111
  • 6,032
  • 10
  • 50
  • 80
0
votes
0 answers

Making SQL and R cells always run together in R Notebook

R notebooks allow us to write SQL code directly with a dedicated chunk defined by {sql}. However, that call isn't very useful until we get its output and process it in the next R chunk: ```{sql output.var="data"} SELECT * FROM foo ``` ```{r} dt =…
Wasabi
  • 2,879
  • 3
  • 26
  • 48
0
votes
0 answers

Make a graph discoverable in an R notebook

In an R notebook, is it possible to make a graph discoverable? I would like the graph to be revealed only when a user wants to see it. Imagine a situation where some readers may want to see a level of detail that I don't want to show by default,…
user2363777
  • 947
  • 8
  • 18
0
votes
0 answers

Insert picture in Markdown/Notebook specifying size

I want to make picture smaller and tried different ways but none of them worked.Please help {r, include=F} knitr::opts_chunk$set(echo = TRUE, fig.align="center", out.width=550, dpi=200) include_graphics(path = "time.jpg") I tried many things…
Vazgen
  • 51
  • 2
  • 4
0
votes
0 answers

using output of shiny in markdown

I’m working in a R notebook and I’d like to add some interactivity using shiny. So, I need that the user provide some text in an input field. Then, this text will used in different R chunks in the notebook. However, I wasn’t able to find the best…
ASC
  • 1
  • 1
0
votes
0 answers

New / overriding language engines in RStudio Notebooks

I'm supposed to be able to register new / changes knitr engines using: knitr::knit_engines$set(sql = function(options) { stop("At least I'm being used") NULL }) but when I use this in an RStudio notebook, my "special" sql engine isn't…
dsz
  • 4,542
  • 39
  • 35
0
votes
1 answer

R Notebook with dlookr package

I try to create Data summary with dlookr package. In normal R it works but in R notebook it has a notification like this: Error: pandoc document conversion failed with error 251 Anybody knows why?
itsmecevi
  • 51
  • 9
0
votes
1 answer

R Run chunk while folded/hidden in Rmarkdown RNotebook

I'm struggling to find anything like this on forums or manuals, but I would like to find this feature. Is there a way to run a chunk in Rstudio while keeping it hidden like below? This feature would be great when writing documentation/write-up…
puslet88
  • 1,288
  • 15
  • 25
0
votes
0 answers

How to turn off default notebook in R Studio

I want to change the default notebook to a blank one and I can't figure out how to turn off or change the default pre-populated notebook. There is already a question for this here Change RStudio Default R Notebook to blank , but I can't find the…
happyspace
  • 113
  • 1
  • 2
  • 12
0
votes
1 answer

Strange (distortred) output in RStudio notebook in R 3.5.1

I noticed strange behavior in RStudio notebook in R 3.5.1. I can reproduce the behavior by using this code: list() head(iris) At first, an empty list should be printed. Then, if any data frame is printed in either the same or another code chunk,…
GegznaV
  • 4,938
  • 4
  • 23
  • 43