-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pixgallery() not working with local images #4
Comments
Is this in the RStudio notebook or in a rendered HTML file? |
It is in the output files which at my end are rendered in quarto. The screenshots came from the browser, not the R Studio viewer. I notice also that the image files are not being written to the output directory. |
I notice that if I include |
Ah right, yes! Pixture does not move or embed the images. If it works with |
The matter seems to be with needing to copy the files to the kintr output directory, which in my narrow case is I'm probably not doing this in the most elegant way, but this got things working
So it seems that |
I was like "What am I doing wrong?!" for like an hour. |
Pixture
looks really awesome, and can be super useful with parameterized reports. I'm looking to implementpixture
in a museum setting where I have a large number of images. However, I'm having trouble executingpixgallery()
with local files. The function works flawlessly with URL's but does not seem to work with local files. Hopefully I'm not missing something obvious.Local images example not working
Following the Pixgallery article, I use list files to get a list of images with relative paths and pass these to
pixgallery()
. However, the function returns blank squares.The issue seems to be isolated to
pixgallery()
because I can display images using functions from other libraries likeimager
withplot
.Sample local images not working
Additionally, the local images example that is based on sample images from the package also does not work. When I generate this set of
paths
, I can also display these from the paths list usingimagr
withplot
.Just as in the article example, the output is six blank squares.
However, I can plot items from the list.
Any thoughts on how to address this? Is it something at my end, or is there another way to approach this? Thank you for any insight you might have.
sessionInfo
R version 4.2.1 (2022-06-23 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.utf8 LC_CTYPE=English_United States.utf8 LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C LC_TIME=English_United States.utf8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] imager_0.42.13 stringr_1.4.0 purrr_0.3.4 magrittr_2.0.3 pixture_0.0.2.2001
loaded via a namespace (and not attached):
[1] igraph_1.3.1 Rcpp_1.0.8.3 rstudioapi_0.13 knitr_1.39 here_1.0.1 xtable_1.8-4
[7] R6_2.5.1 jpeg_0.1-9 rlang_1.0.3 fastmap_1.1.0 tools_4.2.0 xfun_0.30
[13] png_0.1-7 cli_3.3.0 htmltools_0.5.2 ellipsis_0.3.2 rprojroot_2.0.3 yaml_2.3.5
[19] digest_0.6.29 lifecycle_1.0.1 bmp_0.3 shiny_1.7.1 later_1.3.0 htmlwidgets_1.5.4
[25] promises_1.2.0.1 mime_0.12 tiff_0.1-11 readbitmap_0.1.5 stringi_1.7.6 compiler_4.2.0
[31] jsonlite_1.8.0 httpuv_1.6.5 pkgconfig_2.0.3
The text was updated successfully, but these errors were encountered: