Skip to content

rchk errors on CRAN checks #2835

@mattdowle

Description

@mattdowle

Resolving these has a reasonable chance of fixing #2767. They should be addressed anyway.

Linked under Additional Issues on https://cran.r-project.org/web/checks/check_results_data.table.html

rchk log
Package data.table version 1.11.0
Package built using 74679/R 3.6.0; x86_64-pc-linux-gnu; 2018-05-02 05:47:36 UTC; unix   
Checked with rchk version 63f79d910f5835174fcaa5a0a7d2409348f7d2ac
More information at https://github.com/kalibera/cran-checks/blob/master/rchk/PROTECT.md

Function allocateDT
  [PB] has possible protection stack imbalance data.table/src/freadR.c:370

Function checkVars
  [UP] unprotected variable dtnames while calling allocating function Rf_allocVector data.table/src/fmelt.c:176
  [UP] unprotected variable dtnames while calling allocating function Rf_allocVector data.table/src/fmelt.c:177
  [UP] unprotected variable dtnames while calling allocating function Rf_allocVector data.table/src/fmelt.c:185
  [UP] allocating function chmatch may destroy its unprotected argument (dtnames <arg 2>), which is later used. data.table/src/fmelt.c:190
  [UP] unprotected variable dtnames while calling allocating function Rf_coerceVector data.table/src/fmelt.c:191
  [UP] unprotected variable dtnames while calling allocating function Rf_duplicated data.table/src/fmelt.c:195
  [UP] unprotected variable dtnames while calling allocating function Rf_allocVector data.table/src/fmelt.c:202
  [UP] unprotected variable dtnames while calling allocating function set_diff(V,?) data.table/src/fmelt.c:209
  [UP] unprotected variable dtnames while calling allocating function Rf_allocVector data.table/src/fmelt.c:210
  [UP] unprotected variable dtnames while calling allocating function Rprintf data.table/src/fmelt.c:214
  [UP] allocating function chmatch may destroy its unprotected argument (dtnames <arg 2>), which is later used. data.table/src/fmelt.c:219
  [UP] unprotected variable dtnames while calling allocating function Rf_coerceVector data.table/src/fmelt.c:220
  [UP] allocating function measurelist may destroy its unprotected argument (dtnames <arg 2>), which is later used. data.table/src/fmelt.c:222
  [UP] unprotected variable dtnames while calling allocating function unlist_ data.table/src/fmelt.c:227
  [UP] unprotected variable dtnames while calling allocating function Rf_duplicated data.table/src/fmelt.c:229
  [UP] unprotected variable dtnames while calling allocating function Rf_allocVector data.table/src/fmelt.c:236
  [UP] unprotected variable dtnames while calling allocating function set_diff(V,?) /home/tomas/cran/rchk/pkgbuild/lCEpKXaERROR: too many states (abstraction error?) in function dogroups
L/data.table/src/fmelt.c:243
  [UP] unprotected variable dtnames while calling allocating function Rf_allocVector data.table/src/fmelt.c:246
  [UP] unprotected variable dtnames while calling allocating function Rprintf data.table/src/fmelt.c:250
  [UP] allocating function chmatch may destroy its unprotected argument (dtnames <arg 2>), which is later used. data.table/src/fmelt.c:255
  [UP] unprotected variable dtnames while calling allocating function Rf_coerceVector data.table/src/fmelt.c:256

Function combineFactorLevels
  [PB] has possible protection stack imbalance data.table/src/rbindlist.c:322

