Indicate acceptance of a file by logging an entry with nonzero version.

logAccept(
file=dir(),
directory=getwd(),
origin=logOrigin(file,directory),
reviewer=Sys.info()['user'],
force=FALSE,
...)

Arguments

file

one or more files to accept

directory

the parent of the file

origin

the file from which 'file' originates

reviewer

the user issuing the opinion, normally oneself

force

if false (default) nonexistent files cause an error

...

arguments passed to logQueue

Details

Can be undone with logRevert(). Calls logAppend(), which gives an error if the origin is NA (default) and no precedent exists.

Author

Tim Bergsma

Examples

with_demoRepo({
  logAccept("script/data-assembly.R")
})