rstudioapi (version 0.11)

savePlotAsImage: Save Active RStudio Plot as an Image

Description

Save the currnently active RStudio as an image file.

Usage

savePlotAsImage(
  file,
  format = c("png", "jpeg", "bmp", "tiff", "emf", "svg", "eps"),
  width,
  height
)

Arguments

file

Target filename

format

Image format ("png", "jpeg", "bmp", "tiff", "emf", "svg", or "eps")

width

Image width in pixels

height

Image height in pixels