move_stash: Move a file/object from one stash to another

View source: R/move_stash.R

move_stashR Documentation

Move a file/object from one stash to another

Description

Same functionality as copy_stash when keep.stash = TRUE.

Usage

move_stash(from, to, one.to = "one", 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 moved to. Accepts a character string or *_stash object.

clean.up

TRUE or FALSE. When TRUE, the directory that the file was moved 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 moved.

uuid

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

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 moved to their destination.


jason-huling/rstash documentation built on Aug. 2, 2024, 3:25 p.m.