booklog: Add An Entry to booklog.csv

Description Usage Arguments Value Examples

View source: R/booklog.R

Description

If there is no file booklog.csv in the current working directory, a new file is created.

Usage

1
booklog(title, author = NA, date = Sys.Date(), rating = NA, notes = NA)

Arguments

title

A character string with the title of the book. Must be quoted.

author

A character string with the author of the book. Must be quoted. Defaults to NA.

date

The date the book was finished, in the format YYYY-MM-DD. Defaults to Sys.Date().

rating

A numeric rating between 1 and 10. Defaults to NA.

notes

A character string with any notes about the book. Defaults to NA.

Value

Returns a data frame containing the entry which was written to booklog.csv.

Examples

1
booklog("Harry Potter and the Goblet of Fire", "J. K. Rowling", rating = 10)

ricompute/bookr documentation built on May 27, 2019, 8:50 a.m.