Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ropensci-archive/rcheatsheet
:no_entry: ARCHIVED :no_entry: A package to create cheatsheets
https://github.com/ropensci-archive/rcheatsheet
r r-package rstats unconf unconf17
Last synced: 3 months ago
JSON representation
:no_entry: ARCHIVED :no_entry: A package to create cheatsheets
- Host: GitHub
- URL: https://github.com/ropensci-archive/rcheatsheet
- Owner: ropensci-archive
- License: other
- Archived: true
- Created: 2017-05-26T23:06:04.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-05-10T14:00:39.000Z (over 2 years ago)
- Last Synced: 2024-06-11T11:49:58.684Z (5 months ago)
- Topics: r, r-package, rstats, unconf, unconf17
- Language: R
- Homepage: https://docs.ropensci.org/rcheatsheet
- Size: 356 KB
- Stars: 33
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README-NOT.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - ropensci-archive/rcheatsheet - :no_entry: ARCHIVED :no_entry: A package to create cheatsheets (R)
README
## Cheatsheet Generator
`rcheatsheet` simplifies the process of creating a cheatsheet for R packages by using Google Drive Excel Sheets.
### Install rcheatsheetYou need to install [`googlesheets`](https://github.com/jennybc/googlesheets) in addition to `rcheatsheet`.
```r
install.packages('googlesheets')
devtools::install_github("ramnathv/rcheatsheet")
```### How to Use
__Step 1: Create Google Sheet__
__Step 2: Add cheatsheet data following the template__
![example](http://i.imgur.com/xJ780b5.gif)
2. Follow the template of labelling worksheets
3. Create cheatsheet using function `make_cheatsheet````r
library(rcheatsheet)
library(magrittr)# Download Google Sheet to Excel
library(googlesheets)
fpath <- 'cheatsheet.xlsx'
sheet_data <- gs_title('cheatsheet data')
gs_download(sheet_data, to = fpath, overwrite = TRUE)# Create cheatsheet
x = 1:5
l = list(x = 1:5, y = c('a', 'b'))
df = data.frame(x = 1:3, y = c('a', 'b', 'c'))
fpath %>%
read_all_sheets %>%
make_cheatsheet
```[Slide Deck](https://gitpitch.com/ramnathv/rcheatsheet/master?grs=github&t=moon)