syncLocalData: Sync localDisk objects to VDB

Description Usage Arguments See Also Examples

View source: R/webSync.R

Description

Sync localDisk data that is used for VDB displays located throughout the system to a 'data' directory inside the VDB - useful for collecting data before syncing with a web server, and used inside of webSync and deployVDB.

Usage

1
syncLocalData(vdbConn = getOption("vdbConn"), rsync = NULL)

Arguments

vdbConn

VDB connection settings

rsync

location of rsync binary

See Also

webSync, webConn

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
library(ggplot2)

vdbConn(tempfile(), autoYes = TRUE)

# divide iris data and store it as a local disk connection
d <- divide(iris, by = "Species",
  output = localDiskConn(tempfile(), autoYes = TRUE))

# make a simple display using this data
makeDisplay(d, name = "sl_vs_sw",
  panelFn = function(x)
    qplot(Sepal.Width, Sepal.Length, data = x))

# look at files in our VDB directory
list.files(getVdbPath())
# since the data for our display resides in a different path
# if we try to share this file with someone on another machine
# the data will not be found

# sync any local data objects used in any display to be
# centralized with the VDB directory, making it portable
## Not run: 
syncLocalData() # requires rsync

## End(Not run)

# now there is a "data" directory that holds all local disk data
list.files(getVdbPath())

trelliscope documentation built on Sept. 20, 2017, 5:04 p.m.