-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
bugSomething isn't workingSomething isn't working
Description
I am unable to reproduce a gif using the example code in the README.md.
Here is minimal subset of the code:
library(ggplot2)
library(camcorder)
gg_record(
dir = file.path(tempdir(), "recording100"), # where to save the recording
device = "png", # device to use to save images
width = 4, # width of saved image
height = 6, # height of saved image
units = "in", # units for width and height
dpi = 300 # dpi to use when saving image
)
ggplot(mtcars, aes(x = mpg, y = hp)) +
geom_point()
gg_playback(
name = file.path(tempdir(), "recording", "vignette_gif.gif"),
first_image_duration = 5,
last_image_duration = 15,
frame_duration = .4,
image_resize = 800
)However, when I run the above, I get this error:
Warning message:
In gg_playback(name = file.path(tempdir(), "recording", "vignette_gif.gif"), :
No images recorded to playback.
Error in `normalizePath()`:
! path[1]=NA
If I look into the temp directory, I see an empty recording100/resized directory and a positron-plot-renderings directory with the one plot made via the above code (and a file called dummy-plot.png). If I use RStudio instead, I get the same error, see the same empty recording100/resized directory, and and rs-graphics-c3b085a5-9906-4222-86f1-6b97cdd51232 directory that is seemingly similar to positron-plot-renderings (i.e. same types of files, different names).
Here is my session info:
R version 4.5.1 (2025-06-13 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 11 x64 (build 22631)
Matrix products: default
LAPACK version 3.12.1
locale:
[1] English_United States.1252
time zone: America/Vancouver
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] camcorder_0.1.0 ggplot2_4.0.0
loaded via a namespace (and not attached):
[1] vctrs_0.6.5 svglite_2.2.2 cli_3.6.5 rlang_1.1.6
[5] magick_2.9.0 gifski_1.32.0-2 rsvg_2.7.0 renv_1.1.5
[9] generics_0.1.4 textshaping_1.0.4 S7_0.2.0 jsonlite_2.0.0
[13] labeling_0.4.3 glue_1.8.0 scales_1.4.0 grid_4.5.1
[17] tibble_3.3.0 lifecycle_1.0.4 compiler_4.5.1 dplyr_1.1.4
[21] fs_1.6.6 RColorBrewer_1.1-3 Rcpp_1.1.0 pkgconfig_2.0.3
[25] systemfonts_1.3.1 farver_2.1.2 R6_2.6.1 tidyselect_1.2.1
[29] pillar_1.11.1 magrittr_2.0.4 tools_4.5.1 withr_3.0.2
[33] gtable_0.3.6
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working