copy_stash: Copy a file/object from one stash to another

Description Usage Arguments Value

Description

Copy a file/object from one stash to another

Usage

1
2
copy_stash(from, to, one.to = "one", keep.from = TRUE, clean.up = TRUE,
  simplify = TRUE)

Arguments

from

Path for where the object currently resides. Accepts a character string or *_stash object.

to

Path for where the object will be copied to. Accepts a character string or *_stash object.

keep.from

TRUE or FALSE. When TRUE, the files/objects that were copied from will be deleted.

clean.up

TRUE or FALSE. Only used when keep.from equals FALSE When TRUE, and keep.from equals FALSE, the directory that the file was copied from will be deleted if it is empty.

file.name

Base file name for the object

time.stamp

TRUE or FALSE. When TRUE, files containing a time stamp generated by save_stash, or matching the save_stash pattern, will be copied.

uuid

TRUE or FALSE. When TRUE, files containing a uuid generated by save_stash, or matching the save_stash pattern, will be copied.

extension

Extension for the file to copy.

compression

Accepts NULL for no compression, or 'gz' for gzip.

checksum

Not being used right now.

Value

List of stash objects that were successfully copied to their destination.


jason-huling/rstash documentation built on May 18, 2019, 4:53 p.m.