hypo_show_metadata: Read metadata from an exported plot

View source: R/hypoimg_save.R

hypo_show_metadataR Documentation

Read metadata from an exported plot

Description

hypo_show_metadata() reads metadata from an exported plot.

Usage

hypo_show_metadata(filename)

Arguments

filename

File name to create on disk.

Details

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

See Also

hypo_save,

Examples

# 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')

k-hench/hypoimg documentation built on June 2, 2022, 1:49 a.m.