static void internet_Init(void) { int res; #ifdef Win32 res = UseInternet2 ? R_moduleCdynload("internet2", 1, 1) : R_moduleCdynload("internet", 1, 1); #else res = R_moduleCdynload("internet", 1, 1); #endif initialized = -1; if(!res) return; if(!ptr->download) error(_("internet routines cannot be accessed in module")); initialized = 1; return; }
static void vfonts_Init(void) { int res = R_moduleCdynload("vfonts", 1, 1); initialized = -1; if(!res) return; if(!routines.GEVStrWidth) error(_("vfont routines cannot be accessed in module")); initialized = 1; return; }
static void La_Init(void) { int res = R_moduleCdynload("lapack", 1, 1); initialized = -1; if(!res) return; if(!ptr->svd) error(_("lapack routines cannot be accessed in module")); initialized = 1; return; }
static void internet_Init(void) { int res; res = R_moduleCdynload("internet", 1, 1); initialized = -1; if(!res) return; if(!ptr->download) error(_("internet routines cannot be accessed in module")); initialized = 1; return; }
int attribute_hidden R_X11_Init(void) { int res; if(initialized) return initialized; initialized = -1; if(strcmp(R_GUIType, "none") == 0) { warning(_("X11 module is not available under this GUI")); return initialized; } res = R_moduleCdynload("R_X11", 1, 1); if(!res) return initialized; if(!ptr->access) error(_("X11 routines cannot be accessed in module")); initialized = 1; return initialized; }
static void R_de_Init(void) { static int de_init = 0; if(de_init > 0) return; if(de_init < 0) error(_("X11 dataentry cannot be loaded")); de_init = -1; if(strcmp(R_GUIType, "none") == 0) { warning(_("X11 is not available")); return; } int res = R_moduleCdynload("R_de", 1, 1); if(!res) error(_("X11 dataentry cannot be loaded")); de_ptr->de = (R_X11DataEntryRoutine) R_FindSymbol("in_RX11_dataentry", "R_de", NULL); de_ptr->dv = (R_X11DataViewer) R_FindSymbol("in_R_X11_dataviewer", "R_de", NULL); de_init = 1; return; }