copy_dir: Copy directory and all sub-folders

copy_dirR Documentation

Copy directory and all sub-folders

Description

Bundles into a tar, then unpacks in a new location. Works with nested folders/files. May need to use full.names to ensure all subfiles are located and moved.

Usage

copy_dir(from, to, tar, extra_flags, ...)

Arguments

from, to

character vectors, defining file paths.

tar

parameter passed to tar; may require assigning to 'tar' manually if Sys.getenv('tar') has no value set.

extra_flags

parameter passed to tar; defaults to '-C' for the bundle_dir.

...

additional parameters passed to tar


al-obrien/relay documentation built on May 6, 2023, 10:19 p.m.