<div dir="ltr"><div>Well, i tried one module exposing one class. But the problem still the same. I don't think this is about fixing code, because the problem is resolved when i changed the way of loading the module: </div><div><br></div><div><b>moduleName <- Module( "moduleName" )</b></div><div><b>.onLoad <- function(libname, pkgname) {}</b><br></div><div><br></div><div>Instead of <b>loadModule ("moduleName", TRUE)</b>. So the loadModule () function that causes this warning.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-10-30 23:56 GMT+01:00 Hmamouche Youssef <span dir="ltr"><<a href="mailto:hmamoucheyussef@gmail.com" target="_blank">hmamoucheyussef@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><div dir="ltr"><span style="font-size:12.8px">Yes, i have more than one module, but each one is defined  with different name.</span><br></div></span><div class="gmail_extra"><br><div class="gmail_quote"><span class="">2017-10-30 22:52 GMT+01:00 Dirk Eddelbuettel <span dir="ltr"><<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>></span>:<br></span><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><br>
On 30 October 2017 at 22:12, Hmamouche Youssef wrote:<br>
| Hi,<br>
|<br>
| In a Rcpp package with the use of modules to convert c++ class,<br>
| i get the following warning when I tested the module:<br>
|<br>
| Found more than one class "Rcpp-moduleName" in cache; using the first, from<br>
| namespace 'packageName'.<br>
|<br>
| To loadmodule, i use the following way in the module.R file:<br>
|<br>
|     - loadModule('moduleName', TRUE)<br>
|<br>
|     - Module ('moduleName', PACKAGE = "packageName").<br>
|<br>
| Is it possible to hide this warning ?<br>
<br>
</span>You probably want to fix your code.  You likely have more than one Module<br>
defined as Rcpp-moduleName.  As the lookup is by name, this is probably not<br>
what you want.<br>
<span class="m_4603185883595216258HOEnZb"><font color="#888888"><br>
Dirk<br>
<br>
--<br>
<a href="http://dirk.eddelbuettel.com" rel="noreferrer" target="_blank">http://dirk.eddelbuettel.com</a> | @eddelbuettel | <a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a><br>
</font></span></blockquote></div></div></div><br></div>
</blockquote></div><br></div>