[R] R as a `script'

Pierre Kleiber pkleiber at honlab.nmfs.hawaii.edu
Wed Feb 5 23:50:06 CET 2003


While on the subject of scripts... Can someone suggest a strategy for
plotting something in an X11 window with R in a Unix script, such that
the plot window will persist after the script exits?  i.e.:

      #!/bin/sh
      R --slave --vanilla  <<EOF

      X11()

      plot something

      do something to preserve the image

      q()

      EOF


-- 
-----------------------------------------------------------------
Pierre Kleiber             Email: pkleiber at honlab.nmfs.hawaii.edu
Fishery Biologist                     Tel: 808 983-5399/737-7544
NOAA FISHERIES - Honolulu Laboratory         Fax: 808 983-2902
2570 Dole St., Honolulu, HI 96822-2396
-----------------------------------------------------------------




More information about the R-help mailing list