Message-ID: <CAJGy0hcKn9t+RsjoL=XOwsyBi1p=f7jRbSpqhArLSMjwGzCn3A@mail.gmail.com>
Date: 2018-08-12T20:15:01Z
From: Mai Zhou
Subject: [R-pkg-devel] Fwd: R_registerRoutines, R_useDynamicSymbols
In-Reply-To: <CAJGy0hf1w3NGOmMKoDhJ6HzMMG65JK8RmOcBWwCGzc2HyCEk1w@mail.gmail.com>
---------- Forwarded message ----------
From: mai zhou <maizhou at gmail.com>
Date: Sun, Aug 12, 2018 at 4:06 PM
Subject: R_registerRoutines, R_useDynamicSymbols
To: r-package-devel at 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