gmt.system | R Documentation |
This internal function invokes a shell command, possibly directing the output to a file.
gmt.system(cmd, file=NULL, append=FALSE)
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. |
Command output as a vector of strings.
gmt.system
is a fast platform-independent wrapper for
system
, supporting redirection to file.
It is mainly called by other functions, but users may find it useful for running various GMT commands.
system
, writeLines
.
gmt-package
gives an overview of the package.
## Not run: # Assuming bermuda.nc is in R working directory gmt.system("gmt grdcontour bermuda.nc -JM7i -C250 -A1000 -B2", file="b.ps") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.