archiveFile: Archives a file

Description Usage Arguments Value Where are my archived files located? Author(s)

Description

Archives a file by copying it to the archive directory such that the archived filename has a unique prefix.

Usage

1
2
## Default S3 method:
archiveFile(filename, path=NULL, ..., onError=c("warning", "ignore", "error"))

Arguments

filename, path

character strings specifying the filename and path of an existing file to be archived.

...

Additional arguments passed to getArchivePathname().

onError

A character string specifying what to do if there is an error while archiving. Default is to give a warning.

Value

Returns the archive pathname as a character string.

Where are my archived files located?

The archived files are stored in the directory specified by getArchivePath(...), which in turn is given by getArchiveRootPath() and today's date, e.g. getArchivePath(dirs="path/to") outputs "~/.Rarchive/path/to/2012-11-22".

Author(s)

Henrik Bengtsson


HenrikBengtsson/R.archive documentation built on May 6, 2019, 11:51 p.m.