Message-ID: <CADXbNimo_fyE4zZvGXusGj=pJCfQtTQHeRvgNUcMYsBSV7wEWA@mail.gmail.com>
Date: 2014-09-21T14:33:01Z
From: 张雨晴
Subject: [Bioc-devel] Warning "Register native routines" during BiocCheck
In-Reply-To: <541EDEAC.6090005@fhcrc.org>
Hi Martin,
It works now. Thank you so much!
Yuqing
2014-09-21 22:20 GMT+08:00 Martin Morgan <mtmorgan at fhcrc.org>:
> On 09/21/2014 07:12 AM, ??? wrote:
>
>> Hello,
>>
>> I am trying to develop a new package named simulatorZ and submit it to the
>> Bioconductor project. It contains a cpp file(coxformatrices.cpp) under
>> /src. But
>> there is a problem in registering native routines, which results in a
>> warning during BiocCheck. The cpp file already contains the registration
>> information below:
>>
>> R_CMethodDef cMethods[] = {
>> {"coxmat", (DL_FUNC) &coxmat, 26},
>> NULL
>> };
>> void R_init_coxformatrices(DllInfo *info)
>>
>
> This needs to follow the name of the package
>
> void R_init_simulatorZ(DllInfo *info)
>
> Martin
>
> {
>> R_registerRoutines(info, cMethods, NULL, NULL, NULL);
>> }
>>
>> coxmat is the name of the function. Also, the NAMESPACE uses useDynLib:
>>
>> useDynLib(simulatorZ, .registration=TRUE)
>>
>> But the warning still exists. The structure of the whole package is
>> available at https://github.com/zhangyuqing/simulatorZ.
>>
>> Does anyone know how to fix it? I'd really appreciate your help!
>>
>> Yuqing
>>
>>
>>
>
> --
> Computational Biology / Fred Hutchinson Cancer Research Center
> 1100 Fairview Ave. N.
> PO Box 19024 Seattle, WA 98109
>
> Location: Arnold Building M1 B861
> Phone: (206) 667-2793
>
--
???
ZHANG Yuqing
School of Mathematical Sciences, Peking University
Beijing P.R.China 100871
Tel:010-62750534
Cell:13439586850
[[alternative HTML version deleted]]