The R Project SVN R

Rev

Rev 38673 | Details | Compare with Previous | 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
{
38673 ripley 14
    /* Evaluates the expression 
14948 duncan 15
       plot(c(1,2,3,4,5,6,7,8,9,10))
38673 ripley 16
    */
17
    eval_R_command("plot", argc, argv); 
18
    return(0);
14948 duncan 19
}
20