posit-dev / posit-dev/positron
inline output with ggraster
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 4.3k
- Forks
- 184
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 206
Description
ggplots using ggrastr fail to render in inline output:
Example Source code (Click to expand)
```{r}
library(ggplot2)
```
```{r}
#| fig-width: 3
#| fig-height: 3
ggplot(iris, aes(Sepal.Width, Sepal.Length)) + geom_point()
```
```{r}
#| fig-width: 3
#| fig-height: 3
ggplot(iris, aes(Sepal.Width, Sepal.Length)) + ggrastr::rasterize(geom_point())
```
While they do work in a normal R session with the ouptput rendered to the plot pane:
The R-Kernel log shows this error:
r-notebook-58245cca [R] 2026-05-20T12:36:53.166645Z ERROR Failed to create plot due to: Failed to render plot with id bc03327c-4be4-499b-8720-e5127b23012a due to: No such file or directory (os error 2)..
r-notebook-58245cca [R] at crates/ark/src/plots/graphics_device.rs:682
System details (Click to expand)
System details:
Positron and OS details:
Version: Positron Version: 2026.06.0 (system setup) build 79
Code - OSS Version: 1.111.0
Commit: 5831c6625ad95f6f2e0a42034bd6c7e689214a7d
Date: 2026-05-17T11:26:46-04:00
Commit: 39.6.0
Date: 142.0.7444.265
Electron: 22.22.0
ElectronBuildId: 14.2.231.22-electron.0
Chromium: Windows_NT x64 10.0.26200
Node.js: undefined
V8: undefined
OS: undefined
Session details:
─ Session info ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
setting value
version R version 4.4.3 (2025-02-28)
os Debian GNU/Linux 12 (bookworm)
system x86_64, linux-gnu
ui Positron
language (EN)
collate en_US.UTF-8
ctype en_US.UTF-8
tz Europe/Berlin
date 2026-05-20
pandoc 2.17.1.1 @ /usr/bin/pandoc
quarto 1.7.33 @ /omics/groups/OE0540/internal/software/x86_64/quarto/quarto-1.7.3.3/bin/quarto
─ Packages ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
package * version date (UTC) lib source
beeswarm 0.4.0 2021-06-01 [1] CRAN (R 4.4.3)
Cairo 1.6-2 2023-11-28 [1] CRAN (R 4.4.3)
cli 3.6.4 2025-02-13 [1] CRAN (R 4.4.3)
dichromat 2.0-0.1 2022-05-02 [1] CRAN (R 4.4.3)
digest 0.6.37 2024-08-19 [1] CRAN (R 4.4.3)
dplyr 1.1.4 2023-11-17 [1] CRAN (R 4.4.3)
farver 2.1.2 2024-05-13 [1] CRAN (R 4.4.3)
generics 0.1.3 2022-07-05 [1] CRAN (R 4.4.3)
ggbeeswarm 0.7.2 2023-04-29 [1] CRAN (R 4.4.3)
ggplot2 * 3.5.2 2025-04-09 [1] CRAN (R 4.4.3)
ggrastr 1.0.2 2023-06-01 [1] CRAN (R 4.4.3)
glue 1.8.0 2024-09-30 [1] CRAN (R 4.4.3)
gtable 0.3.6 2024-10-25 [1] CRAN (R 4.4.3)
labeling 0.4.3 2023-08-29 [1] CRAN (R 4.4.3)
lifecycle 1.0.4 2023-11-07 [1] CRAN (R 4.4.3)
magrittr 2.0.3 2022-03-30 [1] CRAN (R 4.4.3)
pillar 1.10.1 2025-01-07 [1] CRAN (R 4.4.3)
pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 4.4.3)
png 0.1-8 2022-11-29 [1] CRAN (R 4.4.3)
progressr 0.15.1 2024-11-22 [1] CRAN (R 4.4.3)
R6 2.6.1 2025-02-15 [1] CRAN (R 4.4.3)
ragg 1.3.3 2024-09-11 [1] CRAN (R 4.4.3)
RColorBrewer 1.1-3 2022-04-03 [1] CRAN (R 4.4.3)
rlang 1.1.5 2025-01-17 [1] CRAN (R 4.4.3)
scales 1.4.0 2025-04-24 [1] CRAN (R 4.4.3)
sessioninfo 1.2.3 2025-02-05 [2] CRAN (R 4.4.3)
systemfonts 1.3.1 2025-10-01 [1] CRAN (R 4.4.3)
textshaping 1.0.0 2025-01-20 [1] CRAN (R 4.4.3)
tibble 3.2.1 2023-03-20 [1] CRAN (R 4.4.3)
tidyselect 1.2.1 2024-03-11 [1] CRAN (R 4.4.3)
vctrs 0.6.5 2023-12-01 [1] CRAN (R 4.4.3)
vipor 0.4.7 2023-12-18 [1] CRAN (R 4.4.3)
withr 3.0.2 2024-10-28 [1] CRAN (R 4.4.3)
[1] /omics/groups/OE0540/internal/users/gleixner/R/x86_64-pc-linux-gnu-library/4.4.3-GCCcore-14.1.0
[2] /software/R/4.4.3-GCCcore-14.1.0/lib/R/library
- ── Packages attached to the search path.
settings:
{
"files.associations": {
"renv.lock": "json"
},
"remote.autoForwardPortsSource": "hybrid",
"git.autofetch": true,
"remoteSSH.serverInstallPath": {
"odcf-positron0*": "/local/gleixner/positron-server"
},
"update.positron.channel": "dailies",
"chat.viewSessions.orientation": "stacked",
"positron.quarto.inlineOutput.enabled": true,
"kernelSupervisor.shutdownTimeout": "indefinitely",
"positron.assistant.enable": true,
"positron.assistant.showTokenUsage.enable": true,
"positron.assistant.provider.openAI.enable": true,
"chat.useCopilotParticipantsWithOtherProviders": true,
"github.copilot.chat.githubMcpServer.enabled": true,
"kernelSupervisor.resourceUsagePollInterval": 10000,
"kernelSupervisor.showTerminal": true,
"github.copilot.nextEditSuggestions.enabled": true,
"authentication.openai-api.baseUrl": "https://api.openai.com/v1",
"notebook.inlineValues": "auto"
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the R and Quarto inline-output example with ggplot2 and ggrastr. Read crates/ark/src/plots/graphics_device.rs around line 682, where the kernel reports the rendering failure. Done means the rasterized plot renders in inline output without the “No such file or directory” error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100