Description Usage Arguments See Also Examples
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
.
1 | syncLocalData(vdbConn = getOption("vdbConn"), rsync = NULL)
|
vdbConn |
VDB connection settings |
rsync |
location of rsync binary |
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())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.