Re: [Rd] Changing options in R CMD SHLIB

2009-10-20 Thread Fabio Mathias Corrêa
ipley > Assunto: Re: [Rd] Changing options in R CMD SHLIB > Para: "Fabio Mathias Corrêa" > Cc: r-devel@r-project.org > Data: Terça-feira, 20 de Outubro de 2009, 5:08 > Please see the manual -- 'Writing R > Extensions'.  If you want to use > custom compi

Re: [Rd] Changing options in R CMD SHLIB

2009-10-20 Thread Fabio Mathias Corrêa
Dear, I managed to use directives OpenMP in R. To compile I used the gfortran directly. For example: gfortran-shared-O2 teste.f90-fopenmp-fPIC By using the code in R, it works perfectly! However, I need to use some specific libraries of R, for use in C functions in Fortran 95. When compiling

Re: [Rd] Changing options in R CMD SHLIB

2009-10-20 Thread Fabio Mathias Corrêa
I use linux Mint and R.2.9.2 Thank you!   Fábio Mathias Corrêa Estatística e Experimentação Agropecuária/UFLA --- Em ter, 20/10/09, Prof Brian Ripley escreveu: > De: Prof Brian Ripley > Assunto: Re: [Rd] Changing options in R CMD SHLIB > Para: "Fabio Mathias Co

Re: [Rd] Changing options in R CMD SHLIB

2009-10-19 Thread Prof Brian Ripley
Please see the manual -- 'Writing R Extensions'. If you want to use custom compiler flags, you use a Makevars or personal .Makevars file. Something like PKG_FCFLAGS=-fopenmp (you haven't told us your OS or version of R). On Mon, 19 Oct 2009, Fabio Mathias Corrêa wrote: Dear, When trying to

[Rd] Changing options in R CMD SHLIB

2009-10-19 Thread Fabio Mathias Corrêa
Dear, When trying to use directive OpenMP in my code, I observed that the directive ones were being considered as commentaries. Compiling with command R CMD SHLIB xxx.f95 - fopenmp and calling the function in the R verified that threads was not being considered. I was to observe the options of