trelliscope (version 0.9.7)

webSync: Sync VDB files to a web server

Description

Sync VDB files to a web server

Usage

webSync(vdbConn = getOption("vdbConn"), webConn = getOption("vdbWebConn"), fixPermissions = FALSE, verbose = FALSE, rsync = NULL)

Arguments

vdbConn
VDB connection settings
webConn
web connection settings
fixPermissions
should an attempt be made to fix permissions in the web directory?
verbose
show rsync output
rsync
location of rsync binary

Details

This requires rsync to be installed on your machine. If you are syncing via ssh, this only works if public key authentication is enabled between your local machine and the remote server.

See Also

webConn, syncLocalData

Examples

Run this code
library(ggplot2)

vdbConn(tempfile(), autoYes = TRUE)

# make a simple display
d <- divide(iris, by = "Species")
makeDisplay(d, name = "sl_vs_sw",
  panelFn = function(x)
    qplot(Sepal.Width, Sepal.Length, data = x))

## Not run: 
# # to sync to a server 'myshinyserver.org' with login 'user'
# # need: passwordless ssh for user@myshinyserver.org)
# # need: rsync installed on local machine
# # (these should both be easy to do with local linux / OS X)
# 
# # set up a connection to a shiny server
# webConn(user = "hafen", ip = "myshinyserver.org", name = "myapp")
# 
# # webSync() uses rsync to sync your local vdb
# # to the one on your shiny server pointed to with webConn()
# webSync()
# 
# # if shiny server is running on the remote on port 3838
# # then the VDB will now be viewable at
# browseURL("http://myshinyserver.org:3838/myapp")
# ## End(Not run)

Run the code above in your browser using DataCamp Workspace