The R Project SVN R

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
14948 duncan 1
/*
2
  Tests using the default graphics device from within 
3
  an application that embeds the R interpreter.
4
  Equivalent of evaluating the expressions:
5
 
6
     plot(c(1, 2, 3, 4, 5, 6, 7 ,8, 9, 10))
7
*/
8
#include "embeddedRCall.h"
9
 
10
 
11
int
12
main(int argc, char *argv[])
13
{
14
  /* Evaluates the expression 
15
       plot(c(1,2,3,4,5,6,7,8,9,10))
16
   */
17
  eval_R_command("plot", argc, argv); 
18
  return(0);
19
}
20