Nothing
.canPhantomTest <- function() {
if(Sys.which("phantomjs") == "") { return(FALSE) }
if(!getOption("epivizrCanDaemonize")) { return(FALSE) }
TRUE
}
remDr <- NULL
pJS <- NULL
.startRemoteDriver <- function() {
if(!require(RSelenium)) {
stop("can't run this test here")
}
if(!.canPhantomTest()) {
stop("can't do headless testing here")
}
pJS <<- phantom()
Sys.sleep(2)
remDr <<- remoteDriver(browserName = 'phantomjs')
res <- remDr$open()
invisible()
}
.navigateRemoteDriver <- function(url) {
parallel::mcparallel(remDr$navigate(url), detached=TRUE)
Sys.sleep(2)
}
.stopPhantomJS <- function() {
pJS$stop()
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.