RE: [R] Seg. faults in mapthin (in package maps!)

2004-07-18 Thread Ray Brownrigg
From: Kevin Bartz [EMAIL PROTECTED] Date: Thu, 1 Jul 2004 10:18:36 -0700 Dr. Ripley, you are the master. That fix worked like a charm! All the way to 50, with no problems. Thanks again, Hear, hear! From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] Sent: Thursday, July 01, 2004 10:07 AM

[R] Seg. faults in mapthin

2004-07-01 Thread Kevin Bartz
Hi everyone! I know segmentation faults are awfully hard to diagnose, but I'm experiencing a fairly regular pattern of seg. faults when plotting using map in the maps package. Starting R fresh, I run: require(maps) for (i in 1:50) { cat(i, \n) map(state) } I always get the same result: 1 2

Re: [R] Seg. faults in mapthin (in package maps!)

2004-07-01 Thread Prof Brian Ripley
You are on a 64-bit architecture and the C interface is declared as void mapthin(x, y, n, delta, symmetric) double *x, *y, *delta; long *n, *symmetric; R's integer type is int, not long, but they are the same on a 32-bit platform. I am pretty sure that changing long to int will fix

RE: [R] Seg. faults in mapthin (in package maps!)

2004-07-01 Thread Kevin Bartz
Dr. Ripley, you are the master. That fix worked like a charm! All the way to 50, with no problems. Thanks again, Kevin -Original Message- From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] Sent: Thursday, July 01, 2004 10:07 AM To: Kevin Bartz Cc: [EMAIL PROTECTED] Subject: Re: [R] Seg

RE: [R] Seg. faults in mapthin (in package maps!)

2004-07-01 Thread Ray Brownrigg
From: Kevin Bartz [EMAIL PROTECTED] Date: Thu, 1 Jul 2004 10:18:36 -0700 Dr. Ripley, you are the master. That fix worked like a charm! All the way to 50, with no problems. Thanks again, And all while I was asleep! I'll submit a corrected maps package in a couple of weeks, when I return