[R-pkg-devel] Bug? Makevars ignores FC=mpif90

Ignacio Martinez ignacio82 at gmail.com
Mon Aug 10 19:47:38 CEST 2015


Thanks peter.

1. Does it say anywhere that the build process should use src/Makevars?
I'm not sure, where should it say that? I'm using the default options in
Rstudio to create a package

2. Also notice that an important part of the package concept is that
packages can be distributed.
The package that i want to build uses MPI. Is that a problem? My
understanding is that in order to use MPI i have to set FC to mpif90. Is
that wrong?

3. build configuration belongs in the build environment
I'm not sure if I follow. What is the correct way of telling Rstudio that
the package i'm building uses MPI?

Thanks again!

PS: This is the link
<http://stackoverflow.com/questions/31924487/tell-rstudio-to-use-mpif90-instead-of-gfortran>to
my question in stack-overflow



On Mon, Aug 10, 2015 at 1:41 PM peter dalgaard <pdalgd at gmail.com> wrote:

>
> > On 10 Aug 2015, at 19:25 , Ignacio Martinez <ignacio82 at gmail.com> wrote:
> >
> > Hi,
> >
> > I'm learning to develop R packages that use Fortran (and MPI). I recently
> > asked a question on stack-overflow and I was told to contact this list
> with
> > a followup question.
> >
> > When I add to src/Makevars the follwoing line
> >
> > FC=mpif90
> >
> > Rstudio ignores it when I click `Build and Reload`.  But, if I create a
> > Makevars file in a .R/ directory in my$HOME directory with that line,
> > Rstudio uses mpif90.
> >
> > Is the fact that R is ignoring the src/Makevars a bug? If not, am I doing
> > something wrong?
> >
>
> Ask differently: Does it say anywhere that the build process should use
> src/Makevars?
>
> Also notice that an important part of the package concept is that packages
> can be distributed. The recipient's Fortran compiler is not necessarily
> "mpif90". So, generally speaking, build configuration belongs in the build
> environment, not in the package.
>
> -pd
>
> > Thanks,
> >
> > Ignacio
> >
> >
> > PS: I hope this is the right place to ask this question.
> >
> >       [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-package-devel at r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-package-devel
>
> --
> Peter Dalgaard, Professor,
> Center for Statistics, Copenhagen Business School
> Solbjerg Plads 3, 2000 Frederiksberg, Denmark
> Phone: (+45)38153501
> Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com
>
>
>
>
>
>
>
>
>

	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list