CRAN Package Check Results for Package sdcMicro

Last updated on 2015-08-02 06:48:13.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 4.5.0 19.98 87.00 106.99 NOTE
r-devel-linux-x86_64-debian-gcc 4.5.0 20.71 85.00 105.71 NOTE
r-devel-linux-x86_64-fedora-clang 4.5.0 225.67 NOTE
r-devel-linux-x86_64-fedora-gcc 4.5.0 210.31 NOTE
r-devel-osx-x86_64-clang 4.5.0 181.19 OK
r-devel-windows-ix86+x86_64 4.5.0 66.00 198.00 264.00 NOTE
r-patched-linux-x86_64 4.5.0 21.22 87.42 108.64 OK
r-patched-solaris-sparc 4.5.0 1288.10 ERROR
r-patched-solaris-x86 4.5.0 273.00 OK
r-release-linux-x86_64 4.5.0 20.77 85.15 105.92 OK
r-release-osx-x86_64-mavericks 4.5.0 OK
r-release-windows-ix86+x86_64 4.5.0 83.00 206.00 289.00 OK
r-oldrel-windows-ix86+x86_64 4.5.0 97.00 262.00 359.00 OK

Check Details

Version: 4.5.0
Check: R code for possible problems
Result: NOTE
    LLmodGlobalRiskWORK: no visible global function definition for
     ‘as.formula’
    LLmodGlobalRiskWORK: no visible global function definition for ‘xtabs’
    LLmodGlobalRiskWORK: no visible global function definition for ‘fitted’
    addNoiseWORK: no visible binding for global variable ‘median’
    addNoiseWORK : <anonymous>: no visible global function definition for
     ‘rnorm’
    addNoiseWORK : <anonymous>: no visible global function definition for
     ‘sd’
    addNoiseWORK: no visible global function definition for ‘cov’
    addNoiseWORK: no visible global function definition for ‘na.omit’
    addNoiseWORK : ROMM: no visible global function definition for ‘rnorm’
    addNoiseWORK: no visible binding for global variable ‘quantile’
    addNoiseWORK: no visible global function definition for ‘qchisq’
    addNoiseWORK: no visible global function definition for ‘mahalanobis’
    addNoiseWORK: no visible global function definition for ‘rnorm’
    addNoiseWORK: no visible global function definition for ‘sd’
    coefTime: no visible global function definition for ‘rnorm’
    dRiskRMDWORK: no visible global function definition for ‘mahalanobis’
    dRiskRMDWORK: no visible global function definition for ‘dist’
    dRiskWORK: no visible binding for global variable ‘sd’
    dUtilityWORK: no visible global function definition for ‘sd’
    dUtilityWORK: no visible global function definition for ‘var’
    dataGenWORK: no visible global function definition for ‘rnorm’
    dataGenWORK: no visible global function definition for ‘cov’
    globalRecodeWORK : equalAmount: no visible global function definition
     for ‘quantile’
    localSupp2: no visible global function definition for ‘flush.console’
    maGowerWORK: no visible global function definition for ‘rnorm’
    microaggregationWORK : means: no visible binding for global variable
     ‘median’
    microaggregationWORK : means : <anonymous>: no visible global function
     definition for ‘weighted.mean’
    microaggregationWORK : means: no visible binding for global variable
     ‘mad’
    microaggregationWORK : clust: no visible global function definition for
     ‘kmeans’
    microaggregationWORK : prcompRob: no visible binding for global
     variable ‘median’
    microaggregationWORK : prcompRob: no visible binding for global
     variable ‘mad’
    microaggregationWORK: no visible global function definition for
     ‘princomp’
    microaggregationWORK: no visible binding for global variable ‘sd’
    microaggregationWORK : <anonymous>: no visible global function
     definition for ‘sd’
    microaggregationWORK: no visible global function definition for ‘dist’
    microaggregationWORK: no visible global function definition for
     ‘mahalanobis’
    microaggregationWORK : distToVec: no visible global function definition
     for ‘dist’
    microaggregationWORK : findNearest: no visible global function
     definition for ‘dist’
    plot.localSuppression: no visible global function definition for
     ‘barplot’
    plot.localSuppression: no visible global function definition for
     ‘mtext’
    plotMicro: no visible global function definition for ‘par’
    plotMicro: no visible global function definition for ‘density’
    plotMicro: no visible global function definition for ‘lines’
    plotMicro: no visible global function definition for ‘legend’
    plotMicro: no visible global function definition for ‘boxplot’
    plotMicro: no visible global function definition for ‘princomp’
    plotMicro: no visible global function definition for ‘biplot’
    plotMicro: no visible global function definition for ‘mtext’
    plotMicro: no visible global function definition for ‘plot.new’
    plotMicro: no visible global function definition for ‘plot.window’
    plotMicro: no visible global function definition for ‘segments’
    plotMicro: no visible global function definition for ‘rect’
    plotMicro: no visible global function definition for ‘axis’
    plotMicro: no visible global function definition for ‘strwidth’
    plotMicro: no visible global function definition for ‘text’
    plotMicro: no visible global function definition for ‘box’
    pramWORK : do.pram: no visible global function definition for ‘runif’
    predictTime: no visible global function definition for ‘coef’
    print.indivRisk: no visible global function definition for ‘median’
    print.indivRisk: no visible global function definition for ‘mad’
    print.measure_risk: no visible global function definition for ‘median’
    print.measure_risk: no visible global function definition for ‘mad’
    shuffleWORK : cv: no visible global function definition for ‘cov’
    shuffleWORK : cr: no visible global function definition for ‘cor’
    shuffleWORK: no visible global function definition for ‘model.matrix’
    shuffleWORK: no visible global function definition for ‘formula’
    shuffleWORK : egadp: no visible global function definition for ‘lm’
    shuffleWORK : <anonymous>: no visible global function definition for
     ‘qnorm’
    shuffleWORK: no visible global function definition for ‘cov’
    shuffleWORK: no visible binding for global variable ‘qnorm’
    shuffleWORK: no visible global function definition for ‘cor’
    shuffleWORK: no visible global function definition for ‘lm’
    shuffleWORK: no visible global function definition for ‘predict’
    summary.micro : prcompRob: no visible binding for global variable
     ‘median’
    summary.micro : prcompRob: no visible binding for global variable ‘mad’
    summary.micro: no visible binding for global variable ‘median’
    summary.micro : onestep: no visible binding for global variable
     ‘median’
    summary.micro : onestep: no visible binding for global variable ‘mad’
    summary.micro: no visible global function definition for ‘var’
    summary.micro: no visible binding for global variable ‘mad’
    summary.micro: no visible global function definition for ‘cov’
    summary.micro: no visible global function definition for ‘cor’
    summary.micro: no visible global function definition for ‘lm’
    summary.micro: no visible global function definition for ‘princomp’
    valTable : prcompRob: no visible binding for global variable ‘median’
    valTable : prcompRob: no visible binding for global variable ‘mad’
    valTable: no visible global function definition for ‘flush.console’
    LLmodGlobalRisk,data.frame: no visible global function definition for
     ‘as.formula’
    LLmodGlobalRisk,matrix: no visible global function definition for
     ‘as.formula’
    LLmodGlobalRisk,sdcMicroObj: no visible global function definition for
     ‘as.formula’
    LLmodGlobalRisk,sdcMicroObj: no visible global function definition for
     ‘terms’
    calcReportData,sdcMicroObj: no visible global function definition for
     ‘png’
    calcReportData,sdcMicroObj: no visible global function definition for
     ‘boxplot’
    calcReportData,sdcMicroObj: no visible global function definition for
     ‘legend’
    calcReportData,sdcMicroObj: no visible global function definition for
     ‘dev.off’
    calcReportData,sdcMicroObj: no visible global function definition for
     ‘sessionInfo’
    microaggrGower,data.frame: no visible binding for global variable
     ‘data’
    print,sdcMicroObj: no visible global function definition for ‘median’
    print,sdcMicroObj: no visible global function definition for ‘mad’
    Undefined global functions or variables:
     as.formula axis barplot biplot box boxplot coef cor cov data density
     dev.off dist fitted flush.console formula kmeans legend lines lm mad
     mahalanobis median model.matrix mtext na.omit par plot.new
     plot.window png predict princomp qchisq qnorm quantile rect rnorm
     runif sd segments sessionInfo strwidth terms text var weighted.mean
     xtabs
    Consider adding
     importFrom("grDevices", "dev.off", "png")
     importFrom("graphics", "axis", "barplot", "box", "boxplot", "legend",
     "lines", "mtext", "par", "plot.new", "plot.window", "rect",
     "segments", "strwidth", "text")
     importFrom("stats", "as.formula", "biplot", "coef", "cor", "cov",
     "density", "dist", "fitted", "formula", "kmeans", "lm",
     "mad", "mahalanobis", "median", "model.matrix", "na.omit",
     "predict", "princomp", "qchisq", "qnorm", "quantile",
     "rnorm", "runif", "sd", "terms", "var", "weighted.mean",
     "xtabs")
     importFrom("utils", "data", "flush.console", "sessionInfo")
    to your NAMESPACE.
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-ix86+x86_64

