search for: r_fortranmethoddef

Displaying 7 results from an estimated 7 matches for "r_fortranmethoddef".

2017 May 09
2
registering Fortran routines in R packages
...roject.org/scm/viewvc.php/pkg/randtoolbox/src/init.c?view=markup&root=rmetrics. Reading https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Registering-native-routines and looking at what is done in stats package, I first thought that the following code will do the job: static const R_FortranMethodDef FortEntries[] = { {"halton", (DL_FUNC) &F77_NAME(HALTON), 7}, {"sobol", (DL_FUNC) &F77_NAME(SOBOL), 11}, {NULL, NULL, 0} }; But I got error messages when building : use of undeclared identifier ?SOBOL_?. I also tried in lower case sobol and halton. Looking at expm...
2017 May 09
0
registering Fortran routines in R packages
...c.php/pkg/randtoolbox/src/init.c?view=markup&root=rmetrics. > > Reading https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Registering-native-routines and looking at what is done in stats package, I first thought that the following code will do the job: > > static const R_FortranMethodDef FortEntries[] = { > {"halton", (DL_FUNC) &F77_NAME(HALTON), 7}, > {"sobol", (DL_FUNC) &F77_NAME(SOBOL), 11}, > {NULL, NULL, 0} > }; > > But I got error messages when building : use of undeclared identifier ?SOBOL_?. I also tried in lower case sobol a...
2017 May 10
3
registering Fortran routines in R packages
...olbox/src/init.c?view=markup&root=rmetrics. >> >> Reading https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Registering-native-routines and looking at what is done in stats package, I first thought that the following code will do the job: >> >> static const R_FortranMethodDef FortEntries[] = { >> {"halton", (DL_FUNC) &F77_NAME(HALTON), 7}, >> {"sobol", (DL_FUNC) &F77_NAME(SOBOL), 11}, >> {NULL, NULL, 0} >> }; >> >> But I got error messages when building : use of undeclared identifier ?SOBOL_?. I also tri...
2007 Mar 19
3
Rinternals.h and undefined symbols
Hi, I'm trying to register my native routines using R_registerRoutines (...). I can compile the code, but the loader cannot resolve the symbol: undefined symbol: _Z18R_registerRoutinesP8_DllInfoPK12R_CMethodDefPK15R_CallMethodDefS3_S6 _ $ nm bgx.Rcheck/bgx/libs/bgx.so | grep R_registerRoutines U _Z18R_registerRoutinesP8_DllInfoPK12R_CMethodDefPK15R_CallMethodDefS3_S6
2017 Mar 06
0
R 3.3.3 is released
...* Environmental variable _R_CHECK_TESTS_NLINES_ controls how R CMD check reports failing tests (see SS8 of the 'R Internals' manual). DEPRECATED AND DEFUNCT: * (C-level Native routine registration.) The undocumented styles field of the components of R_CMethodDef and R_FortranMethodDef is deprecated. BUG FIXES: * vapply(x, *) now works with long vectors x. (PR#17174) * isS3method("is.na.data.frame") and similar are correct now. (PR#17171) * grepRaw(<long>, <short>, fixed = TRUE) now works, thanks to a patch by Mikko Korpe...
2017 Mar 06
0
R 3.3.3 is released
...* Environmental variable _R_CHECK_TESTS_NLINES_ controls how R CMD check reports failing tests (see SS8 of the 'R Internals' manual). DEPRECATED AND DEFUNCT: * (C-level Native routine registration.) The undocumented styles field of the components of R_CMethodDef and R_FortranMethodDef is deprecated. BUG FIXES: * vapply(x, *) now works with long vectors x. (PR#17174) * isS3method("is.na.data.frame") and similar are correct now. (PR#17171) * grepRaw(<long>, <short>, fixed = TRUE) now works, thanks to a patch by Mikko Korpe...
2010 Mar 14
1
Segfault Problem c++ R interface (detailed)
...} } //End Extern !!!!!!!!C-Register code (to register the C++ routines into the R libraries): #include <R.h> #include <Rinternals.h> #include <R_ext/Rdynload.h> void RSymbReg(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP); static R_FortranMethodDef FortEntries[] = { {NULL, NULL, 0} }; static R_CMethodDef cEntries[] = { {NULL, NULL, 0, NULL} }; static R_CallMethodDef callEntries[] = { {"RSymbReg", (DL_FUNC) &RSymbReg, 14}, {NULL, NULL, 0} }; void R_init_testing(DllInfo *info) { R_registerRoutines(info, cEntries, cal...