R/INTERNAL-checkConnection.R

Defines functions checkConnection

checkConnection <- function(details) {
  if ( Sys.getpid() != details[["pidOfR"]] ) {
    close.rscalaBridge(details)
    stop("Each process should have its own Scala bridge.  Closing this bridge.")
  }
  if ( details[['closed']] ) stop("Bridge is closed.")
}

Try the rscala package in your browser

Any scripts or data that you put into this service are public.

rscala documentation built on Aug. 15, 2023, 9:07 a.m.