Skip to content

Commit

Permalink
Fix creation of file during example run
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasp85 committed Feb 7, 2020
1 parent 080c182 commit 44e4b15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions R/SVG.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#' @seealso \code{\link{pictex}}, \code{\link{postscript}}, \code{\link{Devices}}
#' @examples
#' # Save to file
#' svglite("Rplots.svg")
#' svglite(tempfile("Rplots.svg"))
#' plot(1:11, (-5:5)^2, type = 'b', main = "Simple Example")
#' dev.off()
#'
Expand All @@ -48,7 +48,7 @@
#'
#' # Then supply a list of aliases:
#' fonts <- list(sans = "Verdana", mono = "Times New Roman")
#' svglite("Rplots.svg", system_fonts = fonts)
#' svglite(tempfile("Rplots.svg"), system_fonts = fonts)
#' plot.new()
#' text(0.5, 0.5, "Some text", family = "mono")
#' dev.off()
Expand Down
4 changes: 2 additions & 2 deletions man/svglite.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 44e4b15

Please sign in to comment.