sync: Syncronize full folder to dropbox path

Description Usage Arguments Examples

Description

Copy an entire folder to dropbox. It allows filtering by pattern or/and blacklist. It optionally creates the sharing link. It upload only changed files, using tools::md5sum() to compare versions.

Usage

1
2
sync(path, remote, token = NULL, pattern = NULL, blackList = NULL,
  share = FALSE, dry = FALSE, force = FALSE, ...)

Arguments

path

Local path in the computer

remote

Remote path in dropbox

token

Security token. rdrop2::drop_auth()

pattern

Expression pattern to keep only those files. Pass into base::list.files().

blackList

Character vector that will be used to remove files that match those expression.

share

Whether create a sharing link or not.

dry

Not perform action but list the files to be upload.

force

Force to upload files to drobox.

...

Options to pass to rdrop2::drop_share()

Examples

1
2
3
4
5
local <- "."
remote <- "path/to/drobox"
library(rdrop2)
# token <- readRDS("~/.droptoken.rds")
# sync(loca, remote, pattern = ".R", dry = TRUE)

lpantano/r2dropSmart documentation built on May 8, 2019, 6:54 p.m.