R/shared.R

# Shared, private code

# Decides whether error object was stored or is an end-of-tape marker
.ckErr<-function(v){
 if("try-error"%in%class(v)){
  v<-attr(v,"condition")
  if(identical(v$call,quote(unserialize(con))))
   return(TRUE)
 }
 return(FALSE)
}

Try the rtape package in your browser

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

rtape documentation built on May 2, 2019, 9:18 a.m.