Learning all of the functions needed to become proficient in R is a substantial undertaking. Flashcards are a great way to learn the syntax of computer languages (Hermans 2021). The goal of flashr (pronounced “flash-r”) is to provide a quick way to view decks of flashcards.
flashr can use existing built-in flashcard decks hosted at the flashr_decks GitHub repo, including functions and arguments from R for Data Science, first edition and glossaries from several psyTeachR books. Check out some example decks.
In addition to built-in decks, you can easily create your own decks using CSV files. This allows you to customize existing decks or create completely new decks. Also, while geared toward learning R, this package can be used to build decks for anything—not just computer syntax!
You can install the stable released version of flashr from CRAN with:
You can install the development version of flashr like so:
# install.packages("remotes") remotes::install_github("JeffreyRStevens/flashr")
To view, for example, the flashcard deck on data types:
This randomizes the order of terms and give terms before descriptions. If you would like to present descriptions before terms:
flashcard("data_types", termsfirst = FALSE)
To build your own deck, save a CSV file with a
term column and a
description column. You can also include a
package column if you want the package name included with the term and a
title column if you want to specify the title of the deck.
Then run the
flashcard() function on your file.
Check out the Get Started vignette for more details on creating your own flashcard deck.
To cite flashr, use:
Stevens, Jeffrey R. (2022). flashr: Creates flashcards of terms and definitions. (version 0.1.0) https://cran.r-project.org/package=flashr
Hermans, F. (2021). The Programmer’s Brain. Manning. https://www.manning.com/books/the-programmers-brain