search for: r_registerroutines

Displaying 20 results from an estimated 36 matches for "r_registerroutines".

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_CMethodDe...
2018 Feb 23
2
Problem with R_registerRoutines
Dear list, I am trying to update a package to pass the CRAN-checks. But I am struggling with the following note: File 'psgp/libs/i386/psgp.dll': Found no calls to: 'R_registerRoutines', 'R_useDynamicSymbols' File 'psgp/libs/x64/psgp.dll': Found no calls to: 'R_registerRoutines', 'R_useDynamicSymbols' It is good practice to register native routines and to disable symbol search. I did already run: tools::package_native_routine_registration_...
2018 Feb 23
2
Problem with R_registerRoutines
...nd here. Anyway, does this mean that the package might be accepted on CRAN without further changes? Thanks, Jon ________________________________________ From: Jeroen Ooms [jeroenooms at gmail.com] Sent: 23 February 2018 13:36 To: SKOIEN Jon (JRC-ISPRA) Cc: r-devel Subject: Re: [Rd] Problem with R_registerRoutines On Windows this warning may be a false positive if R cannot find "objdump.exe" which is required for this check. I think this is actually a bug in R because it should be looking for "objdump.exe" inside BINPREF (where gcc is) rather than on the PATH. Can you check if you get t...
2018 Feb 23
0
Problem with R_registerRoutines
...r_pkg> on Linux ? Martin > Thanks, > Jon > ________________________________________ > From: Jeroen Ooms [jeroenooms at gmail.com] > Sent: 23 February 2018 13:36 > To: SKOIEN Jon (JRC-ISPRA) > Cc: r-devel > Subject: Re: [Rd] Problem with R_registerRoutines > On Windows this warning may be a false positive if R cannot find > "objdump.exe" which is required for this check. I think this is > actually a bug in R because it should be looking for "objdump.exe" > inside BINPREF (where gcc is) rather than on t...
2018 Feb 27
0
Problem with R_registerRoutines
...ll gives it. Georgi Boshnakov ------------------------------ Message: 5 Date: Tue, 27 Feb 2018 07:21:18 +0000 From: <Jon.SKOIEN at ec.europa.eu> To: <maechler at stat.math.ethz.ch> Cc: <jeroenooms at gmail.com>, <r-devel at r-project.org> Subject: Re: [Rd] Problem with R_registerRoutines Message-ID: <548D52560D5BDE45AEC4EF876BF2A194012D3FF3 at S-DC-ESTB01-J.net1.cec.eu.int> Content-Type: text/plain; charset="us-ascii" Martin, I did not use --as-cran on Linux, when I do, I also see the error there. So most likely something is wrong and you're right that the...
2018 Feb 23
0
Problem with R_registerRoutines
...? On Fri, Feb 23, 2018 at 10:28 AM, <Jon.SKOIEN at ec.europa.eu> wrote: > Dear list, > > I am trying to update a package to pass the CRAN-checks. > But I am struggling with the following note: > > File 'psgp/libs/i386/psgp.dll': > Found no calls to: 'R_registerRoutines', 'R_useDynamicSymbols' > File 'psgp/libs/x64/psgp.dll': > Found no calls to: 'R_registerRoutines', 'R_useDynamicSymbols' > > It is good practice to register native routines and to disable symbol > search. > > > I did already run: > t...
2007 Jan 23
2
is it necessary to always register C routines with R_registerRoutines?
...51 attached base packages: [1] "stats" "graphics" "grDevices" "utils" "datasets" "methods" [7] "base" -- View this message in context: http://www.nabble.com/is-it-necessary-to-always-register-C-routines-with-R_registerRoutines--tf3063486.html#a8519680 Sent from the R devel mailing list archive at Nabble.com.
2017 Apr 25
0
R_CMethodDef incompatibility (affects R_registerRoutines)
I recently noticed a change between R-3.3.3 and R-3.4.0 in the definition of the R_CMethodDef struct. typedef struct { const char *name; DL_FUNC fun; int numArgs; - R_NativePrimitiveArgType *types; - R_NativeArgStyle *styles; - } R_CMethodDef; I suspect this is the reason that packages installed by R-3.4.0 and loaded into R-3.3.3 will crash the
2018 Feb 27
0
R-devel Digest, Vol 180, Issue 24
...ll gives it. Georgi Boshnakov ------------------------------ Message: 5 Date: Tue, 27 Feb 2018 07:21:18 +0000 From: <Jon.SKOIEN at ec.europa.eu> To: <maechler at stat.math.ethz.ch> Cc: <jeroenooms at gmail.com>, <r-devel at r-project.org> Subject: Re: [Rd] Problem with R_registerRoutines Message-ID: <548D52560D5BDE45AEC4EF876BF2A194012D3FF3 at S-DC-ESTB01-J.net1.cec.eu.int> Content-Type: text/plain; charset="us-ascii" Martin, I did not use --as-cran on Linux, when I do, I also see the error there. So most likely something is wrong and you're right that the...
2007 May 01
1
Embedding R and registering routines
Hello, The use of .Call and the like all depend on loading shared libraries and registering routines from it. Also, .Primitive and .Internal depend on routines being registered in the R binary. And applications that embed R can override routines declared in Rinterfac.h, but is there a way for an application embedding R to register other routines defined in the application without loading a
2005 Dec 28
2
.Call not counting parameters consistently (PR#8450)
The R_registerRoutines C function allows the number of parameters to a .Call function to be registered. For example, the tools package function md5sum() calls "Rmd5", which has been registered to require just one parameter. But if it is called with the wrong number of parameters, only the first error gets cau...
2013 Mar 09
5
question on why Rigroup package moved to Archive on CRAN
Hi, Who should I ask about my package Rigroup_0.83 being moved to Archive status on CRAN and no longer available via install.package? I have no problems with the move if this was simply because of low demand. However, if there was a build issue with the newest releases that caused problems, I would be happy to address it. I'll just ask my students to install it from my own locally hosted
2024 May 28
1
How to call directly "dotTcl" C-function of the tcltk-package from the C-code of an external package?
...0 these methods are unable to find the symbol anymore (tested in Linux). I was not able to find what change has caused this new behaviour. Taking a look at tcltk source code, it can be seen that the dotTcl is called using .External within tcltk-package and there is a registration done for it with R_registerRoutines. An object of class NativeSymbolInfo has also been created in the tcltk namespace, and that can be accessed using tcltk:::.C_dotTcl. However, the tcltk:::.C_dotTcl$address is an external pointer of a class RegisteredNativeSymbol and not directly the function pointer to the actual routine. The prob...
2005 Oct 29
1
dyn.load() error: bad external relocation length
...tensions manual but when I tried: dyn.load('filepath.to.c.function') I got: Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library 'filepath.to.c.function': dlopen(filepath.to.c.function, 6): bad external relocation length Do you need to run R_registerRoutines before dyn.load()? I couldn't find any mention of this error on the web.... Walton platform powerpc-apple-darwin7.9.0 arch powerpc os darwin7.9.0 system powerpc, darwin7.9.0 status major 2...
2003 May 16
1
Reloading a shared library with dyn.load
...dio.h> void HelloFromC(char **result) { *result = (char *) R_alloc(20,sizeof(char)); sprintf(*result,"Hello from C!"); } static const R_CMethodDef CEntries[] = { {"HelloFromC",(DL_FUNC) &HelloFromC,1}, {NULL,NULL,0} }; void R_init_HelloFromC(DllInfo *info) { R_registerRoutines(info,CEntries,NULL,NULL,NULL); } ---------------------------------------------------------------- c:\james\HelloFromC> Rcmd SHLIB HelloFromC making HelloFromC.d from HelloFromC.c gcc -IC:/JAMES/rw1070/src/include -Wall -O2 -c HelloFromC.c -o HelloFromC.o ar cr HelloFromC.a *.o ranlib Hello...
2003 Dec 09
1
R Interface handholding
...de "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() ? My other question is.. our software produ...
2024 May 30
1
How to call directly "dotTcl" C-function of the tcltk-package from the C-code of an external package?
...:44:36 +0200 (Sat, 15 Apr 2023) | 1 line Try forcing symbols in ff calls. Index: library/tcltk/src/init.c =================================================================== --- library/tcltk/src/init.c (revision 84264) +++ library/tcltk/src/init.c (revision 84265) @@ -66,6 +66,6 @@ { R_registerRoutines(dll, CEntries, NULL, NULL, ExternEntries); R_useDynamicSymbols(dll, FALSE); - R_forceSymbols(dll, FALSE); + R_forceSymbols(dll, TRUE); } I don't know what that was all about, and I'm also a bit puzzled a) that the .External lookup is so slow that you need to bypass it (would h...
2009 Jan 08
1
Callbacks seems to get GCed.
...R_setStartTime(); R_DefParams(Rp); Rp->R_Quiet = TRUE; Rp->RestoreAction = SA_RESTORE; Rp->SaveAction = SA_NOSAVE; R_SetParams(Rp); R_Interactive = TRUE; Rf_initialize_R(argc, argv); setup_Rmainloop(); R_ReplDLLinit(); info = R_getEmbeddingDllInfo(); R_registerRoutines(info, cMethods, callMethods, NULL, NULL); } int main (int argc, char** argv) { int i; initR(); r_exec("x <- function (f) { .Call(\"set_callback1\",f); }"); r_exec("y <- function (f) { .Call(\"set_callback2\",f); }"); r_exec("x(func...
2008 Oct 08
1
error installing lattice package
...t is not constant init.c:10: error: (near initialization for `CallEntries[1]') init.c:11: warning: data definition has no type or storage class init.c:13: error: syntax error before '*' token init.c: In function `R_init_lattice': init.c:15: warning: implicit declaration of function `R_registerRoutines' init.c:15: error: `dll' undeclared (first use in this function) init.c:15: error: (Each undeclared identifier is reported only once init.c:15: error: for each function it appears in.) init.c:16: warning: implicit declaration of function `R_useDynamicSymbols' init.c:16: error: `FALSE...
2004 Aug 18
3
R as shared library
Hello folks, I'm embarking on a project to embed R into the Apache web server, and I'd like your help. Currently, I'm looking for a way for R code to call back into a shared library from which the R shared library was loaded. Essentially, apache starts and loads mod_R.so which runs an initialization routine which calls Rf_initEmbeddedR() and the following code: /* override to