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

Generating Dropdown menu for ggplotly heatmaps

Is it possible to create a chart for R Notebook that switches between multiple ggplotly heatmaps by using a dropdown menu? There is a related post here and here that I have found hard to adapt for the purpose of using heatmaps from ggplotly in…
Camilo
  • 153
  • 7
0
votes
1 answer

R notebook not displaying dataframe correctly

My code is nut running as expected in Kaggle's notebook. It works fine in Rstudio. I have a list, it consists of 12 csv files brought in via read.csv. I use a for loop on the list and apply complete.cases to each member of the list. When I try to…
0
votes
0 answers

Quarto notebook stuck at google client auth

I am using a quarto notebook to interact with google drive using python. I instantiate the google client using the following code import gspread import gspread_pandas as gsp from googleapiclient import discovery ## Default config stored in…
0
votes
1 answer

How to view more than 10 rows for a table in RStudio Notebook

I'm using RStudio's R Notebook and would like to view 12 rows in my table, rather than have it limited to 10. I know you can click through to see the last two but I'd like to show all 12. I have tried: head(table_name, 12) but that doesn't work.…
threeisles
  • 301
  • 2
  • 8
0
votes
0 answers

Error when rendering notebook: unexpected symbol

I have an R Notebook script with the setup chunk defined below. I keep getting this error: Error in source("~/Documents/testing.Rmd") : ~/Documents/testing.Rmd:11:9: unexpected symbol 10: # Setup 11: Ensures that I've read other threads…
Chantal
  • 23
  • 5
0
votes
0 answers

is there a R function for datetime in Kaggle notebook? i can't change date format in R kaggle notebook

I can't change date format in R kaggle notebook. Is there a separate function for it in kaggle? I tried installing 'tidyverse' and lubridate. Tidyverse installed but lubridate did not. I tried changing date format of my data, it did not work.
0
votes
0 answers

rnotebook latex issue

Apologies in advance because I do not know how to communicate this question via code. I have an R Notebook document with some latex (maybe not formally latex, but it's mathematical notation). Previously, when the document was in visual mode, I…
R_user1233
  • 450
  • 1
  • 4
  • 9
0
votes
0 answers

Modifying a variable within a %%timeit cell doesn't change the variable

If in the first cell I write: %%timeit a = [1, 2, 3, 4, 5, 6, 7] a.append(0) when printing a in another cell, I don't have [1, 2, 3, 4, 5, 6, 7, 0], I thought I would've have it because after defining a and appending 0 n times, I would get the last…
0
votes
0 answers

Problems with plot size in preview window in RNotebook: Only latest plot of chunk is shown in full size, previous plots remain small

I have a problem with the preview window of plots from RNotebook. I am running GAM-models for different tree species and store them in a nested dataframe. When I afterwards run some model diagnostics or plotting function in RNotebook an odd…
Josef
  • 21
  • 2
0
votes
0 answers

Hyperlinking an Excel and prism documents into an RNotebook

I am wondering if there is a way to hyperlink an excel or prism file into a knitted RNotebook so that I can easily refer to the linked files.
0
votes
0 answers

Error Trying to knit document to PDF using RNotebook 'contrib.url error'

I am new to Rstudio, so this issue is likely very straightforward. I cannot knit my RNotebook document to a PDF. When I go to knit the document, I receive the following error : Calls: ...eval_with_user_handlers -> eval -> install.packages…
0
votes
0 answers

Unable to knit Rnotebook to PDF

I'm using RStudio cloud and I have around 5 projects in my workspace. I use Rnotebook (Visual mode) and I can only knit 1 notebook to PDF. For the rest 4 notebooks, when I knit them to PDF, it automatically knits to HTML. Has anyone experienced…
0
votes
1 answer

In the TOC for the generated PDF of an R Notebook, section numbering and long heading text are garbled together. How can I fix it?

I have an R notebook which is knitted to PDF. For log headings, the section numbering and the text kinda print on top of each other. The only solution so far which I do not appreciate is to switch the fonts.
Sasha Babaei
  • 455
  • 3
  • 8
0
votes
0 answers

Preview on save does't work RStudio, but Preview works fine

On RStudio 2022.02.0 open new R notebook, change nothing, check 'Preview on Save', save document, and I get the following console output: source("~/Desktop/file.Rmd") Error in source("~/Desktop/file.Rmd") : ~/Desktop/file.Rmd:6:6: unexpected…
Hal
  • 75
  • 6
0
votes
1 answer

SQL chunks in R - Multiple statements and temp tables

I'm trying to run a SQL script inside an R notebook chunk. However, the final SELECT returns no results if it is preceded by multiple SQL statements (that don't generate result sets) within the same chunk. I have a functioning connection. The…
Jai Jeffryes
  • 511
  • 5
  • 12