Learn R Programming

gmt (version 1.0-2)

gmt.system: 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.

See Also

system is used to invoke system commands and writeLines to write the output to a file.

Examples

Run this code
## Assuming that GMT is in path
gmt.system("gmtdefaults -Ds", file=".gmtdefaults4")

Run the code above in your browser using DataLab