[R-pkg-devel] problems with .mod files
Rampal S. Etienne
r@mp@|et|enne @end|ng |rom gm@||@com
Thu Feb 28 13:50:18 CET 2019
Dear Remi,
The mod files are not in the src folder or in the tarball I submit to
CRAN, but I still get warnings that there are created. I have tried to
clean them by specifying this in the makefile, but then I get other issues.
Rampal
On 28-2-2019 0:02, Rémi Piatek wrote:
> These *.mod files are automatically created during compilation whenever
> there is a module in the corresponding source file. They should not be
> in the src folder of your package when you submit it to CRAN, but they
> should not be a problem when they get created in this folder during
> compilation.
>
> Try to add the following line in .Rbuildignore (if this file does not
> exist, create it in the main directory of your package):
>
> ^.*\.mod
>
> This will prevent R from including any *.mod files when building your
> package.
>
> I hope this is helpful.
>
> Best,
>
> Remi
>
>
> On 2/26/19 10:00 PM, r-package-devel-request using r-project.org wrote:
>> Date: Mon, 25 Feb 2019 17:13:51 +0100
>> From: "Rampal S. Etienne"<rampaletienne using gmail.com>
>> To:R-package-devel using r-project.org
>> Subject: [R-pkg-devel] problems with .mod files
>> Message-ID:<e959fb29-f71d-d5d3-3800-b2ecaf963758 using gmail.com>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Hello,
>>
>> I have been trying for weeks to get a package on CRAN, but keep
>> receiving warnings and notes, and errors using R-hub. The problems
>> started when I used FORTRAN code to speed up some functions. This
>> FORTRAN code introduces .mod files which are not accepted in the src
>> folder. I followed suggestions by Avraham Adler to clean the src folder
>> from this file by introducing a makefile with a clean command in it, but
>> then I get other errors, and above all, recently this solution did not
>> seem to remove the .mod file on some systems, as I still got the warning
>> that this file was found in the src folder (but not on my machine!).
>>
>> So my question is: how do I prevent the creation of .mod files during
>> compilation of the FORTRAN code, or how do I tell R that these files are
>> OK in the src folder?
>>
>> Regards,
>>
>> Rampal Etienne
>>
>>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
More information about the R-package-devel
mailing list