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())
Run the code above in your browser using DataCamp Workspace