Re: [Rd] "warning: assignment discards qualifiers from pointer target type"

2011-06-08 Thread Jeffrey Ryan
On Wed, Jun 8, 2011 at 7:17 PM, oliver wrote: > On Wed, Jun 08, 2011 at 02:23:29PM -0400, Simon Urbanek wrote: > > > > On Jun 8, 2011, at 12:08 PM, oliver wrote: > > > > > On Wed, Jun 08, 2011 at 12:22:10PM +0100, Prof Brian Ripley wrote: > > >> On Tue, 7 Jun 2011, Duncan Murdoch wrote: > > >> >

Re: [Rd] Ctrl-C of functions that allocated mem

2011-06-08 Thread Simon Urbanek
On Jun 8, 2011, at 8:06 PM, oliver wrote: > > Hello, > > > what happens, when a function (R-extension in C), that allocated memory > (strdup(), malloc()/calloc() and so on), and is used in interactive mode, then > will be stopped via Ctrl-C? > > I would assume that there remains allocated mem

Re: [Rd] "warning: assignment discards qualifiers from pointer target type"

2011-06-08 Thread Simon Urbanek
On Jun 8, 2011, at 8:32 PM, oliver wrote: > On Thu, Jun 09, 2011 at 02:17:31AM +0200, oliver wrote: > [...] >> OK, I looked at this now. >> >> LENGTH() checks the length of the vector. >> >> Good to know this. >> >> So the problem of a vector of length 0 can be with any arguments of type >> S

Re: [Rd] "warning: assignment discards qualifiers from pointer target type"

2011-06-08 Thread oliver
On Thu, Jun 09, 2011 at 02:17:31AM +0200, oliver wrote: [...] > OK, I looked at this now. > > LENGTH() checks the length of the vector. > > Good to know this. > > So the problem of a vector of length 0 can be with any arguments of type SEXP, > hence I will need to check ANY arg on it's length. >

Re: [Rd] "warning: assignment discards qualifiers from pointer target type"

2011-06-08 Thread oliver
On Wed, Jun 08, 2011 at 02:23:29PM -0400, Simon Urbanek wrote: > > On Jun 8, 2011, at 12:08 PM, oliver wrote: > > > On Wed, Jun 08, 2011 at 12:22:10PM +0100, Prof Brian Ripley wrote: > >> On Tue, 7 Jun 2011, Duncan Murdoch wrote: > >> > >>> On 07/06/2011 9:08 AM, oliver wrote: > Hello, > >>

[Rd] Ctrl-C of functions that allocated mem

2011-06-08 Thread oliver
Hello, what happens, when a function (R-extension in C), that allocated memory (strdup(), malloc()/calloc() and so on), and is used in interactive mode, then will be stopped via Ctrl-C? I would assume that there remains allocated memory, which is not usable and also not accessable (hence no way

[Rd] Reference Class error message: may be caused by lazy evaluation?

2011-06-08 Thread Tengfei Yin
Dear All, I came across an error message recently when constructing a reference class, an example is attached below, it looks like only if I call a specific method in advance, otherwise it cannot be found in defined method without using .self, this make it difficulty that sometimes in my initializ

Re: [Rd] "warning: assignment discards qualifiers from pointer target type"

2011-06-08 Thread Simon Urbanek
On Jun 8, 2011, at 12:08 PM, oliver wrote: > On Wed, Jun 08, 2011 at 12:22:10PM +0100, Prof Brian Ripley wrote: >> On Tue, 7 Jun 2011, Duncan Murdoch wrote: >> >>> On 07/06/2011 9:08 AM, oliver wrote: Hello, following an advice here from the list I looked into sources of other >>

Re: [Rd] Overloading S4 methods

2011-06-08 Thread John Chambers
The bug should be fixed in r-devel and 2.13 patched, as of svn rev. 56090. John On 6/7/11 12:42 AM, Iago Mosqueira wrote: On Mon, Jun 6, 2011 at 11:28 PM, John Chambers wrote: This is a bug, medium-subtle, but also raises an interesting software design point. The Bug: Nothing specific about

Re: [Rd] "warning: assignment discards qualifiers from pointer target type"

2011-06-08 Thread oliver
On Wed, Jun 08, 2011 at 12:22:10PM +0100, Prof Brian Ripley wrote: > On Tue, 7 Jun 2011, Duncan Murdoch wrote: > > >On 07/06/2011 9:08 AM, oliver wrote: > >>Hello, > >> > >>following an advice here from the list I looked into sources of other > >>packages (xts) and found the TYPEOF() macro/functio

Re: [Rd] Does anybody successfully built latest R on AIX 5.3?

2011-06-08 Thread XiaoboGu
> -Original Message- > From: Stefan Theussl [mailto:stefan.theu...@wu.ac.at] > Sent: Wednesday, June 08, 2011 8:40 PM > To: XiaoboGu > Cc: r-devel@r-project.org > Subject: Re: [Rd] Does anybody successfully built latest R on AIX 5.3? > > On 06/08/2011 02:02 PM, XiaoboGu wrote: > > Hi Ste

Re: [Rd] Does anybody successfully built latest R on AIX 5.3?

2011-06-08 Thread XiaoboGu
Hi Stefan, Thanks for replying! I have just managed to installed gcc 4.2.4.2 on AIX this evening, and will try to install gfortran tomorrow, there are a few more questions 1. Are you running R 2.13.0 2. Can you share all the environment variables we have to set before running th

Re: [Rd] Does anybody successfully built latest R on AIX 5.3?

2011-06-08 Thread Stefan Theussl
On 06/08/2011 02:02 PM, XiaoboGu wrote: Hi Stefan, Thanks for replying! I have just managed to installed gcc 4.2.4.2 on AIX this evening, and will try to install gfortran tomorrow, there are a few more questions great. 1. Are you running R 2.13.0 Currently we are runni

Re: [Rd] "warning: assignment discards qualifiers from pointer target type"

2011-06-08 Thread Prof Brian Ripley
On Tue, 7 Jun 2011, Duncan Murdoch wrote: On 07/06/2011 9:08 AM, oliver wrote: Hello, following an advice here from the list I looked into sources of other packages (xts) and found the TYPEOF() macro/function, which really is helpful. It is documented, of course, but actually better alternat

Re: [Rd] Does anybody successfully built latest R on AIX 5.3?

2011-06-08 Thread Stefan Theussl
We successfully built R on AIX 6.1 but the following instructions should also work for 5.3. We mainly used the software from OSS4AIX but also from the "AIX Toolbox for Linux Applications" obtainable directly from IBM. Attached you'll find our list of installed rpms. This and the instructions p