An open API service indexing awesome lists of open source software.

https://github.com/ijlyttle/screenshotr

Helps you put screenshots into documents
https://github.com/ijlyttle/screenshotr

Last synced: 9 days ago
JSON representation

Helps you put screenshots into documents

Awesome Lists containing this project

README

          

---
output: github_document
---

```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```

[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/screenshotr)](https://cran.r-project.org/package=screenshotr)
[![Travis-CI Build Status](https://travis-ci.org/ijlyttle/screenshotr.svg?branch=master)](https://travis-ci.org/ijlyttle/screenshotr)
[![Coverage Status](https://img.shields.io/codecov/c/github/ijlyttle/screenshotr/master.svg)](https://codecov.io/github/ijlyttle/screenshotr?branch=master)

# screenshotr

## Installation

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

```R
# 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:

```R
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.

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

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

1. Specify the image scaling.

1. 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.