statistikZH / statR

ZH-color-scheme & theme_stat template for ggplot2.
https://statistikzh.github.io/statR/
GNU General Public License v3.0
15 stars 1 forks source link

datasetsXLSX(): unintentional deletion of images provided by path #53

Closed Thomas-Caspar-Fischer closed 1 year ago

Thomas-Caspar-Fischer commented 1 year ago

The function considers input in the list datasets of class gg, ggplot, histogram and character and passes them on to insert_worksheet_image(). For objects of class gg, ggplot, and histogram, a temporary file is created, for objects of class character the image is fetched from the path. All paths are stored and deleted after the call to saveWorkBook() using calls to unlink.

Intended behavior is to delete the temporary files, but files provided by path are also deleted.