Skip to content

[R-pkg-devel] problems with .mod files

3 messages · Rémi Piatek, Rampal S. Etienne, Jeff Newmiller

#
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 at r-project.org wrote:

  
  
#
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:
#
Don't run R CMD check against your working directory... only run it against your tar.gz source file. The devtools package will do this for you automatically from within R for convenience.
On February 28, 2019 4:50:18 AM PST, "Rampal S. Etienne" <rampaletienne at gmail.com> wrote: