[Rd] sum() vs cumsum() implicit type coercion

2020-08-23 Thread Rory Winston
Hi I noticed a small inconsistency when using sum() vs cumsum() I have a char-based series > tryjpy$long [1] "0.0022" "-0.0002" "-0.0149" "-0.0023" "-0.0342" "-0.0245" "-0.0022" [8] "0.0003" "-0.0001" "-0.0004" "-0.0036" "-0.001" "-0.0011" "-0.0012" [15] "-0.0006" "0.0016" "0.0006"

Re: [Rd] load/unload segfault puzzle

2013-06-13 Thread Rory Winston
Ben Have you compiled R form source yourself? If so, I would be tempted to mark up memory. c with some debug log statements - especially around line 1357, and possibly inside the finalizers function as it attempts to run the C finalizersnot pretty I know, but may be the quickest approach

Re: [Rd] load/unload segfault puzzle

2013-06-13 Thread Rory Winston
Dunlap Spotfire, TIBCO Software wdunlap tibco.com -Original Message- From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r-project.org] On Behalf Of Rory Winston Sent: Thursday, June 13, 2013 3:56 AM To: r-devel@r-project.org Subject: Re: [Rd] load/unload segfault puzzle

Re: [Rd] Creating a Factor Object in C code?

2012-12-27 Thread Rory Winston
Hi Simon Thanks for the clarification - makes sense and I now think youre right - probably better to avoid an automatic factor conversion and let the user explicitly convert if necessary. And you are right, I did abuse the term factor when referring to varchar - instead of factor, I really

Re: [Rd] Handle RAWSXP in inspect.c:typename()

2010-08-23 Thread Rory Winston
Hi Simon Thanks a lot - thats fantastic. Many thanks for the quick response! Cheers -- Rory On Tue, Aug 24, 2010 at 3:12 AM, Simon Urbanek simon.urba...@r-project.orgwrote: On Aug 22, 2010, at 4:47 AM, Rory Winston wrote: Hi all I had written a gdb macro to dump the string

[Rd] Handle RAWSXP in inspect.c:typename()

2010-08-22 Thread Rory Winston
Hi all I had written a gdb macro to dump the string representation of an SEXPREC type when I realised everything I needed was in inspect.c already in the typename() function. However, the typename function doesnt handle the RAWSXP type, so if possible, could the following patch be applied (I've

[Rd] Duplicated lines in configure

2009-08-10 Thread rory . winston
Hi There seems to be two functionally equivalent lines in the configure script https://svn.r-project.org/R/trunk/configure: ... --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-x use the X Window System --with-gnu-ld assume the C compiler uses GNU ld default=no ... These

[Rd] Error Building R + X11 on SuSe 10

2009-08-10 Thread rory . winston
Hi all I am having problems building R + x11 support on the following system: # uname -a Linux 2.6.16.60-0.27-bigsmp #1 SMP Mon Jul 28 13:06:32 UTC 2008 i686 i686 i386 GNU/Linux # cat /etc/SuSE-release SUSE Linux Enterprise Server 10 (i586) VERSION = 10 PATCHLEVEL = 2 I am using the source

Re: [Rd] Error Building R + X11 on SuSe 10S

2009-08-10 Thread rory . winston
Following on... Sorry folks, it looks like I have misdiagnosed the issue. When I connect to the server using an X client and start up the newly built R instance, I see capabilities() shows X11 support as expected. So this changes the character of my query somewhat: As I was hoping to run R in

Re: [Rd] Error Building R + X11 on SuSe 10S

2009-08-10 Thread rory . winston
Thanks Duncan. I have since found that building cairo and adding '--with-cairo' to the configure command solves this problem, and also gives (at least to my eyes) much nicer looking 2D png() plots. Cheers -- Rory On Aug 10, 2009 12:54pm, Duncan Murdoch murd...@stats.uwo.ca wrote:

Re: [Rd] Adding a Matrix Exponentiation Operator

2008-04-08 Thread Rory Winston
Thanks Antonio, thats a good suggestion. On Sat, Apr 5, 2008 at 5:51 PM, Antonio, Fabio Di Narzo [EMAIL PROTECTED] wrote: 2008/4/5, Rory Winston [EMAIL PROTECTED]: snip /* Convenience function */ static void copyMatrixData(SEXP a, SEXP b, int nrows, int ncols, int mode

Re: [Rd] Adding a Matrix Exponentiation Operator

2008-04-08 Thread Rory Winston
; setAttrib(matrix, R_DimSymbol, dims2); UNPROTECT(5); return matrix; } On Sun, Apr 6, 2008 at 12:01 PM, Rory Winston [EMAIL PROTECTED] wrote: Hi Martin Thanks for the detailed reply. I had a look at the matrix power implementation in the actuar package and the modified version in the expm

Re: [Rd] Adding a Matrix Exponentiation Operator

2008-04-08 Thread rory . winston
] on Tue, 08 Apr 2008 09:28:00 -0400 writes: VG Le dim. 6 avr. à 07:01, Rory Winston a écrit : Hi Martin Thanks for the detailed reply. I had a look at the matrix power implementation in the actuar package and the modified version in the expm package. I have

[Rd] Adding a Matrix Exponentiation Operator

2008-04-05 Thread Rory Winston
Hi all I recently started to write a matrix exponentiation operator for R (by adding a new operator definition to names.c, and adding the following code to arrays.c). It is not finished yet, but I would like to solicit some comments, as there are a few areas of R's internals that I am still