Function dogroups
  [UP] unprotected variable SDall while calling allocating function Rf_allocVector data.table/src/dogroups.c:46
  [UP] unprotected variable SDall while calling allocating function Rf_defineVar(S:.BY,V,?) data.table/src/dogroups.c:46
  [UP] unprotected variable BY while calling allocating function Rf_allocVector data.table/src/dogroups.c:47
  [UP] unprotected variable SDall while calling allocating function Rf_allocVector data.table/src/dogroups.c:47
  [UP] unprotected variable SDall while calling allocating function Rf_setAttrib(V,S:names,V) data.table/src/dogroups.c:59
  [UP] unprotected variable BY while calling allocating function R_LockBinding(S:.BY,?) data.table/src/dogroups.c:60
  [UP] unprotected variable SDall while calling allocating function R_LockBinding(S:.BY,?) data.table/src/dogroups.c:60
  [UP] unprotected variable BY while calling allocating function Rf_findVar(S:.N,?) data.table/src/dogroups.c:64
  [UP] unprotected variable BY while calling allocating function Rf_install data.table/src/dogroups.c:64
  [UP] unprotected variable SDall while calling allocating function Rf_findVar(S:.N,?) data.table/src/dogroups.c:64
  [UP] unprotected variable SDall while calling allocating function Rf_install data.table/src/dogroups.c:64
  [UP] unprotected variable BY while calling allocating function Rf_findVar(S:.GRP,?) data.table/src/dogroups.c:65
  [UP] unprotected variable BY while calling allocating function Rf_install data.table/src/dogroups.c:65
  [UP] unprotected variable N while calling allocating function Rf_findVar(S:.GRP,?) data.table/src/dogroups.c:65
  [UP] unprotected variable N while calling allocating function Rf_install data.table/src/dogroups.c:65
  [UP] unprotected variable SDall while calling allocating function Rf_findVar(S:.GRP,?) data.table/src/dogroups.c:65
  [UP] unprotected variable SDall while calling allocating function Rf_install data.table/src/dogroups.c:65
  [UP] unprotected variable BY while calling allocating function Rf_findVar(S:.iSD,?) data.table/src/dogroups.c:66
  [UP] unprotected variable BY while calling allocating function Rf_install data.table/src/dogroups.c:66
  [UP] unprotected variable GRP while calling allocating function Rf_findVar(S:.iSD,?) data.table/src/dogroups.c:66
  [UP] unprotected variable GRP while calling allocating function Rf_install data.table/src/dogroups.c:66
  [UP] unprotected variable N while calling allocating function Rf_findVar(S:.iSD,?) data.table/src/dogroups.c:66
  [UP] unprotected variable N while calling allocating function Rf_install data.table/src/dogroups.c:66
  [UP] unprotected variable SDall while calling allocating function Rf_findVar(S:.iSD,?) data.table/src/dogroups.c:66
  [UP] unprotected variable SDall while calling allocating function Rf_install data.table/src/dogroups.c:66
  [UP] unprotected variable BY while calling allocating function Rf_findVar(S:.xSD,?) data.table/src/dogroups.c:67
  [UP] unprotected variable BY while calling allocating function Rf_install data.table/src/dogroups.c:67
  [UP] unprotected variable GRP while calling allocating function Rf_findVar(S:.xSD,?) data.table/src/dogroups.c:67
  [UP] unprotected variable GRP while calling allocating function Rf_install data.table/src/dogroups.c:67
  [UP] unprotected variable N while calling allocating function Rf_findVar(S:.xSD,?) data.table/src/dogroups.c:67
  [UP] unprotected variable N while calling allocating function Rf_install data.table/src/dogroups.c:67
  [UP] unprotected variable SDall while calling allocating function Rf_findVar(S:.xSD,?) data.table/src/dogroups.c:67
  [UP] unprotected variable SDall while calling allocating function Rf_install data.table/src/dogroups.c:67
  [UP] unprotected variable iSD while calling allocating function Rf_findVar(S:.xSD,?) data.table/src/dogroups.c:67
  [UP] unprotected variable iSD while calling allocating function Rf_install data.table/src/dogroups.c:67
  [UP] unprotected variable BY while calling allocating function Rf_findVar(S:.I,?) data.table/src/dogroups.c:68
  [UP] unprotected variable BY while calling allocating function Rf_install data.table/src/dogroups.c:68
  [UP] unprotected variable GRP while calling allocating function Rf_findVar(S:.I,?) data.table/src/dogroups.c:68
  [UP] unprotected variable GRP while calling allocating function Rf_install data.table/src/dogroups.c:68
  [UP] unprotected variable N while calling allocating function Rf_findVar(S:.I,?) data.table/src/dogroups.c:68
  [UP] unprotected variable N while calling allocating function Rf_install data.table/src/dogroups.c:68
  [UP] unprotected variable SDall while calling allocating function Rf_findVar(S:.I,?) data.table/src/dogroups.c:68
  [UP] unprotected variable SDall while calling allocating function Rf_install data.table/src/dogroups.c:68
  [UP] unprotected variable iSD while calling allocating function Rf_findVar(S:.I,?) data.table/src/dogroups.c:68
  [UP] unprotected variable iSD while calling allocating function Rf_install data.table/src/dogroups.c:68
  [UP] unprotected variable xSD while calling allocating function Rf_findVar(S:.I,?) data.table/src/dogroups.c:68
  [UP] unprotected variable xSD while calling allocating function Rf_install data.table/src/dogroups.c:68
  [UP] unprotected variable BY while calling allocating function Rf_getAttrib(?,S:names) data.table/src/dogroups.c:70
  [UP] unprotected variable GRP while calling allocating function Rf_getAttrib(?,S:names) data.table/src/dogroups.c:70
  [UP] unprotected variable I while calling allocating function Rf_getAttrib(?,S:names) data.table/src/dogroups.c:70
  [UP] unprotected variable N while calling allocating function Rf_getAttrib(?,S:names) data.table/src/dogroups.c:70
  [UP] unprotected variable SDall while calling allocating function Rf_getAttrib(?,S:names) data.table/src/dogroups.c:70
  [UP] unprotected variable iSD while calling allocating function Rf_getAttrib(?,S:names) data.table/src/dogroups.c:70
  [UP] unprotected variable xSD while calling allocating function Rf_getAttrib(?,S:names) data.table/src/dogroups.c:70
  [UP] allocating function Rf_getAttrib(?,S:names) may destroy its unprotected argument (SDall <arg 1>), which is later used. data.table/src/dogroups.c:81
  [UP] unprotected variable BY while calling allocating function Rf_getAttrib(?,S:names) data.table/src/dogroups.c:81
  [UP] unprotected variable GRP while calling allocating function Rf_getAttrib(?,S:names) data.table/src/dogroups.c:81
  [UP] unprotected variable I while calling allocating function Rf_getAttrib(?,S:names) data.table/src/dogroups.c:81
  [UP] unprotected variable N while calling allocating function Rf_getAttrib(?,S:names) data.table/src/dogroups.c:81
  [UP] unprotected variable dtnames while calling allocating function Rf_getAttrib(?,S:names) data.table/src/dogroups.c:81
  [UP] unprotected variable iSD while calling allocating function Rf_getAttrib(?,S:names) data.table/src/dogroups.c:81
  [UP] unprotected variable xSD while calling allocating function Rf_getAttrib(?,S:names) data.table/src/dogroups.c:81
  [UP] unprotected variable BY while calling allocating function R_alloc data.table/src/dogroups.c:83
  [UP] unprotected variable GRP while calling allocating function R_alloc data.table/src/dogroups.c:83
  [UP] unprotected variable I while calling allocating function R_alloc data.table/src/dogroups.c:83
  [UP] unprotected variable N while calling allocating function R_alloc data.table/src/dogroups.c:83
  [UP] unprotected variable SDall while calling allocating function R_alloc data.table/src/dogroups.c:83
  [UP] unprotected variable dtnames while calling allocating function R_alloc data.table/src/dogroups.c:83
  [UP] unprotected variable iSD while calling allocating function R_alloc data.table/src/dogroups.c:83
  [UP] unprotected variable xSD while calling allocating function R_alloc data.table/src/dogroups.c:83
  [UP] allocating function Rf_getAttrib(?,S:names) may destroy its unprotected argument (xSD <arg 1>), which is later used. data.table/src/dogroups.c:95
  [UP] unprotected variable BY while calling allocating function Rf_getAttrib(?,S:names) data.table/src/dogroups.c:95
  [UP] unprotected variable GRP while calling allocating function Rf_getAttrib(?,S:names) data.table/src/dogroups.c:95
  [UP] unprotected variable I while calling allocating function Rf_getAttrib(?,S:names) data.table/src/dogroups.c:95
  [UP] unprotected variable N while calling allocating function Rf_getAttrib(?,S:names) data.table/src/dogroups.c:95
  [UP] unprotected variable SDall while calling allocating function Rf_getAttrib(?,S:names) data.table/src/dogroups.c:95
  [UP] unprotected variable dtnames while calling allocating function Rf_getAttrib(?,S:names) data.table/src/dogroups.c:95
  [UP] unprotected variable iSD while calling allocating function Rf_getAttrib(?,S:names) data.table/src/dogroups.c:95
  [UP] unprotected variable BY while calling allocating function R_alloc data.table/src/dogroups.c:97
  [UP] unprotected variable GRP while calling allocating function R_alloc data.table/src/dogroups.c:97
  [UP] unprotected variable I while calling allocating function R_alloc data.table/src/dogroups.c:97
  [UP] unprotected variable N while calling allocating function R_alloc data.table/src/dogroups.c:97
  [UP] unprotected variable SDall while calling allocating function R_alloc data.table/src/dogroups.c:97
  [UP] unprotected variable dtnames while calling allocating function R_alloc data.table/src/dogroups.c:97
  [UP] unprotected variable iSD while calling allocating function R_alloc data.table/src/dogroups.c:97
  [UP] unprotected variable xSD while calling allocating function R_alloc data.table/src/dogroups.c:97
  [UP] unprotected variable BY while calling allocating function Rf_allocVector data.table/src/dogroups.c:107
  [UP] unprotected variable GRP while calling allocating function Rf_allocVector data.table/src/dogroups.c:107
  [UP] unprotected variable I while calling allocating function Rf_allocVector data.table/src/dogroups.c:107
  [UP] unprotected variable N while calling allocating function Rf_allocVector data.table/src/dogroups.c:107
  [UP] unprotected variable SDall while calling allocating function Rf_allocVector data.table/src/dogroups.c:107
  [UP] unprotected variable dtnames while calling allocating function Rf_allocVector data.table/src/dogroups.c:107
  [UP] unprotected variable iSD while calling allocating function Rf_allocVector data.table/src/dogroups.c:107
  [UP] unprotected variable xSD while calling allocating function Rf_allocVector data.table/src/dogroups.c:107
  [UP] unprotected variable BY while calling allocating function Rf_defineVar data.table/src/dogroups.c:239
  [UP] unprotected variable GRP while calling allocating function Rf_defineVar data.table/src/dogroups.c:239
  [UP] unprotected variable I while calling allocating function Rf_defineVar data.table/src/dogroups.c:239
  [UP] unprotected variable N while calling allocating function Rf_defineVar data.table/src/dogroups.c:239
  [UP] unprotected variable SDall while calling allocating function Rf_defineVar data.table/src/dogroups.c:239
  [UP] unprotected variable dtnames while calling allocating function Rf_defineVar data.table/src/dogroups.c:239
  [UP] unprotected variable iSD while calling allocating function Rf_defineVar data.table/src/dogroups.c:239
  [UP] unprotected variable xSD while calling allocating function Rf_defineVar data.table/src/dogroups.c:239
  [UP] unprotected variable BY while calling allocating function Rf_defineVar data.table/src/dogroups.c:244
  [UP] unprotected variable GRP while calling allocating function Rf_defineVar data.table/src/dogroups.c:244
  [UP] unprotected variable I while calling allocating function Rf_defineVar data.table/src/dogroups.c:244
  [UP] unprotected variable N while calling allocating function Rf_defineVar data.table/src/dogroups.c:244
  [UP] unprotected variable SDall while calling allocating function Rf_defineVar data.table/src/dogroups.c:244
  [UP] unprotected variable dtnames while calling allocating function Rf_defineVar data.table/src/dogroups.c:244
  [UP] unprotected variable iSD while calling allocating function Rf_defineVar data.table/src/dogroups.c:244
  [UP] unprotected variable xSD while calling allocating function Rf_defineVar data.table/src/dogroups.c:244
  [UP] unprotected variable BY while calling allocating function Rf_eval data.table/src/dogroups.c:248
  [UP] unprotected variable GRP while calling allocating function Rf_eval data.table/src/dogroups.c:248
  [UP] unprotected variable I while calling allocating function Rf_eval data.table/src/dogroups.c:248
  [UP] unprotected variable N while calling allocating function Rf_eval data.table/src/dogroups.c:248
  [UP] unprotected variable SDall while calling allocating function Rf_eval data.table/src/dogroups.c:248
  [UP] unprotected variable dtnames while calling allocating function Rf_eval data.table/src/dogroups.c:248
  [UP] unprotected variable iSD while calling allocating function Rf_eval data.table/src/dogroups.c:248
  [UP] unprotected variable xSD while calling allocating function Rf_eval data.table/src/dogroups.c:248
  [UP] unprotected variable BY while calling allocating function allocNAVector data.table/src/dogroups.c:284
  [UP] unprotected variable GRP while calling allocating function allocNAVector data.table/src/dogroups.c:284
  [UP] unprotected variable I while calling allocating function allocNAVector data.table/src/dogroups.c:284
  [UP] unprotected variable N while calling allocating function allocNAVector data.table/src/dogroups.c:284
  [UP] unprotected variable SDall while calling allocating function allocNAVector data.table/src/dogroups.c:284
  [UP] unprotected variable dtnames while calling allocating function allocNAVector data.table/src/dogroups.c:284
  [UP] unprotected variable iSD while calling allocating function allocNAVector data.table/src/dogroups.c:284
  [UP] unprotected variable xSD while calling allocating function allocNAVector data.table/src/dogroups.c:284
  [UP] unprotected variable BY while calling allocating function Rf_warning data.table/src/dogroups.c:299
  [UP] unprotected variable GRP while calling allocating function Rf_warning data.table/src/dogroups.c:299
  [UP] unprotected variable I while calling allocating function Rf_warning data.table/src/dogroups.c:299
  [UP] unprotected variable N while calling allocating function Rf_warning data.table/src/dogroups.c:299
  [UP] unprotected variable SDall while calling allocating function Rf_warning data.table/src/dogroups.c:299
  [UP] unprotected variable dtnames while calling allocating function Rf_warning data.table/src/dogroups.c:299
  [UP] unprotected variable iSD while calling allocating function Rf_warning data.table/src/dogroups.c:299
  [UP] unprotected variable xSD while calling allocating function Rf_warning data.table/src/dogroups.c:299
  [UP] unprotected variable BY while calling allocating function Rf_warning data.table/src/dogroups.c:302
  [UP] unprotected variable GRP while calling allocating function Rf_warning data.table/src/dogroups.c:302
  [UP] unprotected variable I while calling allocating function Rf_warning data.table/src/dogroups.c:302
  [UP] unprotected variable N while calling allocating function Rf_warning data.table/src/dogroups.c:302
  [UP] unprotected variable SDall while calling allocating function Rf_warning data.table/src/dogroups.c:302
  [UP] unprotected variable dtnames while calling allocating function Rf_warning data.table/src/dogroups.c:302
  [UP] unprotected variable iSD while calling allocating function Rf_warning data.table/src/dogroups.c:302
  [UP] unprotected variable xSD while calling allocating function Rf_warning data.table/src/dogroups.c:302
  [UP] unprotected variable BY while calling allocating function memrecycle data.table/src/dogroups.c:304
  [UP] unprotected variable GRP while calling allocating function memrecycle data.table/src/dogroups.c:304
  [UP] unprotected variable I while calling allocating function memrecycle data.table/src/dogroups.c:304
  [UP] unprotected variable N while calling allocating function memrecycle data.table/src/dogroups.c:304
  [UP] unprotected variable SDall while calling allocating function memrecycle data.table/src/dogroups.c:304
  [UP] unprotected variable dtnames while calling allocating function memrecycle data.table/src/dogroups.c:304
  [UP] unprotected variable iSD while calling allocating function memrecycle data.table/src/dogroups.c:304
  [UP] unprotected variable xSD while calling allocating function memrecycle data.table/src/dogroups.c:304
  [UP] unprotected variable BY while calling allocating function Rf_copyMostAttrib data.table/src/dogroups.c:306
  [UP] unprotected variable GRP while calling allocating function Rf_copyMostAttrib data.table/src/dogroups.c:306
  [UP] unprotected variable I while calling allocating function Rf_copyMostAttrib data.table/src/dogroups.c:306
  [UP] unprotected variable N while calling allocating function Rf_copyMostAttrib data.table/src/dogroups.c:306
  [UP] unprotected variable SDall while calling allocating function Rf_copyMostAttrib data.table/src/dogroups.c:306
  [UP] unprotected variable dtnames while calling allocating function Rf_copyMostAttrib data.table/src/dogroups.c:306
  [UP] unprotected variable iSD while calling allocating function Rf_copyMostAttrib data.table/src/dogroups.c:306
  [UP] unprotected variable xSD while calling allocating function Rf_copyMostAttrib data.table/src/dogroups.c:306
  [UP] unprotected variable I while calling allocating function Rprintf data.table/src/dogroups.c:443
  [UP] unprotected variable SDall while calling allocating function Rprintf data.table/src/dogroups.c:443
  [UP] unprotected variable I while calling allocating function growVector data.table/src/dogroups.c:444
  [UP] unprotected variable SDall while calling allocating function growVector data.table/src/dogroups.c:444

Function preprocess
  [PB] has possible protection stack imbalance data.table/src/fmelt.c:354

Function set_diff
  [UP] unprotected variable xmatch while calling allocating function R_alloc data.table/src/fmelt.c:25

Function shallow
  [UP] unprotected variable names while calling allocating function Rf_allocVector data.table/src/assign.c:161

Function userOverride
  [PB] has possible protection stack imbalance data.table/src/freadR.c:312

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions