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.
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.