hypo_show_metadata()
reads metadata from an exported plot.
hypo_show_metadata(filename)
filename | File name to create on disk. |
---|
If we previously added metadata to an exported plot, we need
some way of reading those.
The function hypo_show_metadata()
reports any comment added
with hypo_save()
.
Note: The function assumes a UNIX platform and depends on exiftool to be installed and located within the $PATH.
See https://www.sno.phy.queensu.ca/~phil/exiftool/index.html
# only works with exiftools installed - commented out for build # tibble(x = rnorm(20),y= rnorm(20)) %>% # ggplot(aes(x,y))+geom_point() # # hypo_save('~/Desktop/test_plot.png',comment = 'Created by script test.R') # hypo_show_metadata('~/Desktop/test_plot.png')