本文整理汇总了C++中R_useDynamicSymbols函数的典型用法代码示例。如果您正苦于以下问题:C++ R_useDynamicSymbols函数的具体用法?C++ R_useDynamicSymbols怎么用?C++ R_useDynamicSymbols使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了R_useDynamicSymbols函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: R_init_splines
void
R_init_splines(DllInfo *dll)
{
R_registerRoutines(dll, NULL, R_CallDef, NULL, NULL);
R_useDynamicSymbols(dll, FALSE);
// R_forceSymbols(dll, TRUE); // too few to worry about, used in cobs*
}
示例2: R_init_gtools
void R_init_gtools(DllInfo *info)
{
/* Register C routines */
R_registerRoutines (info, cMethods, NULL, NULL, NULL);
R_useDynamicSymbols(info, FALSE);
R_forceSymbols (info, TRUE);
}
示例3: R_init_xlsReadWrite
void R_init_xlsReadWrite(DllInfo *dll)
{
R_registerRoutines(dll, NULL, R_CallDef, NULL, NULL);
R_useDynamicSymbols(dll, FALSE);
Rprintf(crmsg);
Rprintf(cranmsg);
}
示例4: R_init_xts
void R_init_xts(DllInfo *info)
{
SymbolShortcuts();
R_registerRoutines(info,
NULL,
callMethods,
NULL,
externalMethods);
R_useDynamicSymbols(info, TRUE);
/* used by external packages linking to internal xts code from C */
R_RegisterCCallable("xts","do_is_ordered",(DL_FUNC) &do_is_ordered);
R_RegisterCCallable("xts","coredata_xts", (DL_FUNC) &coredata_xts);
R_RegisterCCallable("xts","isXts", (DL_FUNC) &isXts);
R_RegisterCCallable("xts","tryXts", (DL_FUNC) &tryXts);
R_RegisterCCallable("xts","do_rbind_xts", (DL_FUNC) &do_rbind_xts);
R_RegisterCCallable("xts","naCheck", (DL_FUNC) &naCheck);
R_RegisterCCallable("xts","lagXts", (DL_FUNC) &lagXts);
R_RegisterCCallable("xts","make_index_unique", (DL_FUNC) &make_index_unique);
R_RegisterCCallable("xts","make_unique", (DL_FUNC) &make_unique);
R_RegisterCCallable("xts","endpoints", (DL_FUNC) &endpoints);
R_RegisterCCallable("xts","do_merge_xts", (DL_FUNC) &do_merge_xts);
R_RegisterCCallable("xts","na_omit_xts", (DL_FUNC) &na_omit_xts);
R_RegisterCCallable("xts","na_locf", (DL_FUNC) &na_locf);
/* used by xts (functions moved from xts to zoo) */
zoo_lag = (SEXP(*)(SEXP,SEXP,SEXP)) R_GetCCallable("zoo","zoo_lag");
zoo_coredata = (SEXP(*)(SEXP,SEXP)) R_GetCCallable("zoo","zoo_coredata");
}
示例5: R_init_grid
void R_init_grid(DllInfo *dll)
{
/* No .C, .Fortran, or .External routines => NULL
*/
R_registerRoutines(dll, NULL, callMethods, NULL, NULL);
R_useDynamicSymbols(dll, FALSE);
}
示例6: R_init_graphics
R_init_graphics(DllInfo *dll)
{
R_registerRoutines(dll, NULL, CallEntries, NULL, ExtEntries);
R_useDynamicSymbols(dll, FALSE);
R_forceSymbols(dll, TRUE);
registerBase();
}
示例7: R_init_foreign
void R_init_foreign(DllInfo *dll)
{
R_registerRoutines(dll, CEntries, CallEntries, NULL, ExtEntries);
R_useDynamicSymbols(dll, FALSE);
#if defined(R_VERSION) && R_VERSION >= R_Version(3, 0, 0)
R_forceSymbols(dll, TRUE);
#endif
}
示例8: R_init_lme4a
void R_init_lme4a(DllInfo *dll)
{
R_registerRoutines(dll, NULL, CallEntries, NULL, NULL);
R_useDynamicSymbols(dll, (Rboolean)FALSE);
M_R_cholmod_start(&c);
c.final_ll = 1; /* LL' form of simplicial factorization */
}
示例9: R_init_frailtypack
void
attribute_visible
R_init_frailtypack(DllInfo *dll)
{
R_registerRoutines(dll, NULL, NULL, FortEntries, NULL);
R_useDynamicSymbols(dll, FALSE);
R_forceSymbols(dll, TRUE);
}
示例10: R_init_blme
void R_init_blme(DllInfo *dll)
{
R_registerRoutines(dll, NULL, CallEntries, NULL, NULL);
R_useDynamicSymbols(dll, FALSE);
M_R_cholmod_start(&cholmodCommon);
cholmodCommon.final_ll = 1; /* LL' form of simplicial factorization */
lme4_ASym = install("A");
lme4_CmSym = install("Cm");
lme4_CxSym = install("Cx");
lme4_DimSym = install("Dim");
lme4_GpSym = install("Gp");
lme4_LSym = install("L");
lme4_RXSym = install("RX");
lme4_RZXSym = install("RZX");
lme4_STSym = install("ST");
lme4_VSym = install("V");
lme4_XSym = install("X");
lme4_XstSym = install("Xst");
lme4_ZtSym = install("Zt");
lme4_devianceSym = install("deviance");
lme4_dimsSym = install("dims");
lme4_envSym = install("env");
lme4_etaSym = install("eta");
lme4_fixefSym = install("fixef");
lme4_flistSym = install("flist");
lme4_ghwSym = install("ghw");
lme4_ghxSym = install("ghx");
lme4_gradientSym = install("gradient");
lme4_iSym = install("i");
lme4_ncSym = install("nc");
lme4_nlmodelSym = install("nlmodel");
lme4_muEtaSym = install("muEta");
lme4_muSym = install("mu");
lme4_offsetSym = install("offset");
lme4_pSym = install("p");
lme4_permSym = install("perm");
lme4_pWtSym = install("pWt");
lme4_ranefSym = install("ranef");
lme4_residSym = install("resid");
lme4_sigmaSym = install("sigma");
lme4_sqrtrWtSym = install("sqrtrWt");
lme4_sqrtXWtSym = install("sqrtXWt");
lme4_uSym = install("u");
lme4_varSym = install("var");
lme4_xSym = install("x");
lme4_ySym = install("y");
blme_covariancePriorSym = install("cov.prior");
blme_unmodeledCoefficientPriorSym = install("fixef.prior");
blme_commonScalePriorSym = install("var.prior");
blme_prior_typeSym = install("type");
blme_prior_familiesSym = install("families");
blme_prior_scalesSym = install("scales");
blme_prior_hyperparametersSym = install("hyperparameters");
}
示例11: R_init_causalTree
void
R_init_causalTree(DllInfo * dll)
{
R_registerRoutines(dll, NULL, CallEntries, NULL, NULL);
R_useDynamicSymbols(dll, FALSE);
#if defined(R_VERSION) && R_VERSION >= R_Version(2, 16, 0)
R_forceSymbols(dll, TRUE);
#endif
}
示例12: R_init_myRoutines
void R_init_myRoutines(DllInfo *info)
{
/* Register the .Call routines.
No .C .Fortran() or .External() routines,
so pass those arrays as NULL.
*/
R_registerRoutines(info, NULL, callMethods, NULL, NULL);
R_useDynamicSymbols(info, TRUE);
}
示例13: R_init_aster
void attribute_visible R_init_aster(DllInfo *info)
{
R_registerRoutines(info, cMethods, callMethods, NULL, NULL);
R_useDynamicSymbols(info, FALSE);
R_forceSymbols(info, TRUE);
R_RegisterCCallable("aster", "aster_mlogl_sat_unco",
(DL_FUNC) aster_mlogl_sat_unco);
R_RegisterCCallable("aster", "aster_mlogl_sat_cond",
(DL_FUNC) aster_mlogl_sat_cond);
}
示例14: R_init_stats
void attribute_visible R_init_stats(DllInfo *dll)
{
R_registerRoutines(dll, CEntries, CallEntries, FortEntries, ExtEntries);
R_useDynamicSymbols(dll, FALSE);
R_forceSymbols(dll, TRUE);
R_RegisterCCallable("stats", "nlminb_iterate", (DL_FUNC) nlminb_iterate);
R_RegisterCCallable("stats", "nlsb_iterate", (DL_FUNC) nlsb_iterate);
R_RegisterCCallable("stats", "Rf_divset", (DL_FUNC) Rf_divset);
}
示例15: R_getDllInfo
/* returns DllInfo used by the embedding application.
the underlying "(embedding)" entry is created if not present */
DllInfo *R_getEmbeddingDllInfo()
{
DllInfo *dll = R_getDllInfo("(embedding)");
if (dll == NULL) {
int which = addDLL(strdup("(embedding)"), "(embedding)", NULL);
dll = &LoadedDLL[which];
/* make sure we don't attempt dynamic lookup */
R_useDynamicSymbols(dll, FALSE);
}
return dll;
}