search for: r_init_

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

2003 Dec 09
1
R Interface handholding
...mething called init.c: #include "areone.h" #include <R_ext/Rdynload.h> #include <Rinternals.h> R_NativePrimitiveArgType myincr_t[1] = {INTSXP}; static const R_CMethodDef cMethods[] = { {"myincr", (DL_FUNC) &myincr, 1, myincr_t} }; void R_init_myincr(DllInfo* dll) { R_registerRoutines(dll, cMethods, NULL, NULL, NULL); } R is happy to install this for me, but after doing a library(myincr), the function doesn't seem to be available, so I presume I'm missing something. Does R normally call, at library load, R_init_$MODULENAME() ?...
2009 Nov 15
2
Segmentation faults on SEXP conversion
...acter` or both (as in the above). I have not tried other types. However, I have attempted various type conversions in the Rdefines.h header, but cannot avoid the segmentation fault. This is the only code in the proof-of-concept pacakage (aside from useDynLoad related registration structures and the R_init_??? call). I have a feeling it is something simple, but I am not well versed in R package development at this point. Please let me know if other information is helpful. I am running Linux 2.6.27.30-170.2.82.fc10.x86_64 with R 2.10.0. Thanks!
2007 Mar 27
3
Use of 'defineVar' and 'install' in .Call
Dear all, [system and version information below] I am trying to modify a C function for finding the root of an expression. The function is to be called from R as .Call with input parameters: f: expression for which we will find the root guesses: interval for the solution stol: tolerance rho: environment The original functions I use are: SEXP mkans(double x) { SEXP ans; PROTECT(ans =
2007 Mar 27
3
Use of 'defineVar' and 'install' in .Call
Dear all, [system and version information below] I am trying to modify a C function for finding the root of an expression. The function is to be called from R as .Call with input parameters: f: expression for which we will find the root guesses: interval for the solution stol: tolerance rho: environment The original functions I use are: SEXP mkans(double x) { SEXP ans; PROTECT(ans =
2006 Apr 12
0
headerfile translation to Delphi (Pascal) completed
...face functions .C, .Call and .External are used and the application of some macros in Rinternals.h and Rdefines.h (which become rhRInternal.pas and rhRDefines.pas) is shown. RegisteredConvolve ------------------ "RegisteredDemoEx.dll" shows how to register a Delphi function in the "R_init_<dll-name>" call. [The RegisteredConvDemo was the first attempt but the freely called register method "RegisterConvolveRoutines" still crashes in some circumstances (see _rscriptMultiple.R) for unknown reason] Initialize ---------- This important demo prints the sequence of...
2003 Apr 16
2
R-1.7.0 is released
...ations of BLAS routines moved to R_ext/BLAS.h and included in R_ext/Applic.h and R_ext/Linpack.h for backward compatibility. o R will automatically call initialization and unload routines, if present, in shared libraries/DLLs during dyn.load() and dyn.unload() calls. The routines are named R_init_<dll name> and R_unload_<dll name>, respectively. See the Writing R Extensions Manual for more information. o Routines exported directly from the R executable for use with .C(), .Call(), .Fortran() and .External() are now accessed via the registration mechanism (optionally) used...
2003 Apr 16
2
R-1.7.0 is released
...ations of BLAS routines moved to R_ext/BLAS.h and included in R_ext/Applic.h and R_ext/Linpack.h for backward compatibility. o R will automatically call initialization and unload routines, if present, in shared libraries/DLLs during dyn.load() and dyn.unload() calls. The routines are named R_init_<dll name> and R_unload_<dll name>, respectively. See the Writing R Extensions Manual for more information. o Routines exported directly from the R executable for use with .C(), .Call(), .Fortran() and .External() are now accessed via the registration mechanism (optionally) used...