Skip to contents

Write out partial data to a single Markdown file.

Usage

kindle_write_md(
  data,
  file,
  title = NULL,
  distinct = TRUE,
  drop_na = TRUE,
  new_line = TRUE,
  time = TRUE
)

Arguments

data

The data read from kindle_read().

file

The file name to write to, book title is recommended.

title

String. Provide the title of the data you want to write out, with support for regular expressions.

distinct

Logical. If TRUE, the last record with the same begin value will be retained; if FALSE, no records will be deleted.

drop_na

Logical. If TRUE, drop rows where text column is NA; if FALSE, no records will be deleted.

new_line

Logical. If TRUE, will be replaced by \n which can create a new line.

time

Logical. If TRUE, the datetime will be add to the end of text.

Value

A Markdown file.

Examples

if (FALSE) {
kindle_write_md(text, "mdtest.md", title = "book-title")
}