I have received the following error for my package oro.nifti under "CRAN checks" for r-devel-linux-ix86; i.e., http://www.r-project.org/nosvn/R.check/r-devel-linux-ix86/oro.nifti-00check.html - using R version 2.12.0 Under development (unstable) (2010-06-12 r52259) - using platform: i686-pc-linux-gnu (32-bit) - using session charset: UTF-8 - checking for file ‘oro.nifti/DESCRIPTION’ ... OK - this is package ‘oro.nifti’ version ‘0.1.4’ - checking package name space information ... OK - checking package dependencies ... OK - checking if this is a source package ... OK - checking for executable files ... OK - checking whether package ‘oro.nifti’ can be installed ... OK - checking package directory ... OK - checking for portable file names ... OK - checking for sufficient/correct file permissions ... OK - checking DESCRIPTION meta-information ... OK - checking top-level files ... OK - checking index information ... OK - checking package subdirectories ... OK - checking R files for non-ASCII characters ... OK - checking R files for syntax errors ... OK - checking whether the package can be loaded ... OK - checking whether the package can be loaded with stated dependencies ... OK - checking whether the package can be unloaded cleanly ... OK - checking whether the name space can be loaded with stated dependencies ... OK - checking whether the name space can be unloaded cleanly ... OK - checking for unstated dependencies in R code ... OK - checking S3 generic/method consistency ... OK - checking replacement functions ... OK - checking foreign function calls ... OK - checking R code for possible problems ... OK - checking Rd files ... OK - checking Rd metadata ... OK - checking Rd cross-references ... OK - checking for missing documentation entries ... OK - checking for code/documentation mismatches ... OK - checking Rd \usage sections ... OK - checking Rd contents ... OK - checking examples ... ERROR Running examples in ‘oro.nifti-Ex.R’ failed The error most likely occurred in: > ### Name: writeNIfTI > ### Title: writeNIfTI > ### Aliases: writeNIfTI > ### Keywords: file > > ### ** Examples > > norm <- dnorm(seq(-5, 5, length=32), sd=2) > norm <- (norm-min(norm)) / max(norm-min(norm)) > img <- outer(outer(norm, norm), norm) > img <- round(255 * img) > img[17:32,,] <- 255 - img[17:32,,] > img.nifti <- nifti(img) # create NIfTI object > > writeNIfTI(img.nifti, "test-nifti-image-uint8", verbose=TRUE) niftiExtension detected! niftiAuditTrail detected! vox_offset = 1392 *writing niftiExtension(s) at byte = 6.803919e+17 # <- LARGE NUMBER! writing data at byte = 6.803919e+17 # <- LARGE NUMBER!* > ## These files should be viewable in, for example, FSLview > ## Make sure you adjust the min/max values for proper visualization > data <- readNIfTI("test-nifti-image-uint8", verbose=TRUE) fname = test-nifti-image-uint8 files = test-nifti-image-uint8.nii.gz nii = test-nifti-image-uint8.nii.gz vox_offset = 1392 niftiExtension detected! Error in read.nifti.content(fname, gzipped = TRUE, verbose = verbose, : -- extension size (esize) has overshot voxel offset -- Calls: readNIfTI -> read.nifti.content Execution halted Please draw your attention to the two lines annotated above. The line of code that "looks a bit odd" above is cat(" writing niftiExtension(s) at byte =", seek(fid), fill=TRUE) ...where fid is a call to file()... and this large number is causing the subsequent read function to fail. My questions are: - Why would this error occur in 32-bit linux only for R 2.12.0? - How can I test any fixes to this error given I am not running R in 32-bit linux? Any suggestions would be welcome. Thank-you, Brandon [[alternative HTML version deleted]]