[R] implementing a foreign system with system?

Robert L. Sandefur rls at pincock.com
Fri Jun 2 17:22:05 CEST 2000


Hi-
 There is a public doman geostatistics package used in the minieral industry called GSLIB and I would like to use it from R. However it is fortran (but portable and easy to compile on windows and  linux)and has its own file format and control file format. It seems easiest to write an r function to dump r data to an ascii file, build a control file in ascii; call the GSLIB program with system("KT3D <KT3d.ctl"), read the GSLIB output back to R and graph it or whatever. Questions:
 1) Is this approach used elsewhere in R? 
 2) I know system() works from windows - would the same call workthe same  from linux?

Thanx 

Bob Sandefur



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list