Skip to main content
Filter by
Sorted by
Tagged with
3 votes
1 answer
65 views

In a kaggle notebook, when writing library(tidyverse) starwars I receive the following error: ERROR while rich displaying an object: Error in (function (..., row.names = NULL, check.rows = FALSE, ...
Dario Lacan's user avatar
  • 1,172
0 votes
0 answers
25 views

i have problems with the plots in my RNotebook. Because i print them in a for-loop they appear collected at the end of the RNotebook html and not and not at the point in the code run where I would ...
Marina's user avatar
  • 1
1 vote
1 answer
2k views

# The following is fictional enrollment data for different majors in a liberal arts college enrollment <- c(100, 250, 45, 95, 400) major <- c("Political Science", "Math", &...
William Harris's user avatar
2 votes
1 answer
282 views

I have a notebook in Azure Machine Learning Studio Workspace, and I have also created a compute cluster in the workspace. Now, I want to trigger this notebook from a Databricks notebook. I have ...
Sadman Saadat's user avatar
0 votes
1 answer
909 views

I want to add tabs in Quarto. I will have 8 tabs, so i decide to make aloop in order to generate sections of text and print a dotplot under each tab. I try the following code. The code must print ...
FalleS's user avatar
  • 21
1 vote
0 answers
209 views

I am receiving an error when saving my R Notebook (.Rmd) file in R Studio. The notebook seems to be saving correctly but I can't figure out what is causing the error and if there is an impact of the ...
dev's user avatar
  • 37
0 votes
0 answers
100 views

I have an r notebook, and I want all coding chunks to be hidden while their output is still displayed. I know I can add echo=F in the beginning of every chunk, but can I do it globally? Thanks in ...
Tsof's user avatar
  • 11
0 votes
1 answer
54 views

i was working on a report but my data is on a private network so at retrieving the data to my rmd file usually takes to long to knit. Looking out on Internet i found that you can actually add cache=...
Miguel Carrillo's user avatar
0 votes
1 answer
107 views

Since last year (at least), Safari has been very unreliable in rendering PDFs plots in R Markdown HTML notebooks. The notebook HTML files are interpreted with an empty gray box where the PDF plot ...
Ricardo A.'s user avatar
1 vote
1 answer
98 views

I wrote a R code to display multiple images in one: library(tidyverse) library(fable) myfit <- tsibbledata::global_economy |> filter(Code %in% c("CAF", "AUT")) %>% ...
Mangiafoco's user avatar
0 votes
1 answer
168 views

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 ...
Camilo's user avatar
  • 449
0 votes
1 answer
70 views

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....
Joe Mcsweeney's user avatar
0 votes
1 answer
931 views

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:...
threeisles's user avatar
0 votes
0 answers
551 views

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:...
SilvaC's user avatar
  • 141
1 vote
1 answer
419 views

I have been looking at advanced interactive plots in Shiny and I am struggling with how to accomplish a brush and double click zoom on an image, as opposed to a plot. To further complicate matters, I ...
dragon951's user avatar
  • 396
0 votes
0 answers
26 views

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). ...
R_user1233's user avatar
1 vote
1 answer
51 views

I was just wondering if it is possible to loop over a r-notebook from an external r file? My dataset contains a group variable "group" and I should generate a report for each of the 32 ...
D. Studer's user avatar
  • 1,893
2 votes
0 answers
85 views

It seems there is a problem on "Preview on Save" option in RStudio 2022.07.1 Build 554. The code below is saved as "tmp1.Rmd". I can run chunks, and I CAN use Preview button (it ...
xm1's user avatar
  • 1,805
1 vote
0 answers
345 views

I add "fig_caption: TRUE" to the default R Notebook example: --- title: "R Notebook" output: html_notebook fig_caption: TRUE --- This is an [R Markdown](http://rmarkdown.rstudio....
user2955884's user avatar
2 votes
0 answers
184 views

I know there are a few packages out there for customizing the look of the output tables for rmarkdown documents, like knitr and flextable. I'm considering using those, but I'm curious, if you don't ...
Sam Asin's user avatar
  • 173
3 votes
2 answers
291 views

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("...
Samuel Allain's user avatar
4 votes
1 answer
1k views

When you use inline code in an R Markdown document, the code is evaluated and the output is incorporated into the text. For example, The sum of 2 and 2 is `r 2+2`. This will generate the following ...
Sean Raleigh's user avatar
1 vote
0 answers
162 views

I am using an RStudio R Notebook in the visual editor and would like to format the default table output for a tibble. tibble(letters, number=1:26*1000*rnorm(1)) For me it looks like this: E.g. I ...
c0bra's user avatar
  • 1,090
0 votes
1 answer
29 views

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 ...
Sasha Babaei's user avatar
1 vote
1 answer
989 views

Context: I have a R project with disctinct folders for scripts, outputs and data. To match this logic, I would like to have .rmd files in the ./scripts/ folder while saving the .nb.html file in the ./...
Paul's user avatar
  • 2,987
1 vote
0 answers
227 views

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("~/...
Hal's user avatar
  • 105
-1 votes
1 answer
63 views

I'm trying to read csv file using R notebook and keep getting this error: Error: 'Examples/data/starbucks.csv' does not exist in current working directory ('C:/Users/c227466/Desktop') I'm not sure ...
RazK 's user avatar
  • 13
0 votes
1 answer
1k views

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 ...
Jai Jeffryes's user avatar
1 vote
0 answers
374 views

In r notebooks or markdown documents, if one specifies fig.width or fig.height for generating an image with ggplot, the size of the box containing the actual data is heavily influenced by the size of ...
Manuel's user avatar
  • 111
1 vote
0 answers
162 views

I've been using Geany under Linux to write R scripts for years. Now I want to use R Notebook and R Markdown. So, what should I do to make Geany recognize .Rmd files used by R? Is it possible? I did ...
Antonio's user avatar
  • 773
5 votes
1 answer
1k views

I'm trying to use a notebook in RStudio for an interactive demonstration for students. I like the visual markdown editor, but I'm struggling to format the output. I can't figure out why the width of ...
M4RT1NK4's user avatar
  • 513
2 votes
1 answer
384 views

I have the following R notebook: --- title: "test" author: "by me" date: 'last updated: Jan 23, 2022' output: html_notebook: toc: yes toc_float: yes number_sections: ...
deschen's user avatar
  • 11.6k
0 votes
1 answer
459 views

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 ...
deschen's user avatar
  • 11.6k
7 votes
3 answers
2k views

In a R Notebook there is a function that makes many plots and print summary statistics in the console. I would like to get the plot and the console output (i.e. summary statistics) side by side on the ...
Paul's user avatar
  • 2,987
0 votes
0 answers
129 views

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 ...
benh56's user avatar
  • 37
1 vote
1 answer
733 views

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 ...
ancase's user avatar
  • 57
5 votes
1 answer
3k views

I have a R notebook in Kaggle that I would like to convert to pdf or html. All the solutions I have found in the forums seem to be python oriented. Is there any way to get that? Is there any third-...
Alfonso_MA's user avatar
2 votes
1 answer
935 views

I am looking for a way to make my R notebook-centric workflow be more reproducible and subsequently more easily containerized with Docker. For my medium-sized data analysis projects, I work with a ...
Claudiu Papasteri's user avatar
1 vote
1 answer
2k views

For R Markdown Notebooks, in RStudio > Tools > Global Options... > R Markdown > Advanced : There is the option to Enable chunk background highlight. This is useful to distinguish between ...
Buzz B's user avatar
  • 147
1 vote
2 answers
1k views

I have an R Markdown file that I want to use as a notebook inside RStudio by interactively executing individual (!) code chunks and seeing their results, e.g., prints, tables, plots, displayed under ...
cbaumbach's user avatar
0 votes
0 answers
203 views

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)....
RyanWilliams's user avatar
-1 votes
1 answer
168 views

I wanted to make an R notebook containing a map, but I can't knit it to HTML. I am getting the following error: Error: could not find function "plot_my_connection" I tried to find a ...
iga's user avatar
  • 1
0 votes
2 answers
289 views

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 ...
Emman's user avatar
  • 4,313
0 votes
1 answer
46 views

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 ...
piptoma's user avatar
  • 816
6 votes
2 answers
2k views

I'm experimenting with Rmd Notebooks, and I'm stuck on something that seems like it should be possible but I cannot figure out a solution at all. Basically, I would like a functional way to run ...
plcefrmyhd's user avatar
1 vote
0 answers
385 views

I would like to create a Rnotebook that contains for each group in my data: A subsection header with the group name A plot containing the data for that group. (obs the alternative of adding the group ...
LucasMation's user avatar
  • 2,541
1 vote
2 answers
323 views

I have an R Notebook that I am building to provide an analysis for somebody, and I am wondering if I should choose another option as I don't know if she will be able to run the Notebook without having ...
Mus's user avatar
  • 7,590
1 vote
0 answers
21 views

I'm using Rstudio notebook to create nice Rmarkdown reports generated in html. Rstudio is opened during days on the same notebook, and sometimes all images disappear except those recently generated. ...
Mycky's user avatar
  • 33
0 votes
0 answers
143 views

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(...
zlon's user avatar
  • 834
3 votes
1 answer
675 views

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 ...
Eric Fail's user avatar
  • 8,018

1
2 3 4 5