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

R Notebook how to prevent messages when loading packages

I have created the following R Notebook in RStudio: --- title: "test" author: "by me" date: 'last updated: Jan 23, 2022' output: html_notebook: toc: yes toc_float: yes number_sections: yes highlight: haddock --- # First…
deschen
  • 10,012
  • 3
  • 27
  • 50
0
votes
0 answers

Do I need to import a file every time I use R Notebooks?

I have a question for the community. Am I required to have a line to import a file whenever I knit an R Notebook file? The dataframe I'd like to use is already in memory as part of my global environment, but unless I include an import line I get the…
benh56
  • 37
  • 5
0
votes
1 answer

r notebook html output has incorrect order and strange error

I am having a strange issue with an R notebook file. I believe the error may have started when I converted to a markdown file and then back to notebook. In my R script, I have no issues and everything is in order. When I knit the notebook to HTML, a…
ancase
  • 47
  • 5
0
votes
0 answers

Reading in an Excel file with multiple tabs in R

I've browsed and browsed but cant seem to find a solution on here that fits my case. I have an Excel file with 4 tabs. Each tab is formatted exactly the same- 2 columns and 12 rows (including headers). The columns headers are all titled as "Slow…
0
votes
2 answers

Creating an R markdown/notebook template file: can I define code chunks to be folded when the `.rmd` file is opened in Rstudio?

I'm creating a template file for R markdown / R notebook. There are several code chunks that I wish will remain folded when the .rmd is being opened. Is this possible? Example Let's say that we have the following code, and we save it (without the…
Emman
  • 3,695
  • 2
  • 20
  • 44
0
votes
1 answer

R notebook: Rmd and html do not match

I have a .Rmd --- title: "R Notebook" output: html_notebook --- ```{r} dplyr::glimpse(cars) ``` When I execute the chunk, I get the expected output: However when previewing the notebook I see artifacts: What is going on here? I restarted R, and…
piptoma
  • 754
  • 1
  • 8
  • 19
0
votes
0 answers

Suppress ulam() messages in R notebook

I have the following code: m1 <- ulam( alist( Y ~ dnorm( mu , sigma ) , mu <- a + b*( p ) , a ~ dnorm( 0 , 0.5 ) , b ~ dlnorm( 0 ,0.1 ) , sigma ~ dexp(1) ) , data=d, chains =2, cores=2, messages =…
zlon
  • 812
  • 8
  • 24
0
votes
0 answers

Change color plot3d (rgl) at R notebook

I'm trying to change the color using a specific column (characters) with plot3d (rgl), but it don't change color and just show white spheres. I used col=as.numeric() because saw a example with this. The only message I get is NAs introduced by…
0
votes
0 answers

R notebook html only display code but doesn't show output

I m trying to run basic summary() function with r notebook. When ı run the code, its works properly and ı can see code and output on the console but when ı look at the preview I can just see code and output of summary function does not display And a…
Ozgur Alptekın
  • 505
  • 6
  • 19
0
votes
1 answer

remove margin R notebook

How can we remove margin in the output ?
John john
  • 437
  • 3
  • 13
0
votes
1 answer

Put date and author in the same line and an horizontal line right after - YAML HEADER

I am trying to insert a horizontal line (---) right after this header below, but the line is being placed in the wrong position, invading the header area. It began happening when I added float configs in the css. Any sugestions of what is…
daniellga
  • 1,142
  • 6
  • 16
0
votes
1 answer

How to change image height in RNotebook

I want to increase the height of an image that is generated by RNotebook. When I use fig.height chunk option, it merely decreases font sizes and marker sizes, but picture remains the same. For example: and here is result with fig.height=3: How…
Ilya V. Schurov
  • 7,687
  • 2
  • 40
  • 78
0
votes
0 answers

R notebook corrupted on Windows

I have no idea how but a file I worked on just yesterday looks like this now I'm on a Windows 10 computer running R version 3.6.3. Any advice on how to restore the file would be appreciated. Also the history of commands for that file appears to…
Jin
  • 527
  • 6
  • 21
0
votes
1 answer

R notebook tibble output from code chunk corrupted when paged.print = FALSE

I want to create a R Notebook and also output code chunks displaying a tibble. When I set the paged.print parameter in the code chunk to FALSE, the output looks corrupted. The weird thing is, yesterday I'm 100% sure that I was able to create tibble…
deschen
  • 10,012
  • 3
  • 27
  • 50
0
votes
1 answer

R notebook create non-R code chunk output with grey background

I want to create a R Notebook/markdown output and am failing hard with formatting code chunk outputs. When creating a code chunk where I don't specify the language, the code chunk is always printed with white background, whereas code chunks…
deschen
  • 10,012
  • 3
  • 27
  • 50