Thanks for the reply Sean,

I've now installed the CRAN distribution and the same script with the 
same data worked fine.

I'll try reporting it to the Homebrew folks.

Regards,
Daniel Serodio

Sean Davis wrote:
> Hi, Daniel.
>
> I highly doubt that the output you show below is due to a bug in R, 
> but I could certainly be wrong.  I don't believe that the 
> homebrew-packaged R is supported here, generally speaking, but that 
> doesn't help you.  I'd suggest installing the Mac OS version from CRAN 
> as a first step to solving your problem.  If you still have problems 
> running your example with the CRAN binary Mac installation, then 
> writing here is a good first step to figuring out the issue.
>
> Sean
>
>
> On Wed, Dec 7, 2011 at 8:34 AM, Daniel Serodio (lists) 
> <[email protected] <mailto:[email protected]>> wrote:
>
>     I'm a complete R newbie. My first R script is to generate a histogram
>     from a CSV file, and I'm getting a segmentation fault every time.
>
>     > csv <- read.csv(file='data.csv',head=TRUE,sep=",")
>     > hist(csv$foo)
>
>      *** caught segfault ***
>     address 0x0, cause 'memory not mapped'
>
>     Traceback:
>      1: title(main = main, sub = sub, xlab = xlab, ylab = ylab, ...)
>      2: plot.histogram(r, freq = freq1, col = col, border = border,
>     angle =
>     angle,     density = density, main = main, xlim = xlim, ylim = ylim,
>     xlab = xlab, ylab = ylab, axes = axes, labels = labels, ...)
>      3: plot(r, freq = freq1, col = col, border = border, angle =
>     angle,     density = density, main = main, xlim = xlim, ylim = ylim,
>     xlab = xlab, ylab = ylab, axes = axes, labels = labels, ...)
>      4: hist.default(csv$last_web_mail_date)
>      5: hist(csv$last_web_mail_date)
>
>
>
>
>     How should I report this bug? I'm running R 2.14.0 (compiled by
>     "brew")
>     on Lion
>
>     Thanks in advance,
>     Daniel Serodio
>
>     _______________________________________________
>     R-SIG-Mac mailing list
>     [email protected] <mailto:[email protected]>
>     https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
>

        [[alternative HTML version deleted]]

_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to