Version: 4.5.0
Check: examples
Result: ERROR
    Running examples in ‘sdcMicro-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: sdcMicro-package
    > ### Title: Statistical Disclosure Control (SDC) for the generation of
    > ### protected microdata for researchers and for public use.
    > ### Aliases: sdcMicro-package sdcMicro
    > ### Keywords: package
    >
    > ### ** Examples
    >
    > ## example from Capobianchi, Polettini and Lucarelli:
    > data(francdat)
    > f <- freqCalc(francdat, keyVars=c(2,4,5,6),w=8)
    Warning in setkeyv(dt, by) :
     Already keyed by this key but had invalid row order, key rebuilt. If you didn't go under the hood please let datatable-help know so the root cause can be fixed.
    > f
    
     --------------------------
    4 obs. violate 2-anonymity
    8 obs. violate 3-anonymity
     --------------------------
    > f$fk
    [1] 2 2 2 1 1 1 1 2
    > f$Fk
    [1] 110.0 84.5 84.5 17.0 541.0 8.0 5.0 110.0
    > ## with missings:
    > x <- francdat
    > x[3,5] <- NA
    > x[4,2] <- x[4,4] <- NA
    > x[5,6] <- NA
    > x[6,2] <- NA
    > f2 <- freqCalc(x, keyVars=c(2,4,5,6),w=8)
    > f2$Fk
    [1] 149.0 84.5 194.5 563.0 566.0 549.0 22.0 149.0
    > ## individual risk calculation:
    > indivf <- indivRisk(f)
    > indivf$rk
    [1] 0.01714426 0.02204233 0.02204233 0.17707583 0.01165448 0.29706308 0.40235948
    [8] 0.01714426
    > ## Local Suppression
    > localS <- localSupp(f, keyVar=2, indivRisk=indivf$rk, threshold=0.25)
    > f2 <- freqCalc(localS$freqCalc, keyVars=c(2,4,5,6), w=8)
    > indivf2 <- indivRisk(f2)
    > indivf2$rk
    [1] 0.01714426 0.02204233 0.02204233 0.17707583 0.01165448 0.29706308 0.40235948
    [8] 0.01714426
    >
    > ## select another keyVar and run localSupp once again,
    > #if you think the table is not fully protected
    > data(free1)
    > f <- freqCalc(free1, keyVars=1:3, w=30)
    Warning in setkeyv(dt, by) :
     Already keyed by this key but had invalid row order, key rebuilt. If you didn't go under the hood please let datatable-help know so the root cause can be fixed.
    > ind <- indivRisk(f)
    Error in if (fk[k] > 2) { : missing value where TRUE/FALSE needed
    Calls: indivRisk
    Execution halted
Flavor: r-patched-solaris-sparc