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
- Host: GitHub
- URL: https://github.com/ijlyttle/screenshotr
- Owner: ijlyttle
- License: other
- Created: 2017-01-18T21:29:38.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-22T18:18:47.000Z (over 9 years ago)
- Last Synced: 2026-03-31T16:48:12.079Z (3 months ago)
- Language: R
- Homepage: https://ijlyttle.github.io/screenshotr/
- Size: 21.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
README
---
output: github_document
---
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
[](https://cran.r-project.org/package=screenshotr)
[](https://travis-ci.org/ijlyttle/screenshotr)
[](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.