gmt.system {gmt}R Documentation

Invoke GMT system command

Description

Invoke a system 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

Command output as a vector of strings.

Note

This function is primarily an internal function, but users may find it handy for their own plotting functions. It is platform-independent, unlike the shell function.

Author(s)

Arni Magnusson arnima@u.washington.edu.

See Also

system, writeLines.

gmt-package gives an overview of the package.

Examples

## Not run: 
## Assuming that GMT is in path
gmt.system("gmtdefaults -Ds", file=".gmtdefaults4")
## End(Not run)

[Package gmt version 1.0-3 Index]