MyNixOS website logo
Description

Download R Cheat Sheets.

A simple package to grab cheat sheets and save them to your local computer.

cheatsheet

R-CMD-check pkgdown codecov metacrandownloads CRANstatus

{cheatsheet} is a simple R package that downloads helpful R cheatsheets from the repository maintained by Posit You could easily just clone the repo these are hosted at and filter them how you wish; this package is just a shortcut and more useful for people who aren’t familiar with git.

Installation

You can install the released version of cheatsheet from CRAN with:

install.packages("cheatsheet")

Usage

The main function here is cheatsheet::get_all_cheatsheets.

library(cheatsheet)
library(fs)

# Get all cheatsheets and place in a folder on your desktop
cheatsheet::get_all_cheatsheets(local_path = "cheats", tidyverse_only = FALSE)
fs::dir_ls("cheats")

# 0-template.pdf
# Machine Learning Modelling in R.pdf
# SamplingStrata.pdf
# base-r.pdf
# bayesplot.pdf
# bcea.pdf
# caret.pdf
# cartography.pdf
# collapse.pdf
# data-import.pdf
# data-transformation.pdf
# data-visualization-2.1.pdf
# datatable.pdf
# declaredesign.pdf
# distr6.pdf
# estimatr.pdf
# eurostat.pdf
# factors.pdf
# gganimate.pdf
# golem.pdf
# gwasrapidd.pdf
# h2o.pdf
# how-big-is-your-graph.pdf
# imputeTS.pdf
# jfa.pdf
# keras.pdf
# labelled.pdf
# leaflet.pdf
# lubridate.pdf
# mlr.pdf
# mosaic.pdf
# nardl.pdf
# nimble.pdf
# oSCR.pdf
# overviewR.pdf
# package-development.pdf
# packagefinder.pdf
# parallel_computation.pdf
# plumber.pdf
# purrr.pdf
# quanteda.pdf
# randomizr.pdf
# regex.pdf
# reticulate.pdf
# rmarkdown-2.0.pdf
# rphylopic.pdf
# rstudio-ide.pdf
# sf.pdf
# shiny.pdf
# shiny_Spanish_final.pdf
# sjmisc.pdf
# sparklyr.pdf
# stata2r.pdf
# strings.pdf
# survminer.pdf
# syntax.pdf
# teachR.pdf
# tidyeval.pdf
# time-series.pdf
# tsbox.pdf
# vegan.pdf
# vtree.pdf
# xplain.pdf
# Just grab core tidyverse cheatsheets
cheatsheet::get_all_cheatsheets(local_path = "cheats", tidyverse_only = TRUE)

# data-import.pdf            data-transformation.pdf    
# data-visualization-2.1.pdf factors.pdf                
# lubridate.pdf              purrr.pdf                  
# strings.pdf                tidyeval.pdf 

Foreign language support

{cheatsheet} also lets you download cheatsheets that have been translated to over a dozen languages. Check which languages are available with this command:

cheatsheet::list_languages()
#> 
#> ── Languages available for get_translation() ───────────────────────────────────
#> • chinese
#> • dutch
#> • french
#> • german
#> • greek
#> • italian
#> • japanese
#> • korean
#> • portuguese
#> • russian
#> • spanish
#> • turkish
#> • ukranian
#> • uzbek
#> • vietnamese
#> 
#> ── Pass the language you choose above to get_translation(), like:
#> get_translation('~/Desktop/french', 'french')

Then, pass the language you want to this function:

cheatsheet::get_translation(local_path = "cheats", language = "german")

# base-r_de.pdf
# data-transformation-cheatsheet_de.pdf
# data-wrangling-german.pdf
# devtools-german.pdf
# ggplot2-german.pdf
# rmarkdown-cheatsheet-2.0-german.pdf
# shiny-german.pdf
# sparklyr-cheatsheet_de.pdf

If anyone has another known and established stash of cheatsheets that would be helpful for this package, please submit an issue or pull request.

Metadata

Version

0.1.2

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows