Learn R Programming

ankiR (version 0.6.0)

anki_collection: Open an Anki collection

Description

Opens an Anki collection database and returns an object with methods to access notes, cards, decks, note types, and review logs.

Usage

anki_collection(path = NULL, profile = NULL)

Value

An anki_collection object with methods:

  • notes() - Get all notes

  • cards() - Get all cards

  • revlog() - Get review log

  • decks() - Get deck information

  • models() - Get note types (models)

  • tables() - List all tables

  • close() - Close database connection

Arguments

path

Path to collection.anki2 file. If NULL, auto-detected from default Anki location.

profile

Profile name. If NULL, uses first available profile.

Examples

Run this code
if (FALSE) {
col <- anki_collection()
col$notes()
col$decks()
col$close()
}

Run the code above in your browser using DataLab