Displaying 1 result from an estimated 1 matches for "fortran_output".
2007 Oct 24
4
X11 graphics windows under CMD BATCH
...I am trying to plot some output from a  FORTRAN (ifort) program using  
R (2.5.1) under batch mode. In the FORTRAN code, I call R in batch  
mode to execute a script called fig1.R using something like
PROGRAM test
USE IFPORT
	IMPLICIT NONE
	DO
		!Some function which makes an output file called ~/fortran_output.txt
		CALL myfunc()
		!System call to R plotting routine
		CALL SYSTEM ("open -a x11")
		CALL SYSTEM ("R CMD BATCH ~/fig1.R")
	END DO
END PROGRAM test
The system call goes through fine, and R fires up and processes the  
contents of fig1.R which are something like:
Sys.seten...