[R-pkg-devel] Fwd: R_registerRoutines, R_useDynamicSymbols

mai zhou m@izhou @ending from gm@il@com
Sun Aug 12 22:15:01 CEST 2018


---------- Forwarded message ----------
From: mai zhou <maizhou using gmail.com>
Date: Sun, Aug 12, 2018 at 4:06 PM
Subject: R_registerRoutines, R_useDynamicSymbols
To: r-package-devel using r-project.org


Hi, list,

I need help to get rid of the Note:

Found no calls to: 'R_registerRoutines', 'R_useDynamicSymbols'

It is good practice to register native routines and to disable symbol
search.


The package is emplik. I have only one C file in the src directory, that
defines two externally used functions called by .C( ) in R function:

cumsumsurv

eltestwt

What I did:

(1) add an init.c file in the src directory, and
(2) add .registration =TRUE to useDynLib(emplik, .registration = TRUE),  in
the NAMESPACE



Rcmd check fail......installation fail.

I attach the init.c file and cumsumsurv.c file below:

Any suggestions are very appreciated.

Mai Zhou


More information about the R-package-devel mailing list