write_words: Write dictionary entries to a text file

View source: R/cidian.R

write_wordsR Documentation

Write dictionary entries to a text file

Description

write_words() writes the word of every entry in x to path, one word per line, preserving the source order.

Usage

write_words(x, path, ..., overwrite = NULL)

Arguments

x

A cidian_dictionary object.

path

A path to the output file.

...

Must be empty.

overwrite

Whether to replace path when it already exists. NULL (the default) asks interactively; TRUE overwrites without asking; FALSE errors.

Details

When path already exists, the function asks for confirmation unless overwrite is given explicitly.

Value

The path, invisibly.

Examples

x <- read_cidian(system.file("extdata", "computer.qcel", package = "cidian"))
write_words(x, tempfile(fileext = ".txt"))

cidian documentation built on Sept. 28, 2026, 5:08 p.m.