R/pscoast.R

Defines functions pscoast

Documented in pscoast

pscoast <- function(cmd, file=getOption("gmt.file"))
{
  if(is.null(file))
    stop("please pass a valid 'file' argument, or run gmt(file=\"myfile\")")
  owd <- setwd(dirname(file)); on.exit(setwd(owd))

  gmt.system(paste("gmt pscoast",cmd), file=file)

  invisible(NULL)
}

Try the gmt package in your browser

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

gmt documentation built on June 7, 2022, 1:11 a.m.