Learn R Programming

ankiR (version 0.6.0)

anki_to_csv: Export deck to CSV

Description

Exports cards from a deck to a CSV file with note content.

Usage

anki_to_csv(
  deck,
  file = NULL,
  path = NULL,
  profile = NULL,
  include_html = FALSE
)

Value

Invisibly returns the exported data

Arguments

deck

Deck name or ID (partial match supported)

file

Output file path (default: deck name + .csv)

path

Path to collection.anki2 (auto-detected if NULL)

profile

Profile name (first profile if NULL)

include_html

If FALSE, strip HTML tags from fields

Examples

Run this code
if (FALSE) {
anki_to_csv("Default")
anki_to_csv("Medical", file = "medical_cards.csv")
}

Run the code above in your browser using DataLab