sync_lab: Sync lab project.

View source: R/sync.R

sync_labR Documentation

Sync lab project.

Description

sync the project folder with the local folder set by set_lab_sync. The origin is always the parental director found by here::here().

Usage

sync_lab(
  direction = "or_de",
  exclude_files = "default",
  rsync_flags = "-avtuP",
  inter = TRUE,
  ...
)

Arguments

direction

one of c("or_de", "de_or", "bidir") meaning origin to destination, destination to origin or bidirectional. Defalut is or_de'.

exclude_files

list of files to exclude. If "default", it will not sync hidden files in parent as well as folders in renv. If "none" will sync everything.

rsync_flags

flag to use wit rsync. Default is -avtuP. Check rsync page for the complete list of options.

inter

if to ask to confirm interactively the destination path

...

used internally

Details

use rsync to sync and here to identify parental directory


c1au6i0/labor documentation built on July 23, 2022, 5:31 p.m.