Skip to contents

Returns a function that appends an author to an author field without duplicating anyone already listed. Pass it as a named update to stamp_update(), or use stamp_add_author() to apply it directly to a file.

Usage

author_add(new_author)

Arguments

new_author

Character. Author to add.

Value

A function of the current field value, suitable as an update in stamp_update().

Examples

add <- author_add("Sam Smith")
add("Jane Doe")
#> [1] "Jane Doe and Sam Smith"