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

2011-06-09 Thread oliver
On Thu, Jun 09, 2011 at 12:56:09PM -0400, Simon Urbanek wrote: > > On Jun 9, 2011, at 11:15 AM, oliver wrote: > > > On Thu, Jun 09, 2011 at 10:54:28AM -0400, Duncan Murdoch wrote: > >> On 09/06/2011 9:28 AM, oliver wrote: > >>> On Thu, Jun 09, 2011 at 07:43:20AM -0400, Duncan Murdoch wrote: > >>>

[Rd] Patches to speed up R 2.13.0

2011-06-09 Thread Radford Neal
I have created a collection of patches to the R 2.13.0 source that speed up many operations substantially. Some of these are related to the patches I posted in September 2010, though often with additional improvements. Other patches are new. The patches, along with detailed documentation, are

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

2011-06-09 Thread Tengfei Yin
Hi John and Martin, Thanks a lot for these elucidation and examples, that's very helpful for me to understand the underlying mechanism. And also thanks for those suggestions on programming style. I will keep that in mind~ cheers Tengfei On Thu, Jun 9, 2011 at 10:28 AM, Martin Morgan wrote: >

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

2011-06-09 Thread Martin Morgan
On 06/09/2011 10:11 AM, John Chambers wrote: Good catch. Here's the problem. To save space and time, reference methods are not all copied to every object in the class. Instead, the methods are copied in when first accessed. Methods are functions which use the object as their environment. So that

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

2011-06-09 Thread John Chambers
Good catch. Here's the problem. To save space and time, reference methods are not all copied to every object in the class. Instead, the methods are copied in when first accessed. Methods are functions which use the object as their environment. So that is the sense in which "lazy evaluati

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

2011-06-09 Thread Simon Urbanek
On Jun 9, 2011, at 11:15 AM, oliver wrote: > On Thu, Jun 09, 2011 at 10:54:28AM -0400, Duncan Murdoch wrote: >> On 09/06/2011 9:28 AM, oliver wrote: >>> On Thu, Jun 09, 2011 at 07:43:20AM -0400, Duncan Murdoch wrote: On 11-06-09 7:27 AM, oliver wrote: > On Wed, Jun 08, 2011 at 08:35:34PM

Re: [Rd] Install R 2.14 From Source : lattice Error

2011-06-09 Thread Simon Urbanek
On Jun 9, 2011, at 3:00 AM, Dario Strbenac wrote: > I'm installing the latest development version of R on Ubuntu 10.04 > > Revision: 56096 > Last Changed Date: 2011-06-08 > > and the make command runs for a while, then I get : > > ** testing if installed package can be loaded > Error in dyn.l

[Rd] Data package questions

2011-06-09 Thread Roebuck,Paul L
In process of creating data package from an existing one. The current package has both raw data files and the associated RData objects created from them. Currently, the data subdirectory is 1.5Mb and the extdata is 5.4Mb. Never having created a data package before, how is this best done? Should th

Re: [Rd] Rtools (Windows XP): what dir is meant by "R source directory"?

2011-06-09 Thread Janko Thyson
On 09.06.2011 15:58, Uwe Ligges wrote: > > > On 09.06.2011 15:07, Janko Thyson wrote: >> Dear list, >> >> thanks for providing such a great thing as the Rtools! Everytime I >> install it, though, I'm somewhat "puzzled" when it comes to the section >> "Select R Source Home Directory" (32 bit and 64

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

2011-06-09 Thread oliver
On Thu, Jun 09, 2011 at 10:54:28AM -0400, Duncan Murdoch wrote: > On 09/06/2011 9:28 AM, oliver wrote: > >On Thu, Jun 09, 2011 at 07:43:20AM -0400, Duncan Murdoch wrote: > >> On 11-06-09 7:27 AM, oliver wrote: > >> >On Wed, Jun 08, 2011 at 08:35:34PM -0400, Simon Urbanek wrote: > >> >> > >> >>O

[Rd] success of R_alloc (Re: Ctrl-C of functions that allocated mem)

2011-06-09 Thread oliver
In section 6.1.2 of Writing R Extensions, it is mentioned that if the function returns, success can be assumed. In section 6.1.1 this is not mentioned, but I assume the same holds true there too, even it is not mentioned there. Ciao, Oliver __ R-

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

2011-06-09 Thread Duncan Murdoch
On 09/06/2011 9:28 AM, oliver wrote: On Thu, Jun 09, 2011 at 07:43:20AM -0400, Duncan Murdoch wrote: > On 11-06-09 7:27 AM, oliver wrote: > >On Wed, Jun 08, 2011 at 08:35:34PM -0400, Simon Urbanek wrote: > >> > >>On Jun 8, 2011, at 8:32 PM, oliver wrote: > >> > >>>On Thu, Jun 09, 2011 at 02

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

2011-06-09 Thread oliver
On Thu, Jun 09, 2011 at 04:42:33PM +0200, oliver wrote: > On Wed, Jun 08, 2011 at 08:40:21PM -0400, Simon Urbanek wrote: > > > > On Jun 8, 2011, at 8:06 PM, oliver wrote: > > > > > > > > Hello, > > > > > > > > > what happens, when a function (R-extension in C), that allocated memory > > > (str

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

2011-06-09 Thread oliver
On Wed, Jun 08, 2011 at 08:40:21PM -0400, Simon Urbanek wrote: > > 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, > > t

Re: [Rd] Rtools (Windows XP): what dir is meant by "R source directory"?

2011-06-09 Thread Uwe Ligges
On 09.06.2011 15:07, Janko Thyson wrote: Dear list, thanks for providing such a great thing as the Rtools! Everytime I install it, though, I'm somewhat "puzzled" when it comes to the section "Select R Source Home Directory" (32 bit and 64 builds). Is the folder that I need to specify here a) s

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

2011-06-09 Thread oliver
On Thu, Jun 09, 2011 at 07:43:20AM -0400, Duncan Murdoch wrote: > On 11-06-09 7:27 AM, oliver wrote: > >On Wed, Jun 08, 2011 at 08:35:34PM -0400, Simon Urbanek wrote: > >> > >>On Jun 8, 2011, at 8:32 PM, oliver wrote: > >> > >>>On Thu, Jun 09, 2011 at 02:17:31AM +0200, oliver wrote: > >>>[...] > >>

[Rd] Rtools (Windows XP): what dir is meant by "R source directory"?

2011-06-09 Thread Janko Thyson
Dear list, thanks for providing such a great thing as the Rtools! Everytime I install it, though, I'm somewhat "puzzled" when it comes to the section "Select R Source Home Directory" (32 bit and 64 builds). Is the folder that I need to specify here a) simply the root folder of my R installatio

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

2011-06-09 Thread Duncan Murdoch
On 11-06-09 7:27 AM, oliver wrote: On Wed, Jun 08, 2011 at 08:35:34PM -0400, Simon Urbanek wrote: 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.

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

2011-06-09 Thread oliver
On Wed, Jun 08, 2011 at 08:40:21PM -0400, Simon Urbanek wrote: > > 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, > > t

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

2011-06-09 Thread oliver
On Wed, Jun 08, 2011 at 08:35:34PM -0400, Simon Urbanek wrote: > > 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. >

[Rd] Install R 2.14 From Source : lattice Error

2011-06-09 Thread Dario Strbenac
I'm installing the latest development version of R on Ubuntu 10.04 Revision: 56096 Last Changed Date: 2011-06-08 and the make command runs for a while, then I get : ** testing if installed package can be loaded Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared object '