Skip to content
R CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R
inst/htmlwidgets/lib
man
.Rbuildignore
.gitignore
DESCRIPTION
LICENSE
NAMESPACE
PITCHME.md
README.md
rcheatsheet.Rproj

README.md

Cheatsheet Generator

rcheatsheet simplifies the process of creating a cheatsheet for R packages by using Google Drive Excel Sheets.

Install rcheatsheet

You need to install googlesheets in addition to rcheatsheet.

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

  1. Follow the template of labelling worksheets
  2. Create cheatsheet using function make_cheatsheet
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

You can’t perform that action at this time.