DiagrammeR
DiagrammeR copied to clipboard
Error in `s$close()`: ! attempt to apply non-function
Description
I am trying to render a document in quarto as a beamer presentation and I get the following error: Error in
s$close(): ! attempt to apply non-function
Minimal reproducible example:
--
title: "Untitled"
format: beamer
editor: visual
---
```{r}
#| echo: false
library(DiagrammeR)
```
# Test
```{r }
#| out-width: 90%
grViz("
digraph boxes_and_circles {
graph [overlap = true, fontsize = 10]
node [shape = box,
fontname = Helvetica]
A; B;
node [shape = circle,
fixedsize = true,
width = 0.9]
1; 2;
A->1 B->2
}
")
```
Observations
I don't know if the error is related to chromote
or to quarto
taking into account that the problem disappears when the #| out-width: 90%
is not included.
Also the problem disappears completely if you use as an OS Windows 11 Pro instead of Ubuntu 22.04.3 LTS
Bracktrace
Quitting from lines 15-33 [unnamed-chunk-2] (test.qmd)
Error in s$close()
:
! attempt to apply non-function
Backtrace:
- global .main()
- execute(...)
- rmarkdown::render(...)
- knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
- knitr:::process_file(text, output) ...
- chromote:::synchronize(p, loop = private$child_loop)
- base::tryCatch(...)
- base (local) tryCatchList(expr, classes, parentenv, handlers)
- base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
- base (local) doTryCatch(return(expr), name, parentenv, handler)
Execution halted
Environment
OS: Ubuntu 22.04.3 LTS R: 4.3.2 (2023-10-31) -- "Eye Holes" IDE: RStudio 2023.12.0+369 "Ocean Storm" Release Quarto: 1.4.545 Google Chrome: 21.0.6167.85 (Official Build) (64-bit)
Packages
DiagrammeR: 1.0.10 knitr: 1.45 rmarkdown: 2.25 chromote: 0.1.2