Releases: metrumresearchgroup/mrggsave
Releases · metrumresearchgroup/mrggsave
mrggsave 0.4.5
mrggsave 0.4.4
-
mrggsave()
gains an argument calledpath.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 themrggsave.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
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
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 usingtag
#2 - Use the unexported (but documented) function
mrggsave:::output_file_sep()
to globally change the output file separator character #12 - The
prefix
argument tomrggsave_common()
now defaults toNULL
; 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 toTRUE
and names used for output filename #8 - Passing a list of plots generated by
named_plots
will setuse_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 alabeller
argument; pass a function to create
the annotation for the plot; passNULL
to save a plot with no annotation #8named_plots()
gains an argument calledadd_context
; whenTRUE
, the
context (usually the script name) will be pre-pended to the output file name;
this argument isFALSE
by default #8- Add option called
mrggsave.file.tolower
which, if set toTRUE
will pass
the file stem throughbase::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 asdev