[BioC] EBImage Sample code errors

Robert Baer rbaer at atsu.edu
Thu Jul 19 01:39:04 CEST 2012


On 7/18/2012 5:59 PM, Dan Tenenbaum wrote:
> On Wed, Jul 18, 2012 at 3:36 PM, Robert Baer <rbaer at atsu.edu> wrote:
>> I get the following errors when running the EBImage introductory sample
>> code:
>>
>>> ###################################################
>>> ### code chunk number 11: math2
>>> ###################################################
>>> lena4 = lena[299:376, 224:301]
>> Error in slot(lena, ".Data")[299:376, 224:301] :
>>     incorrect number of dimensions
>>> lena5 = lena>0.5
>>> lena6 = t(lena)
>> Error in t.default(lena) : argument is not a matrix
>>> print(median(lena))
>> [1] 0.3803922
>> Can any when help me understand what is going on?
>>
> Can you send the output of sessionInfo() after receiving this error?
> Dan
>
Sorry!  I should have done this in the first place :-(

 > sessionInfo()
R version 2.15.1 (2012-06-22)
Platform: i386-pc-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods base

other attached packages:
[1] EBImage_3.12.0 abind_1.4-0
 > R.Version()
$platform
[1] "i386-pc-mingw32"

$arch
[1] "i386"

$os
[1] "mingw32"

$system
[1] "i386, mingw32"

$status
[1] ""

$major
[1] "2"

$minor
[1] "15.1"

$year
[1] "2012"

$month
[1] "06"

$day
[1] "22"

$`svn rev`
[1] "59607"

$language
[1] "R"

$version.string
[1] "R version 2.15.1 (2012-06-22)"

$nickname
[1] "Roasted Marshmallows"

 >

>> Did something go from S3 to S4 that changes the way this code should be written?
>>
>> Thanks,
>>
>> Rob
>>
>>
>>
>>          [[alternative HTML version deleted]]
>>
>> _______________________________________________
>> Bioconductor mailing list
>> Bioconductor at r-project.org
>> https://stat.ethz.ch/mailman/listinfo/bioconductor
>> Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor



More information about the Bioconductor mailing list