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

2019-02-28 Thread Jeff Newmiller
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" 
 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:
>> 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-requ...@r-project.org wrote:
>>> Date: Mon, 25 Feb 2019 17:13:51 +0100
>>> From: "Rampal S. Etienne"
>>> To:R-package-devel@r-project.org
>>> Subject: [R-pkg-devel] problems with .mod files
>>> Message-ID:
>>> 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@r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>
>__
>R-package-devel@r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-package-devel

-- 
Sent from my phone. Please excuse my brevity.

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


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

2019-02-28 Thread Rampal S. Etienne
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-requ...@r-project.org wrote:
>> Date: Mon, 25 Feb 2019 17:13:51 +0100
>> From: "Rampal S. Etienne"
>> To:R-package-devel@r-project.org
>> Subject: [R-pkg-devel] problems with .mod files
>> Message-ID:
>> 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@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


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

2019-02-27 Thread Rémi Piatek
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-requ...@r-project.org wrote:
> Date: Mon, 25 Feb 2019 17:13:51 +0100
> From: "Rampal S. Etienne"
> To:R-package-devel@r-project.org
> Subject: [R-pkg-devel] problems with .mod files
> Message-ID:
> 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@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


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

2019-02-25 Thread Rampal S. Etienne
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

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel