• using R version 2.9.0 (2009-04-17)
  • using session charset: ASCII
  • checking for file 'UNF/DESCRIPTION' ... OK
  • this is package 'UNF' version '1.16'
  • checking package name space information ... OK
  • checking package dependencies ... OK
  • checking if this is a source package ... OK
  • checking for executable files ... WARNING
    Found the following executable file(s):
    /private/tmp/CRAN.bld.tiger-universal.9h7fVjh+/UNF/src/iconv.dll
    Source packages should not contain undeclared executable files.
    See section 'Package structure' in manual 'Writing R Extensions'.
  • checking whether package 'UNF' 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 name space can be loaded with stated dependencies ... 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 ... NOTE
    .on.attach: no visible binding for global variable 'pkgutils'
  • checking Rd files ... OK
  • checking Rd files against version 2 parser ... OK
  • checking Rd cross-references ... OK
  • checking for missing documentation entries ... OK
  • checking for code/documentation mismatches ... OK
  • checking Rd \usage sections ... NOTE
    S3 methods shown with full name in documentation object 'unf':
    as.character.unf

    The \usage entries for S3 methods should use the \method markup and not
    their full name.
    See the chapter 'Writing R documentation files' in manual 'Writing R
    Extensions'.
  • checking line endings in C/C++/Fortran sources/headers ... OK
  • checking line endings in Makefiles ... OK
  • checking for portable compilation flags in Makevars ... OK
  • checking for portable use of $BLAS_LIBS ... OK
  • checking examples ... ERROR
    Running examples in 'UNF-Ex.R' failed.
    The error most likely occurred in:

    > ### * unf
    >
    > flush(stderr()); flush(stdout())
    >
    > ### Name: unf
    > ### Title: universal numeric fingerprint
    > ### Aliases: unf as.unf as.character.unf unf2base64
    > ### Keywords: misc debugging
    >
    > ### ** Examples
    >
    >
    > # simple example
    > v=1:100/10 +.0111
    > vr=signif(v,digits=2)
    >
    > # print.unf shows in standard format, including version and digits
    > print(unf(v))
    [1] "UNF:4.1:Ikae9RcuHnevearvmJj9zWl6w8UToMuY19y66kklKzU="
    >
    > # as.character will return base64 section only for comparisons
    > as.character(unf(v))
    [1] "UNF:4.1:Ikae9RcuHnevearvmJj9zWl6w8UToMuY19y66kklKzU="
    >
    > # this is false, since computed base64 values UNF's differ
    > unf2base64(unf(v))==unf2base64(unf(vr))
    [1] FALSE
    >
    > # this is true, since computed UNF's base64 values are the same at 2 significant digits
    > unf2base64(unf(v, digits=2))==unf2base64(unf(vr))
    [1] TRUE
    >
    > # WARNING: this is false, since UNF's values are the same, but
    > # number of calculated digits differ , probably not the comparison
    > # you intend
    >
    > identical(unf(v,digits=2),unf(vr))
    [1] FALSE
    >
    > # compute a fingerprint of longley at 10 significant digits of accuracy for numeric values
    > # this fingerprint can be stored and verified when reading the dataset
    > # later
    > data(longley)
    > mf10<-unf(longley,ndigits=10);
    >
    > # this produces the same results as using signifz(), but not signif()
    > mf11<-unf(signifz(longley,digits=10))
    >
    > unf2base64(mf11)==unf2base64(mf10)
    [1] TRUE FALSE TRUE TRUE TRUE TRUE FALSE
    >
    > #printable representation, prints seven UNF's, one for each vector
    > print(mf10)
    [1] "UNF:4.1:10,128:pPOrppJ+RTGwCXCZRmUg3mitHUphnqR3/Ba3t0OEDCE="
    [2] "UNF:4.1:10,128:MAO7MN100UX6MWaOqq0W+TOZPgwoTrflzc61ZniQk0s="
    [3] "UNF:4.1:10,128:gKecoSAr9PBzDG5ObNrcKe2CqkHD8qFW9KOZXym/qRM="
    [4] "UNF:4.1:10,128:kPaUnMQ5R2568Gpqw1NtrSizLLDgrwxPJIxcKwkLhpY="
    [5] "UNF:4.1:10,128:Iy+9vOoBN90BmUOh4y7LVTaaAI47aAyhFyNbW5f1dwQ="
    [6] "UNF:4.1:10,128:T1dOFMTJMf1i9oqFp0QKN7J/3ZQXFw/g814ye2fKjKA="
    [7] "UNF:4.1:10,128:8TjDGngNgap8m0xKzU2UMDmBjkHUNfbw3WFR12aT/bo="
    >
    > # summarizes the base64 portion of the unf for each vector into a
    > # single base64 UNF representing entire dataset
    > summary(mf10)
    [1] "UNF:4.1:10,128:EPRxZ4AKpVsZsIfx9ExDagrtbnKwLnVWuDmlKlpxL+Y="
    > ## Don't show:
    > #self test
    >
    > unfTest=get("unfTest",envir=environment(unf))
    > if (!unfTest(silent=FALSE)) {
    + stop("failed self tests")
    + }
    Warning in unfTest(silent = FALSE) : Failed longley v 4
    Warning in unfTest(silent = FALSE) : Failed longley v 4.1
    Error: failed self tests
    Execution halted
  • elapsed time (check, wall clock): 0:17