knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

CRAN_Status_Badge Travis-CI Build Status Coverage Status

screenshotr

Installation

This package is not yet on CRAN. You can install the latest development version from github with:

# install.packages("devtools")
devtools::install_github("ijlyttle/screenshotr")

Installing this package should append an addin to your RStudio IDE Addins menu.

You can launch the addin using the Addins menu, or you can call the function from the command line:

library("screenshotr")
screenshotr()

Introduction

The goal of this package is to support a shiny gadget as an RStudio addin.

This addin will make it easier for you to insert screenshots into your R Markdown documents.

It is imagined that, to use the addin, you would follow these steps:

  1. Take the screenshot normally. On Mac, I find cmd-ctrl-shift-4 to be very useful.

  2. In RStudio's file-editor pane, place the cursor where you would like to insert your ![]() code.

  3. On the addin, Click the Paste new button to paste the image to the addin.

  4. Specify the image scaling.

  5. Click the Save as button to save the rescaled image to your filesystem. This will paste an embed code into your open document, or copy the embed code to your clipboard.

I imagine this will use the clipr package and the magick package.



ijlyttle/screenshotr documentation built on May 18, 2019, 3:41 a.m.