Retrieves subjects (radicals, kanji, vocabulary, and kana vocabulary) from WaniKani.
Usage
wk_subjects(
ids = NULL,
types = NULL,
levels = NULL,
slugs = NULL,
updated_after = NULL,
all_pages = FALSE
)
Arguments
- ids
Vector of subject IDs to retrieve. If NULL, retrieves all subjects.
- types
Vector of subject types to filter by ("radical", "kanji", "vocabulary", "kana_vocabulary").
- levels
Vector of levels to filter by (1-60).
- slugs
Vector of subject slugs to filter by.
- updated_after
POSIXct datetime to filter subjects updated after this time.
- all_pages
Logical indicating whether to fetch all pages (default: FALSE).
Examples
if (FALSE) { # \dontrun{
# Get all subjects for levels 1-3
subjects <- wk_subjects(levels = 1:3)
# Get only kanji subjects
kanji <- wk_subjects(types = "kanji")
# Get specific subjects by ID
specific_subjects <- wk_subjects(ids = c(1, 2, 3))
} # }