Learn R Programming

campfin (version 1.0.7)

use_diary: Create a new template data diary

Description

Take the arguments supplied and put them into the appropriate places in a new template diary. Write the new template diary in the supplied directory.

Usage

use_diary(st, type, author, auto = FALSE)

Arguments

st

The USPS state abbreviation.

type

The type of data, one of "contribs", "expends", or "lobby".

author

The author name of the new diary.

auto

If TRUE, file is created in the correct working directory. If FALSE, a plain character string is returned. If a directory name, the file is automatically written to that directory.

Value

The file path of new diary, invisibly.

Examples

Run this code
# NOT RUN {
use_diary("VT", "contribs", "Kiernan Nicholls", FALSE)
use_diary("VT", "contribs", "Kiernan Nicholls", tempdir())
# }

Run the code above in your browser using DataLab