R/utils.r

open_error <- function (resource, name, assert, e) {
  
  action <- switch(
    EXPR = assert, 
    'create' = 'create', 
    'exists' = 'open', 
    'NULL'   = 'open or create' )
  
  msg <- paste('Could not', action, 'the', resource, 'named', shQuote(name))
  stop(msg, '.\n', sub('^Error\\: ', '', e), call. = FALSE)
}

Try the interprocess package in your browser

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

interprocess documentation built on June 8, 2025, 11 a.m.