Rev 55 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
#include "devGTK.h"#include <R_ext/Rdynload.h>/**Ensure that gtk is loaded. We may want to leave this toanother package, e.g. RGtk, so that people can add their ownoptions.*/void loadGTK(){char **argv;int argc = 1;argv = (char **) g_malloc(argc * sizeof(char *));argv[0] = g_strdup("R");gtk_init(&argc, &argv);}