本文整理汇总了C++中R_registerRoutines函数的典型用法代码示例。如果您正苦于以下问题:C++ R_registerRoutines函数的具体用法?C++ R_registerRoutines怎么用?C++ R_registerRoutines使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了R_registerRoutines函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: R_init_Biostrings
void R_init_Biostrings(DllInfo *info)
{
/* Lots of code around assumes that sizeof(Rbyte) == sizeof(char) */
if (sizeof(Rbyte) != sizeof(char))
error("sizeof(Rbyte) != sizeof(char)");
_init_bytewise_match_tables();
R_registerRoutines(info, cMethods, NULL, NULL, NULL);
R_registerRoutines(info, NULL, callMethods, NULL, NULL);
/* XString_class.c */
REGISTER_CCALLABLE(_DNAencode);
REGISTER_CCALLABLE(_DNAdecode);
REGISTER_CCALLABLE(_RNAencode);
REGISTER_CCALLABLE(_RNAdecode);
/* XStringSet_class.c */
REGISTER_CCALLABLE(_get_XStringSet_length);
REGISTER_CCALLABLE(_get_XStringSet_xsbaseclassname);
REGISTER_CCALLABLE(_hold_XStringSet);
REGISTER_CCALLABLE(_get_length_from_XStringSet_holder);
REGISTER_CCALLABLE(_get_elt_from_XStringSet_holder);
REGISTER_CCALLABLE(_get_linear_subset_from_XStringSet_holder);
REGISTER_CCALLABLE(_set_XStringSet_names);
/* XStringSetList_class.c */
REGISTER_CCALLABLE(_hold_XStringSetList);
REGISTER_CCALLABLE(_get_length_from_XStringSetList_holder);
REGISTER_CCALLABLE(_get_elt_from_XStringSetList_holder);
/* match_reporting.c */
REGISTER_CCALLABLE(_init_match_reporting);
REGISTER_CCALLABLE(_set_active_PSpair);
REGISTER_CCALLABLE(_set_match_shift);
REGISTER_CCALLABLE(_report_match);
REGISTER_CCALLABLE(_drop_reported_matches);
REGISTER_CCALLABLE(_get_match_count);
REGISTER_CCALLABLE(_reported_matches_asSEXP);
/* MIndex_class.c */
REGISTER_CCALLABLE(_hold_MIndex);
REGISTER_CCALLABLE(_get_length_from_MIndex_holder);
REGISTER_CCALLABLE(_get_width0_elt_from_MIndex_holder);
REGISTER_CCALLABLE(_get_elt_from_MIndex_holder);
/* match_pattern_boyermoore.c */
REGISTER_CCALLABLE(_match_pattern_boyermoore);
return;
}
开发者ID:nw328,项目名称:Biostrings,代码行数:49,代码来源:R_init_Biostrings.c
示例2: R_init_stringi
/**
* Library initialization.
*
* R calls this automatically on lib load/attach.
*/
extern "C" void R_init_stringi(DllInfo* dll)
{
R_registerRoutines(dll, NULL, cCallMethods, NULL, NULL);
// R_useDynamicSymbols(dll, Rboolean(FALSE)); // slower
if (!SUPPORT_UTF8) {
/* Rconfig.h states that all R platforms supports that */
Rf_error("R does not support UTF-8 encoding.");
}
stri_set_icu_data_directory((char*)*(char**)(dll) /* dll->path */);
#ifndef NDEBUG
fprintf(stdout, "!NDEBUG: ************************************************\n");
fprintf(stdout, "!NDEBUG: Dynamic library `stringi` loaded\n");
fprintf(stdout, "!NDEBUG: Check out http://stringi.rexamine.com\n");
fprintf(stdout, "!NDEBUG: \n");
fprintf(stdout, "!NDEBUG: Please send bug reports to [email protected] \n");
fprintf(stdout, "!NDEBUG: or at https://github.com/Rexamine/stringi/issues\n");
fprintf(stdout, "!NDEBUG: \n");
fprintf(stdout, "!NDEBUG: Have fun testing! :-)\n");
fprintf(stdout, "!NDEBUG: ************************************************\n");
// /* u_init: It is OK to simply use ICU services and functions without
// first having initialized ICU by calling u_init(). */
// UErrorCode status;
// u_init(&status);
// if (U_FAILURE(status))
// error("ICU init failed: %s", u_errorName(status));
#endif
}
开发者ID:balagopalraj,项目名称:clearlinux,代码行数:37,代码来源:stri_stringi.cpp
示例3: R_init_graphics
R_init_graphics(DllInfo *dll)
{
R_registerRoutines(dll, NULL, CallEntries, NULL, ExtEntries);
R_useDynamicSymbols(dll, FALSE);
R_forceSymbols(dll, TRUE);
registerBase();
}
开发者ID:Bgods,项目名称:r-source,代码行数:7,代码来源:init.c
示例4: 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);
}
开发者ID:swissr,项目名称:xlsreadwrite,代码行数:7,代码来源:xlsReadWrite.c
示例5: 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*
}
开发者ID:csilles,项目名称:cxxr,代码行数:7,代码来源:splines.c
示例6: 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");
}
开发者ID:corwinjoy,项目名称:xts,代码行数:31,代码来源:init.c
示例7: 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);
}
开发者ID:cran,项目名称:gtools,代码行数:7,代码来源:gtools_load.c
示例8: 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);
}
开发者ID:Vladimir84,项目名称:rcc,代码行数:7,代码来源:register.c
示例9: R_init_sg
void R_init_sg(DllInfo *info)
#endif
{
/* There are four different external language call mechanisms available in R, namely:
* .C
* .Call
* .Fortran
* .External
*
* Currently shogun uses only the .External interface. */
R_CMethodDef cMethods[] = { {NULL, NULL, 0} };
R_FortranMethodDef fortranMethods[] = { {NULL, NULL, 0} };
#ifdef HAVE_ELWMS
R_ExternalMethodDef externalMethods[] = { {"elwms", (void*(*)()) &Rsg, 1}, {NULL, NULL, 0} };
#else
R_ExternalMethodDef externalMethods[] = { {"sg", (void*(*)()) &Rsg, 1}, {NULL, NULL, 0} };
#endif
R_CallMethodDef callMethods[] = { {NULL, NULL, 0} };
/* Register the routines saved in the callMethods structure so that they are available under R. */
R_registerRoutines(info, cMethods, callMethods, (R_FortranMethodDef*) fortranMethods, (R_ExternalMethodDef*) externalMethods);
}
开发者ID:AsherBond,项目名称:shogun,代码行数:25,代码来源:RInterface.cpp
示例10: R_init_lcd
void
R_init_lcd(DllInfo *info)
{
/* Register routines, allocate resources. */
R_registerRoutines(info, NULL, callEntries /*CallEntries*/,
NULL, NULL /*ExternEntries*/);
}
开发者ID:cran,项目名称:lcd,代码行数:7,代码来源:Lcd_init.c
示例11: registerAll
void registerAll()
{
// c methods
R_CMethodDef* pCMethods = NULL;
if (s_cMethods.size() > 0)
{
R_CMethodDef nullMethodDef ;
nullMethodDef.name = NULL ;
nullMethodDef.fun = NULL ;
nullMethodDef.numArgs = 0 ;
nullMethodDef.types = NULL;
nullMethodDef.styles = NULL;
s_cMethods.push_back(nullMethodDef);
pCMethods = &s_cMethods[0];
}
// call methods
R_CallMethodDef* pCallMethods = NULL;
if (s_callMethods.size() > 0)
{
R_CallMethodDef nullMethodDef ;
nullMethodDef.name = NULL ;
nullMethodDef.fun = NULL ;
nullMethodDef.numArgs = 0 ;
s_callMethods.push_back(nullMethodDef);
pCallMethods = &s_callMethods[0];
}
DllInfo *info = R_getEmbeddingDllInfo() ;
R_registerRoutines(info, pCMethods, pCallMethods, NULL, NULL) ;
}
开发者ID:Roboer,项目名称:rstudio,代码行数:31,代码来源:RRoutines.cpp
示例12: R_init_dREG
/**************************************************************
*
* Register entry points...
*
**************************************************************/
void R_init_dREG(DllInfo *info) {
R_CallMethodDef callMethods[] = {
{"get_genomic_data_R", (DL_FUNC)&get_genomic_data_R, 5},
{NULL, NULL, 0}
};
R_registerRoutines(info, NULL, callMethods, NULL, NULL);
}
开发者ID:corcra,项目名称:dREG,代码行数:13,代码来源:RegisterRRoutines.c
示例13: 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
}
开发者ID:csilles,项目名称:cxxr,代码行数:8,代码来源:init.c
示例14: 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 */
}
开发者ID:rforge,项目名称:lme4,代码行数:8,代码来源:init.cpp
示例15: 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);
}
开发者ID:cran,项目名称:frailtypack,代码行数:8,代码来源:init.c
示例16: 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");
}
开发者ID:rforge,项目名称:blme,代码行数:58,代码来源:init.c
示例17: 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
}
开发者ID:CyrusDioun,项目名称:causalTree,代码行数:9,代码来源:init.c
示例18: 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);
}
开发者ID:cran,项目名称:blockcluster,代码行数:9,代码来源:init_blockcluster.c
示例19: init_Rcpp_routines
// this is called by R_init_Rcpp that is in Module.cpp
void init_Rcpp_routines(DllInfo *info){
/* Register routines, allocate resources. */
R_registerRoutines(info,
NULL /* .C*/,
callEntries /*.Call*/,
NULL /* .Fortran */,
extEntries /*.External*/
);
}
开发者ID:jjallaire,项目名称:Rcpp,代码行数:10,代码来源:Rcpp_init.c
示例20: 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);
}
开发者ID:cran,项目名称:aster,代码行数:10,代码来源:init.c
注:本文中的R_registerRoutines函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论