Skip to content

Releases: metrumresearchgroup/mrggsave

mrggsave 0.4.5

14 Aug 15:33
b36af11
Compare
Choose a tag to compare
  • New option mrggsave.res to set default resolution for devices
    like png() and jpeg() (#42).

mrggsave 0.4.4

07 Mar 16:30
3596b30
Compare
Choose a tag to compare
  • mrggsave() gains an argument called path.type which controls how the
    path to the figure file is rendered in the figure annotation; the default
    is "proj", which will render the path relative to an RStudio project
    file, if it can be found; alternatives are "none" and "raw"; path.type
    can be set through the mrggsave.path.type option (#38, #39).

  • Unit tests were numbered and user stories added to build validation
    documents (#35, #37).

Merge pull request #20 from metrumresearchgroup/release/0.4.1

01 Mar 22:00
9b72483
Compare
Choose a tag to compare

mrggsave 0.4.1

  • Revert behavior where named list automatically uses the names for output
    file names #18
  • Fix typo in mrggsave:::output_file_sep() title

v0.4.0

07 Feb 21:49
Compare
Choose a tag to compare

Breaking changes

  • The default separator when auto-constructing file names is changed from
    underscore to hyphen; this is a breaking change that will result in different
    output filenames if users were using tag #2
  • Use the unexported (but documented) function mrggsave:::output_file_sep()
    to globally change the output file separator character #12
  • The prefix argument to mrggsave_common() now defaults to NULL; the
    Source graphic: annotation defaults to only showing the base file name
    of the plot

Other changes and refactoring

  • If a named list of plots is passed (checked via rlang::is_named), use_names
    will be set to TRUE and names used for output filename #8
  • Passing a list of plots generated by named_plots will set use_names to
    TRUE and the names will be use for output file names #8
  • When a named list of plots is passed, the names are adjusted to remove
    spaces, periods and underscores when creating the output file stem; these
    characters are replaced with hyphens #8
  • mrggsave_common() now has a labeller argument; pass a function to create
    the annotation for the plot; pass NULL to save a plot with no annotation #8
  • named_plots() gains an argument called add_context; when TRUE, the
    context (usually the script name) will be pre-pended to the output file name;
    this argument is FALSE by default #8
  • Add option called mrggsave.file.tolower which, if set to TRUE will pass
    the file stem through base::tolower(), making it all lower case, regardless
    of how the stem was generated #8
  • Add ability to save to multiple devices on one function call; pass a character
    vector of devices or a comma-separated string as dev