Re: [Rd] Compile error with gfortran-4.6

2013-06-09 Thread Fabio Mathias Corrêa
Dear prof. Brian Ripley, Thanks for help! I compiled using the command: MAKEFLAGS="FCFLAGS=-fopenmp" R CMD SHLIB hello.f90 I use linux mint Maya, R 3.0.1 and gfortran 4.6.3. Thanks,           Fábio Mathias Corrêa    Universidade Estadual de Santa Cruz Departamento de Ciências Exatas e da

[Rd] Problem with gfortran-4.6

2013-06-08 Thread Fabio Mathias Corrêa
Dears, I am writing a code in Fortran using OpenMP directives. When compiling the code in gfortran 4.4 does not occur any problem. When compiling the code in gfortran 4.6, an error message appears. In other compilers the error does not occur. A small example. ## Code in Fortran        subr

[Rd] Compile error with gfortran-4.6

2013-06-08 Thread Fabio Mathias Corrêa
Dears, I am writing a code in Fortran using OpenMP directives. When compiling the code in gfortran 4.4 does not occur any problem. When compiling the code in gfortran 4.6, an error message appears. In other compilers the error does not occur. A small example. ## Code in Fortran        subr

[Rd] Compile error gfortran-4.6

2013-06-08 Thread Fabio Mathias Corrêa
Dears, I am writing a code in Fortran using OpenMP directives. When compiling the code in gfortran 4.4 does not occur any problem. When compiling the code in gfortran 4.6, an error message appears. In other compilers the error does not occur. A small example. ## Code in Fortran        subr

[Rd] Namespace File

2010-12-15 Thread Fabio Mathias Corrêa
Para: Fabio Mathias Corrêa Cc: R-devel Enviadas: Quarta-feira, 15 de Dezembro de 2010 17:10:21 Assunto: Re: [Rd] Namespace File On Dec 15, 2010, at 1:56 PM, Fabio Mathias Corrêa wrote: > Dear, > > I am using Ubuntu linux and R2.12.0 > The trial version is in my home. > > \home\

[Rd] Namespace File

2010-12-15 Thread Fabio Mathias Corrêa
The inst has CITATION only. Best wishes Fábio Mathias Corrêa Departamento de Estatística Universidade Estadual de Santa Cruz What is in inst? Make sure you have no binaries there. Cheers, Simon > > > Fábio Mathias Corrêa > Departamento d

[Rd] Namespace File

2010-12-15 Thread Fabio Mathias Corrêa
Dear, I am using Ubuntu linux and R2.12.0 The trial version is in my home. \home\Bayesthres~$ To perform the R CMD check \home~$ R CMD check Bayesthres Within the directory Bayesthres, have: Directories: inst, man, R and src Files: DESCRIPTION AND NAMESPACE Best wishes Fábio ... but th

[Rd] Namespace File

2010-12-15 Thread Fabio Mathias Corrêa
tadual de Santa Cruz - Mensagem original De: Simon Urbanek Para: Fabio Mathias Corrêa Cc: r-devel@r-project.org Enviadas: Quarta-feira, 15 de Dezembro de 2010 13:41:34 Assunto: Re: [Rd] Namespace File On Dec 15, 2010, at 6:57 AM, Fabio Mathias Corrêa wrote: > Dear colleagues, >

[Rd] Namespace File

2010-12-15 Thread Fabio Mathias Corrêa
Dear colleagues, Problem solved with: ".First.lib" <- function(lib, pkg) { library.dynam("Bayesthres", package = pkg, lib.loc = lib) return(invisible(0)) } Fábio Mathias Corrêa Departamento de Estatística Universidade Estadual de Santa Cruz _

[Rd] Namespace File

2010-12-14 Thread Fabio Mathias Corrêa
Dear Colleagues, I am developing a library. However I am having the following problem with the file NAMESPACE. My file contains: useDynLib(Bayesthres, vuA) export(Bayesthres, random.effects, fixed.effects, ) exportClasses("Bayesthres") My function is: Avuall <- function(Z

[Rd] Error when compiling code in C

2009-10-20 Thread Fabio Mathias Corrêa
Dear, I used the command in the terminal to compile code FORTRAN with directive OpenMP export PKG_FCFLAGS=-fopenmp It functioned perfectly for pure code FORTRAN. However, when I call a function in C in code FORTRAN, the function in C is not compiled. The following error appears ~/Fortran/pa

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

[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

[Rd] Fortran with OpenMP

2009-10-17 Thread Fabio Mathias Corrêa
Dear, I wrote a code in Fortran using OpenMP. When testing the code in Fortran it was working. However, changing the code for the R, it does not indicate the use of threads, it should indicate. I know that the R accepts the directives of OpenMP, but I can not use them correctly in R. Below is a

[Rd] Compiling with High Performance Fortran

2009-10-02 Thread Fabio Mathias Corrêa
Dear, I looked in the list something on as to compile a code with access the High Performance FORTRAN using R CMD SHLIB, but I did not find. Would like to know if the accepted R this type of language? Thanks!   Fábio Mathias Corrêa Estatística e Experimentação Agropecuária/UFLA

Re: [Rd] Problem in matrix definition?

2009-08-31 Thread Fabio Mathias Corrêa
Thanks very much!!!   Fábio Mathias Corrêa Estatística e Experimentação Agropecuária/UFLA Veja quais são os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com _

[Rd] Problem in matrix definition?

2009-08-31 Thread Fabio Mathias Corrêa
The problem is that arrays are the same size. The only difference is how they were built! The way to build the matrix should not influence in the outcome! Below is the commented code in MatLab! Neural Information Processing - Letters and Reviews Vol.8, No.2, August 2005 function Y = geninv(G)

[Rd] Problem in matrix definition?

2009-08-30 Thread Fabio Mathias Corrêa
I'm implementing a function to compute the moore-penrose inverse, using a code from the article: Fast Computation of Moore-Penrose Inverse Matrices. Neural Information Processing - Letters and Reviews. Vol.8, No.2, August 2005 However, the R presents an error message when I use the geninv. The

[Rd] Problem with function in fortran 95

2009-08-14 Thread Fabio Mathias Corrêa
Thanks very much!!!   Fábio Mathias Corrêa Estatística e Experimentação Agropecuária/UFLA --- Em sex, 14/8/09, Simone Giannerini escreveu: > De: Simone Giannerini > Assunto: Re: [Rd] Problem with function in fortran 95 > Para: "Fabio Mathias Corrêa" > Cc:

[Rd] Problem with function in fortran 95

2009-08-12 Thread Fabio Mathias Corrêa
I am writing a function in fortran 95, but the intrinsic function MATMUL is not working properly. Here's an example. SUBROUTINE mymult(x,y,res,m,n) IMPLICIT NONE INTEGER :: m,n REAL :: x, y, res DIMENSION :: x(m,n), y(n,m), res(m,m) res = MATMUL(x,y

[Rd] Changing the compiler gfortran to ifort

2009-08-07 Thread Fabio Mathias Corrêa
I tried the manual R Installation and Administration to change the gcc compiler to icc and ifort for gfotran. However I could not find the correct path for the R to identify the icc and ifort. In which file I define the change of compiler? Thanks very much!!!   Fábio Mathias Corrêa Estat