<div dir="ltr">Ok, thanks! It's a nice solution. Now, I have to fight with several Makefiles, because I'm managing calls to lot of libraries. I'm studying the R's Matrix library as a good example to achieve it. Thanks again for your help<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El mié., 20 feb. 2019 a las 9:48, Iñaki Ucar (<<a href="mailto:iucar@fedoraproject.org">iucar@fedoraproject.org</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, 20 Feb 2019 at 09:33, Sergio Bra <<a href="mailto:sergio.bra88@gmail.com" target="_blank">sergio.bra88@gmail.com</a>> wrote:<br>
><br>
> Hi community,<br>
><br>
> In the near future I'll be trying to publish a package in the CRAN and after reading "Writing R extensions" I have some doubts.<br>
><br>
> I have some c++ functions, available from the R-side with Rcpp. These c++ functions have calls to some C packages. In the src directory I have the source code of these C libraries, and a directory with the .o files of the .c files, and informed in the PKG_LIBS variable. I've included the compiled files for different platforms: ubuntu x32, x64, and windows x32, x64 (I'll probably include support for OSX) and in the Makevars I select the .o files to use depending on the OS and arch.<br>
><br>
> If I execute the R CMD check command, I have no errors but some warnings like "Object files/libraries should not be included in a source package". The message and the documentation just recommend not to use them but doesn't say that it is forbidden.<br>
<br>
It's a recommendation because there may be unavoidable exceptions. But<br>
in general, take it as a "must".<br>
<br>
> Can I have problems if I try to attemp the upload of the library in this circumstance?<br>
<br>
In short, yes, don't do that. And anyway, what's the point if you have<br>
the source code of these libraries? Just provide it with the proper<br>
setup to compile them during package installation. There are plenty of<br>
examples on CRAN of packages bundling third-party libraries.<br>
<br>
Iñaki<br>
</blockquote></div>