powered by
Opens an Anki collection database and returns an object with methods to access notes, cards, decks, note types, and review logs.
anki_collection(path = NULL, profile = NULL)
An anki_collection object with methods:
notes() - Get all notes
notes()
cards() - Get all cards
cards()
revlog() - Get review log
revlog()
decks() - Get deck information
decks()
models() - Get note types (models)
models()
tables() - List all tables
tables()
close() - Close database connection
close()
Path to collection.anki2 file. If NULL, auto-detected from default Anki location.
Profile name. If NULL, uses first available profile.
if (FALSE) { col <- anki_collection() col$notes() col$decks() col$close() }
Run the code above in your browser using DataLab