Nothing
#' Find a Scala Bridge
#'
#' This function attempts to find an instance of a Scala bridge based on an
#' rscala reference or by searching the environment path.
#'
#' @param reference Either: i. An rscala reference, or ii. \code{NULL} (in which
#' case the environment path is searched).
#'
#' @return A Scala bridge.
#' @export
#'
scalaFindBridge <- function(reference=NULL) {
if ( ! is.null(reference) ) {
mkBridge(attr(reference,"rscalaReferenceEnvironment")[["details"]])
} else {
counter <- 2
while ( TRUE ) {
frame <- parent.frame(counter)
w <- which(sapply(ls(envir=frame),function(x) class(get(x,envir=frame)))=="rscalaBridge")
if ( length(w) == 1 ) return(get(names(w),envir=frame))
if ( length(w) > 1 ) stop("Multiple Scala instances were found in the same environment.")
if ( identical(frame,.GlobalEnv) ) stop("Cannot find a Scala bridge.")
counter <- counter + 1
}
}
}
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.