Skip to content

Commit a5248cd

Browse files
connorlewisclauswilke
authored andcommitted
fixes issue #3016 by adding % info for file name and removes extra be (#3092)
* fixes issue #3016 by adding % info for file name and removes extra be * added missing parenthesis and corrected either typo.
1 parent 9108d9b commit a5248cd

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

R/save.r

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,17 @@
55
#' graphics device. It also guesses the type of graphics device from the
66
#' extension.
77
#'
8+
#' Note: Filenames with page numbers can be generated by including a C
9+
#' integer format expression, such as `%03d` (as in the default file name
10+
#' for most R graphics devices, see e.g. [png()]).
11+
#' Thus, `filename = "figure%03d.png"` will produce successive filenames
12+
#' `figure001.png`, `figure002.png`, `figure003.png`, etc. To write a filename
13+
#' containing the `%` sign, use `%%`. For example, `filename = "figure-100%%.png"`
14+
#' will produce the filename `figure-100%.png`.
15+
#'
816
#' @param filename File name to create on disk.
917
#' @param plot Plot to save, defaults to last plot displayed.
10-
#' @param device Device to use. Can be either be a device function
18+
#' @param device Device to use. Can either be a device function
1119
#' (e.g. [png()]), or one of "eps", "ps", "tex" (pictex),
1220
#' "pdf", "jpeg", "tiff", "png", "bmp", "svg" or "wmf" (windows only).
1321
#' @param path Path to save plot to (combined with filename).

man/ggsave.Rd

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)