Everything you need to know is in the Writing R Extensions manual, and section 1.2.3 in particular. There are restrictions on Fortran 90/95 use due to portability issues.
Make sure you are following all of the advice in the manual, e.g.: - Files containing Fortran 90 code should have extension .f90 - Mixed Fortran 9x and C++ code is not supported and there is no guarantee that Fortran 9x can be mixed with other languages. - Free source form Fortran 9x is not portable. - When using modules, you may need to give compile-order hints to parallel make. - Do not include module files in the source - they are compiler-dependent. Martyn On Tue, 2015-03-17 at 11:26 +0100, Lukas Lehnert wrote: > I recently submitted a package to CRAN which encompasses Fortran 90 code. > Neither on my linux system nor on the win-builder system the compilation > reported any error or warning. The function worked fine. However, after > submission of the package to CRAN, I received an email that I should not > include Fortran 90 code. > > The problem is that the part written in Fortran is a large function using > modules. Thus, rewriting the function in FORTRAN 77 is impossible. So, I > searched on CRAN and found some packages which contain Fortran 90 code. Is it > generally possible to submit R packages to CRAN containing Fortran 90 source > code? If so, what specific things should I consider? > > Thank you for your help > > Lukas Lehnert > > ______________________________________________ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel ----------------------------------------------------------------------- This message and its attachments are strictly confidenti...{{dropped:8}} ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel