Re: [Rd] expm1, R-2.2.0 and Windows

2005-10-14 Thread Prof Brian Ripley

On Fri, 14 Oct 2005, [UTF-8] Göran Broström wrote:

A user of 'eha' told me that it failed to load in R-2.2.0 on Windows,and 
ideed, I checked and it fails with the error message "Theprocedure entry 
point expm1 could not be located in the dynamic linklibary R.dll". I'm 
using expm1 (from the C math library on Linux, Iwould guess) in a couple 
of C functions.


This didn't happen with R-2.1.1 (and it doesn't happen with R-2.2.0 
ondebian), so I need advise about what to do. File a bug report?


Please do re-read the rw-FAQ Q4.1 for advice!

The eha binary on CRAN was built on Sept 12, before the release of 2.2.0
(and before the beta period).  It needs to be built under 2.2.0, when it 
will work.  (Uwe, could you please trigger rebuilds as some things were 
changed in the alpha period, including the version of the mingw-runtime 
that is required.)


--
Brian D. Ripley,  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel:  +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] expm1, R-2.2.0 and Windows

2005-10-14 Thread Göran Broström
On 10/14/05, Prof Brian Ripley <[EMAIL PROTECTED]> wrote:
> On Fri, 14 Oct 2005, [UTF-8] Göran Broström wrote:
>
> > A user of 'eha' told me that it failed to load in R-2.2.0 on Windows,and
> > ideed, I checked and it fails with the error message "Theprocedure entry
> > point expm1 could not be located in the dynamic linklibary R.dll". I'm
> > using expm1 (from the C math library on Linux, Iwould guess) in a couple
> > of C functions.
>
> > This didn't happen with R-2.1.1 (and it doesn't happen with R-2.2.0
> > ondebian), so I need advise about what to do. File a bug report?
>
> Please do re-read the rw-FAQ Q4.1 for advice!
>
> The eha binary on CRAN was built on Sept 12, before the release of 2.2.0
> (and before the beta period).  It needs to be built under 2.2.0, when it
> will work.  (Uwe, could you please trigger rebuilds as some things were
> changed in the alpha period, including the version of the mingw-runtime
> that is required.)

Thanks Brian, I'll do that ASAP!

Göran

> --
> Brian D. Ripley,  [EMAIL PROTECTED]
> Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
> University of Oxford, Tel:  +44 1865 272861 (self)
> 1 South Parks Road, +44 1865 272866 (PA)
> Oxford OX1 3TG, UKFax:  +44 1865 272595
>


--
Göran Broström

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


[Rd] extending lattice to S4 classes

2005-10-14 Thread ernesto
Hi,

I'm writing methods for a package called FLCore (see
http://flr-project.org/) in particular for a class called "FLQuant"
which extends array.

Previously I was able to write methods based on the class of "data" but
now I can not do it due to the single parameter "x". Is there a way to
do this ?

Regards

EJ

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


Re: [Rd] expm1, R-2.2.0 and Windows

2005-10-14 Thread Uwe Ligges
Prof Brian Ripley wrote:

> On Fri, 14 Oct 2005, [UTF-8] Göran Broström wrote:
> 
>> A user of 'eha' told me that it failed to load in R-2.2.0 on 
>> Windows,and ideed, I checked and it fails with the error message 
>> "Theprocedure entry point expm1 could not be located in the dynamic 
>> linklibary R.dll". I'm using expm1 (from the C math library on Linux, 
>> Iwould guess) in a couple of C functions.
> 
> 
>> This didn't happen with R-2.1.1 (and it doesn't happen with R-2.2.0 
>> ondebian), so I need advise about what to do. File a bug report?
> 
> 
> Please do re-read the rw-FAQ Q4.1 for advice!
> 
> The eha binary on CRAN was built on Sept 12, before the release of 2.2.0
> (and before the beta period).  It needs to be built under 2.2.0, when it 
> will work.  (Uwe, could you please trigger rebuilds as some things were 
> changed in the alpha period, including the version of the mingw-runtime 
> that is required.)

Thanks for the pointer!
Hmmm, thought I did so after the release, but apparently not (most 
outdated builds are from 2005-09-11, hence a version of R-2.2.0 alpha).

eha has been rebuild now and will appear on CRAN master within 24 hours.

I will trigger rebuilds for the other packages as well, but it will take 
its time (don't expect any change on CRAN within 24 hours).

Nice occasion: Package mainatiner of failing packages will receive (yet 
another) message that some action is required ...

Uwe



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

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


Re: [Rd] Building R on Windows

2005-10-14 Thread Duncan Murdoch
Jennifer Lai wrote:
> Prof Brian Ripley wrote:
> 
> 
>>On Thu, 13 Oct 2005, Jennifer Lai wrote:
>>
>>
>>>Prof Brian Ripley wrote:
>>>
>>>
On Thu, 13 Oct 2005, Jennifer Lai wrote:



>Hi,
> I"m a newbie on building R on Windows. I followed the instructions
>cited here,
>http://www.murdoch-sutherland.com/Rtools/ to build R-2.2.0.
>Everything works fine up till when package base needs to be compiled.
>here is the error message,
>
>-- Making package base 
>adding build stamp to DESCRIPTION
>Error in library.dynam(lib, package, package.lib) :
>  shared library 'tools' not found
>Execution halted
>make[4]: *** [frontmatter] Error 1
>make[3]: *** [all] Error 2
>make[2]: *** [pkg-base] Error 2
>make[1]: *** [rpackage] Error 2
>make: *** [all] Error 2
>
>Has anyone seen this error message before? Where can I find shared
>library tools?
>

It was built at the bootstrapping phase, or should have been.


>>>
>>>Is there something like config.log for Windows port?
>>
>>
>>No.  You will need to start again and show us what happens around the 
>>boot it says it is bootstrapping.
>>
>>
>>
>>>I didn't see anything suspcicious that helped me in finding where 
>>>shared library tools should be built.
>>>There were couple of warning messges related to dlapack, but these 
>>>are not related to tools, right?
>>>
>>>In file included from dlapack0.f:0:
>>>dlapack0.f:203: warning: 'ipv' might be used uninitialized in this 
>>>function
>>>dlapack0.f:203: warning: 'jpv' might be used uninitialized in this 
>>>function
>>>dlapack0.f:204: warning: 'smin' might be used uninitialized in this 
>>>function
>>
>>
>>You will get many of those.
>>
>>
> 
> I was able to build R for Windows successfully with a clean copy of 
> R-2.2.0, rather than using "make clean" to remove all object files.

Generally to start over after important changes you'll need "make 
distclean".  "make clean" is intended to be used at the end of a build, 
to remove unnecessary files, but to leave all the important parts in 
place.  Since some of those parts are used in the build process (and in 
your case one of them was not built correctly), make clean wasn't enough.

Duncan Murdoch

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


Re: [Rd] R in Spanish?

2005-10-14 Thread Duncan Murdoch
Kenneth Cabrera wrote:
> Hi R developers:
> 
> I want to ask if there is a Spanish R installation,
> if not, why not, and how can I help to
> make the Spanish version, if you tell me how
> I am willing to help with  it.

There isn't currently a Spanish translation.  Instructions on how to do 
translations are on the web page 
.  If you want to 
organize a Spanish translation team, I could list your name and contact 
information on .

Duncan Murdoch

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


[Rd] Compilation of R-2.2.0 under SUSE 10

2005-10-14 Thread Rainer M Krug
Hi

I hope this is the right list for the question.
I want to install R from source under SUSE 10. When executing ./Configure, I 
get the following error message:

checking for xmkmf... /usr/X11R6/bin/xmkmf
configure: WARNING: I could not determine FPICFLAGS.
configure: error: See the file INSTALL for more information.

and it taborts. Consequently, make does not work.

Any ideas?

Rainer

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


Re: [Rd] Compilation of R-2.2.0 under SUSE 10

2005-10-14 Thread Peter Dalgaard
Rainer M Krug <[EMAIL PROTECTED]> writes:

> Hi
> 
> I hope this is the right list for the question.
> I want to install R from source under SUSE 10. When executing ./Configure, I 
> get the following error message:
> 
> checking for xmkmf... /usr/X11R6/bin/xmkmf
> configure: WARNING: I could not determine FPICFLAGS.
> configure: error: See the file INSTALL for more information.
> 
> and it taborts. Consequently, make does not work.
> 
> Any ideas?

You probably want to look into config.log and see what caused the
FPICFLAGS message. It could be an oblique way of telling you that you
haven't installed a Fortran compiler.

-- 
   O__   Peter Dalgaard Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark  Ph:  (+45) 35327918
~~ - ([EMAIL PROTECTED])  FAX: (+45) 35327907

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


Re: [Rd] Compilation of R-2.2.0 under SUSE 10

2005-10-14 Thread Rainer M Krug
Could you give me a hint what I should look for? I am quite new to Linux.

Rainer


On Friday 14 October 2005 14:19, Peter Dalgaard wrote:
> Rainer M Krug <[EMAIL PROTECTED]> writes:
> > Hi
> >
> > I hope this is the right list for the question.
> > I want to install R from source under SUSE 10. When executing
> > ./Configure, I get the following error message:
> >
> > checking for xmkmf... /usr/X11R6/bin/xmkmf
> > configure: WARNING: I could not determine FPICFLAGS.
> > configure: error: See the file INSTALL for more information.
> >
> > and it taborts. Consequently, make does not work.
> >
> > Any ideas?
>
> You probably want to look into config.log and see what caused the
> FPICFLAGS message. It could be an oblique way of telling you that you
> haven't installed a Fortran compiler.

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


Re: [Rd] Compilation of R-2.2.0 under SUSE 10

2005-10-14 Thread Peter Dalgaard
Rainer M Krug <[EMAIL PROTECTED]> writes:

> Could you give me a hint what I should look for? I am quite new to Linux.
> 
> Rainer

As long as you can see where it goes wrong, just ask again, citing the
relevant bit of the log. Finding this is a bit convoluted for the
FPICFLAGS issue because the failing test is just for whether the
variable was set earlier, which AFAICS should happen here:


## Step 2.  GNU compilers.
if test "${GCC}" = yes; then
  cpicflags="-fPIC"
  shlib_ldflags="-shared"
fi
if test "${G77}" = yes; then
  fpicflags="-fPIC"
fi
if test "${GXX}" = yes; then
  cxxpicflags="-fPIC"
  shlib_cxxldflags="-shared"
fi

Now, the natural guess is that ${G77} wasn't set earlier on, so look
for the place where it figures out the Fortran compiler.

 
> 
> On Friday 14 October 2005 14:19, Peter Dalgaard wrote:
> > Rainer M Krug <[EMAIL PROTECTED]> writes:
> > > Hi
> > >
> > > I hope this is the right list for the question.
> > > I want to install R from source under SUSE 10. When executing
> > > ./Configure, I get the following error message:
> > >
> > > checking for xmkmf... /usr/X11R6/bin/xmkmf
> > > configure: WARNING: I could not determine FPICFLAGS.
> > > configure: error: See the file INSTALL for more information.
> > >
> > > and it taborts. Consequently, make does not work.
> > >
> > > Any ideas?
> >
> > You probably want to look into config.log and see what caused the
> > FPICFLAGS message. It could be an oblique way of telling you that you
> > haven't installed a Fortran compiler.
> 
> __
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
> 

-- 
   O__   Peter Dalgaard Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark  Ph:  (+45) 35327918
~~ - ([EMAIL PROTECTED])  FAX: (+45) 35327907

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


Re: [Rd] Compilation of R-2.2.0 under SUSE 10

2005-10-14 Thread Detlef Steuer
Hi,

most probably you are missing xorg-devel packages.
But there is another problem:
At least the downloadable version of 10.0 does not contain _any_ fortran 
compiler. At least I´m unable to find one.
I don`t know about the retail box. 

Still looking for an easy way to build an rpm package for 10.0 using some 
additional yast sources.

Hope that helps
Detlef

On Fri, 14 Oct 2005 14:48:26 +0200
Rainer M Krug <[EMAIL PROTECTED]> wrote:

> Could you give me a hint what I should look for? I am quite new to Linux.
> 
> Rainer
> 
> 
> On Friday 14 October 2005 14:19, Peter Dalgaard wrote:
> > Rainer M Krug <[EMAIL PROTECTED]> writes:
> > > Hi
> > >
> > > I hope this is the right list for the question.
> > > I want to install R from source under SUSE 10. When executing
> > > ./Configure, I get the following error message:
> > >
> > > checking for xmkmf... /usr/X11R6/bin/xmkmf
> > > configure: WARNING: I could not determine FPICFLAGS.
> > > configure: error: See the file INSTALL for more information.
> > >
> > > and it taborts. Consequently, make does not work.
> > >
> > > Any ideas?
> >
> > You probably want to look into config.log and see what caused the
> > FPICFLAGS message. It could be an oblique way of telling you that you
> > haven't installed a Fortran compiler.
> 
> __
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

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


Re: [Rd] Compilation of R-2.2.0 under SUSE 10

2005-10-14 Thread Rainer M Krug
Hi

I solved the problem.

I hd a fortran compuiler installed and it is found:

configure:5331: g77 --version &5
GNU Fortran (GCC) 3.3.5 20050117 (prerelease) (SUSE Linux)
Copyright (C) 2002 Free Software Foundation, Inc.

butr it was not working. I installed another fortran compiler (gccfortran) and 
it worked.

Thanks a lot for your help Peter

Rainer


On Friday 14 October 2005 15:30, Peter Dalgaard wrote:
> Rainer M Krug <[EMAIL PROTECTED]> writes:
> > Could you give me a hint what I should look for? I am quite new to Linux.
> >
> > Rainer
>
> As long as you can see where it goes wrong, just ask again, citing the
> relevant bit of the log. Finding this is a bit convoluted for the
> FPICFLAGS issue because the failing test is just for whether the
> variable was set earlier, which AFAICS should happen here:
>
>
> ## Step 2.  GNU compilers.
> if test "${GCC}" = yes; then
>   cpicflags="-fPIC"
>   shlib_ldflags="-shared"
> fi
> if test "${G77}" = yes; then
>   fpicflags="-fPIC"
> fi
> if test "${GXX}" = yes; then
>   cxxpicflags="-fPIC"
>   shlib_cxxldflags="-shared"
> fi
>
> Now, the natural guess is that ${G77} wasn't set earlier on, so look
> for the place where it figures out the Fortran compiler.
>
> > On Friday 14 October 2005 14:19, Peter Dalgaard wrote:
> > > Rainer M Krug <[EMAIL PROTECTED]> writes:
> > > > Hi
> > > >
> > > > I hope this is the right list for the question.
> > > > I want to install R from source under SUSE 10. When executing
> > > > ./Configure, I get the following error message:
> > > >
> > > > checking for xmkmf... /usr/X11R6/bin/xmkmf
> > > > configure: WARNING: I could not determine FPICFLAGS.
> > > > configure: error: See the file INSTALL for more information.
> > > >
> > > > and it taborts. Consequently, make does not work.
> > > >
> > > > Any ideas?
> > >
> > > You probably want to look into config.log and see what caused the
> > > FPICFLAGS message. It could be an oblique way of telling you that you
> > > haven't installed a Fortran compiler.
> >
> > __
> > R-devel@r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-devel

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


Re: [Rd] Compilation of R-2.2.0 under SUSE 10

2005-10-14 Thread Rainer M Krug
As I wrote in my other email, I solved the problem and it is make'ing.

I agree - on the CD's there is no fortran compiler. I found it on a mirror of 
OpenSuse - including many more.

Concerning the rpm I don't know - never did it (anyway - that's my first 
compile under Linux...).

Rainer


On Friday 14 October 2005 15:37, Detlef Steuer wrote:
> Hi,
>
> most probably you are missing xorg-devel packages.
> But there is another problem:
> At least the downloadable version of 10.0 does not contain _any_ fortran
> compiler. At least I´m unable to find one. I don`t know about the retail
> box.
>
> Still looking for an easy way to build an rpm package for 10.0 using some
> additional yast sources.
>
> Hope that helps
> Detlef
>
> On Fri, 14 Oct 2005 14:48:26 +0200
>
> Rainer M Krug <[EMAIL PROTECTED]> wrote:
> > Could you give me a hint what I should look for? I am quite new to Linux.
> >
> > Rainer
> >
> > On Friday 14 October 2005 14:19, Peter Dalgaard wrote:
> > > Rainer M Krug <[EMAIL PROTECTED]> writes:
> > > > Hi
> > > >
> > > > I hope this is the right list for the question.
> > > > I want to install R from source under SUSE 10. When executing
> > > > ./Configure, I get the following error message:
> > > >
> > > > checking for xmkmf... /usr/X11R6/bin/xmkmf
> > > > configure: WARNING: I could not determine FPICFLAGS.
> > > > configure: error: See the file INSTALL for more information.
> > > >
> > > > and it taborts. Consequently, make does not work.
> > > >
> > > > Any ideas?
> > >
> > > You probably want to look into config.log and see what caused the
> > > FPICFLAGS message. It could be an oblique way of telling you that you
> > > haven't installed a Fortran compiler.
> >
> > __
> > R-devel@r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-devel

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


Re: [Rd] Compilation of R-2.2.0 under SUSE 10

2005-10-14 Thread Peter Dalgaard
Detlef Steuer <[EMAIL PROTECTED]> writes:

> Hi,
> 
> most probably you are missing xorg-devel packages.
> But there is another problem:
> At least the downloadable version of 10.0 does not contain _any_ fortran 
> compiler. At least I´m unable to find one.
> I don`t know about the retail box. 
> 
> Still looking for an easy way to build an rpm package for 10.0 using some 
> additional yast sources.

Hmm. What's wrong with 

http://ftp.opensuse.org/pub/opensuse/distribution/SL-10.0-OSS/inst-source/suse/x86_64/gcc-fortran-4.0.2_20050901-3.x86_64.rpm

?

-p

 
> Hope that helps
> Detlef
> 
> On Fri, 14 Oct 2005 14:48:26 +0200
> Rainer M Krug <[EMAIL PROTECTED]> wrote:
> 
> > Could you give me a hint what I should look for? I am quite new to Linux.
> > 
> > Rainer
> > 
> > 
> > On Friday 14 October 2005 14:19, Peter Dalgaard wrote:
> > > Rainer M Krug <[EMAIL PROTECTED]> writes:
> > > > Hi
> > > >
> > > > I hope this is the right list for the question.
> > > > I want to install R from source under SUSE 10. When executing
> > > > ./Configure, I get the following error message:
> > > >
> > > > checking for xmkmf... /usr/X11R6/bin/xmkmf
> > > > configure: WARNING: I could not determine FPICFLAGS.
> > > > configure: error: See the file INSTALL for more information.
> > > >
> > > > and it taborts. Consequently, make does not work.
> > > >
> > > > Any ideas?
> > >
> > > You probably want to look into config.log and see what caused the
> > > FPICFLAGS message. It could be an oblique way of telling you that you
> > > haven't installed a Fortran compiler.
> > 
> > __
> > R-devel@r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-devel
> 
> __
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
> 

-- 
   O__   Peter Dalgaard Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark  Ph:  (+45) 35327918
~~ - ([EMAIL PROTECTED])  FAX: (+45) 35327907

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


Re: [Rd] extending lattice to S4 classes

2005-10-14 Thread ernesto
ernesto wrote:

>Hi,
>
>I'm writing methods for a package called FLCore (see
>http://flr-project.org/) in particular for a class called "FLQuant"
>which extends array.
>
>Previously I was able to write methods based on the class of "data" but
>now I can not do it due to the single parameter "x". Is there a way to
>do this ?
>
>Regards
>
>EJ
>
>__
>R-devel@r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-devel
>  
>

Hi,

I found an hack (see below) to make it work but it's terrible and hugly
... some suggestions are welcome. It simply tests if data belongs to
class "FLQuant" and transforms it into a data.frame before ploting.

Regards

EJ

if (!isGeneric("xyplot")) {
setGeneric("xyplot", useAsDefault = xyplot)
}


setMethod("xyplot", signature("formula"), function(x, ...){

dots <- list(...)
if(class(dots$data)=="FLQuant") dots$data <- as.data.frame(dots$data)
call.list <- c(x = x, dots)
   
# needed this to avoid an infinite loop because xyplot is defined only
for "x"
xyplot <- lattice::xyplot   
ans <- do.call("xyplot", call.list)
ans$call <- match.call()
ans

})

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


[Rd] checking S3 generic/method consistency

2005-10-14 Thread Paul Gilbert
In R-2.2.0,  how does   "checking S3 generic/method consistency"  
determine which generic to check against when there are two?  I have a 
generic "simulate" in dse1 and there is a new generic "simulate" in 
stats, and I don't seem to be able to get  my simulate methods to be 
checked consistently against one or the other. Is this deteremined by 
Depends in the DESCRIPTION file, the NAMESPACE, or something else?

Paul Gilbert

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