From r.hankin at noc.soton.ac.uk  Tue Jul 11 09:46:17 2006
From: r.hankin at noc.soton.ac.uk (Robin Hankin)
Date: Tue, 11 Jul 2006 08:46:17 +0100
Subject: [Rd] invalid alignment error in R-2.4.0
Message-ID: <83E43F77-928F-4315-B311-0002B276A1F5@soc.soton.ac.uk>

Hi

I  thought I'd  pass one of my package through R CMD check with R-2.4.0
with the following result (it's clean under R-2.3.1):


[snip]
 >
 >   # histogram of the fourth power:
 > hist(out^4, col="gray")

*** caught bus error ***
address 0x12, cause 'invalid alignment'

Traceback:
1: sort(x, partial = c(half, half + 1))
2: sum(sort(x, partial = c(half, half + 1))[c(half, half + 1)])
3: stats::median(diff(breaks))
4: hist.default(out^4, col = "gray")
5: hist(out^4, col = "gray")
aborting ...



Under R-2.4.0, hist(out^4) repeatably gives an error like that above.
Here's a dput() of out:


c(10.4975870476354, 10.3973239490546, 10.9079973318563,  
10.9201457586087,
10.863164987001, 10.8092412328219, 10.3740979640666, 10.3933170416021,
10.1571361926693, 10.7231637475341, 10.8495903667896, 10.2760101321262,
10.3999724625721, 11.1422484374362, 10.1623400428855, 10.9139189812841,
11.1313700266654, 10.4214929867460, 10.9543767973144, 10.2925796047365,
10.3399040002101, 10.5080265067013, 10.4963598344302, 10.5694912655817,
10.9088365086950, 9.67007136377566, 10.4303159857457, 10.6734035266469,
10.3555432530979, 10.9738495753501, 10.3888850313651, 11.2210598170116,
10.8020906590915, 10.7391185468963, 10.3303267171864, 10.7176410493307,
10.3527634000890, 10.6331145125840, 10.7946862157461, 10.6147608946858,
9.85567630738787, 11.0289144282434, 10.742857648964, 10.866630627911,
10.5278318354308, 10.3553983376990, 10.7900270843436, 10.3467961125517,
10.5126782499258, 10.8575135939962, 10.9151746119094, 11.2000951011802,
10.4133108985045, 10.5265186993107, 10.7148111540688, 10.3722159808052,
10.1911424590529, 10.8375326158672, 10.2892046453081, 11.0159788575821,
10.2104834661186, 10.0718751926059, 11.5503607473136, 10.9134877529340,
11.3063246702428, 10.0682022386836, 10.6766007351429, 10.6029531885996,
10.3568338147980, 10.5246512104442, 10.9964827564484, 10.4826791470128,
10.3340980255556, 10.4201862775486, 10.6526293411458, 10.1270181743699,
10.7479561453406, 10.3223366380115, 10.6640317023258, 10.8816465650639,
10.2469734194448, 11.0595077832844, 10.6211764829084, 10.8387020014927,
10.3842712860829, 10.3288969420998, 11.1095936345021, 10.7755741380517,
10.8891163113089, 10.9239878986268, 10.4674437486482, 10.4494516106226,
10.6816375084280, 10.1609470064992, 10.6055689487767, 10.3759153410817,
10.4743618410399, 10.9932886540585, 10.2563007403496, 10.0821264920858,
10.7293259154111, 10.8834112318584, 10.5285102045021, 10.7068278466484,
10.9517121917501, 10.6249671128484, 10.8188751147001, 10.5327448695580,
10.7315642237059, 10.4996799637132)


 > R.version
                _
platform       powerpc-apple-darwin8.7.0
arch           powerpc
os             darwin8.7.0
system         powerpc, darwin8.7.0
status         Under development (unstable)
major          2
minor          4.0
year           2006
month          07
day            09
svn rev        38523
language       R
version.string R version 2.4.0 Under development (unstable)  
(2006-07-09 r38523)
 >

--
Robin Hankin
Uncertainty Analyst
National Oceanography Centre, Southampton
European Way, Southampton SO14 3ZH, UK
  tel  023-8059-7743



[Rd] invalid alignment error in R-2.4.0
Robin Hankin