gmt (version 1.2-0)

gmt.system: Invoke shell command

Description

This internal function invokes a shell command, possibly directing the output to a file.

Usage

gmt.system(cmd, file=NULL, append=FALSE)

Arguments

cmd
system command to be invoked, as a string.
file
filename to which output should be directed.
append
whether output should be appended to existing file.

Value

See Also

system, writeLines.

gmt-package gives an overview of the package.

Examples

Run this code
## Not run: 
# gmt.system("gmtdefaults -Ds", file=".gmtdefaults4")
# 
# # Assuming bermuda.nc is in R working directory
# gmt.system("grdcontour bermuda.nc -JM7i -C250 -A1000 -B2", file="b.eps")
# ## End(Not run)

Run the code above in your browser using DataLab