R/read.colorado.R

read.colorado <- function(file) {
  # if it's a character make it a file.
  if (is.character(file)) {
    file <- file(file, "rt")
    on.exit(close(file))
  }
  # should be a connection now...
  if (!inherits(file, "connection")) {
    stop("'file' must be a character string or connection")
  }
  
}

Try the sealevel package in your browser

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

sealevel documentation built on May 2, 2019, 6:51 p.m.