CRAN Package Check Results for Package casen

Last updated on 2022-09-15 07:50:45 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.2.1 12.59 162.73 175.32 ERROR
r-devel-linux-x86_64-debian-gcc 0.2.1 9.67 120.57 130.24 OK
r-devel-linux-x86_64-fedora-clang 0.2.1 224.15 NOTE
r-devel-linux-x86_64-fedora-gcc 0.2.1 222.79 NOTE
r-devel-windows-x86_64 0.2.1 20.00 180.00 200.00 OK
r-patched-linux-x86_64 0.2.1 9.00 152.95 161.95 OK
r-release-linux-x86_64 0.2.1 8.85 151.63 160.48 OK
r-release-macos-arm64 0.2.1 61.00 NOTE
r-release-macos-x86_64 0.2.1 81.00 NOTE
r-release-windows-x86_64 0.2.1 21.00 184.00 205.00 OK
r-oldrel-macos-arm64 0.2.1 62.00 NOTE
r-oldrel-macos-x86_64 0.2.1 82.00 NOTE
r-oldrel-windows-ix86+x86_64 0.2.1 26.00 179.00 205.00 OK

Check Details

Version: 0.2.1
Check: tests
Result: ERROR
     Running 'testthat.R' [21s/25s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(casen)
     >
     > test_check("casen")
     [ FAIL 1 | WARN 2 | SKIP 2 | PASS 2 ]
    
     == Skipped tests ===============================================================
     * On CRAN (2)
    
     == Failed tests ================================================================
     -- Failure (test-inference.R:7:3): modelo_lineal_generalizado works properly ---
     `str\(est\)` does not match "List of 33".
     Actual value: "List of 33\\n \$ coefficients : Named num \[1:3\] 55655085 -3861 -58714\\n \.\.- attr\(\*, "names"\)= chr \[1:3\] "\(Intercept\)" "comuna" "sexo"\\n \$ residuals : Named num \[1:8055\] -137765 -137765 -137765 -814257 -872971 \.\.\.\\n \.\.- attr\(\*, "label"\)= chr "Ingreso total del hogar corregido"\\n \.\.- attr\(\*, "format\.spss"\)= chr "F9\.0"\\n \.\.- attr\(\*, "names"\)= chr \[1:8055\] "1" "2" "3" "4" \.\.\.\\n \$ fitted\.values : Named num \[1:8055\] 1097530 1097530 1097530 1097530 1156244 \.\.\.\\n \.\.- attr\(\*, "names"\)= chr \[1:8055\] "1" "2" "3" "4" \.\.\.\\n \$ effects : Named num \[1:8055\] -93011337 -14161124 2630482 -1353026 -1457023 \.\.\.\\n \.\.- attr\(\*, "names"\)= chr \[1:8055\] "\(Intercept\)" "comuna" "sexo" "" \.\.\.\\n \$ R : num \[1:3, 1:3\] -8\.97e\+01 0\.00 0\.00 -1\.27e\+06 3\.67e\+03 \.\.\.\\n \.\.- attr\(\*, "dimnames"\)=List of 2\\n \.\. \.\.\$ : chr \[1:3\] "\(Intercept\)" "comuna" "sexo"\\n \.\. \.\.\$ : chr \[1:3\] "\(Intercept\)" "comuna" "sexo"\\n \$ rank : int 3\\n \$ qr :List of 5\\n \.\.\$ qr : num \[1:8055, 1:3\] -89\.7497 0\.0132 0\.0132 0\.0186 0\.0186 \.\.\.\\n \.\. \.\.- attr\(\*, "dimnames"\)=List of 2\\n \.\. \.\. \.\.\$ : chr \[1:8055\] "1" "2" "3" "4" \.\.\.\\n \.\. \.\. \.\.\$ : chr \[1:3\] "\(Intercept\)" "comuna" "sexo"\\n \.\.\$ rank : int 3\\n \.\.\$ qraux: num \[1:3\] 1\.01 1\.01 1\.01\\n \.\.\$ pivot: int \[1:3\] 1 2 3\\n \.\.\$ tol : num 1e-11\\n \.\.- attr\(\*, "class"\)= chr "qr"\\n \$ family :List of 11\\n \.\.\$ family : chr "gaussian"\\n \.\.\$ link : chr "identity"\\n \.\.\$ linkfun :function \(mu\) \\n \.\.\$ linkinv :function \(eta\) \\n \.\.\$ variance :function \(mu\) \\n \.\.\$ dev\.resids:function \(y, mu, wt\) \\n \.\.\$ aic :function \(y, n, mu, wt, dev\) \\n \.\.\$ mu\.eta :function \(eta\) \\n \.\.\$ initialize: expression\(\{ n <- rep\.int\(1, nobs\) if \(is\.null\(etastart\) && is\.null\(start\) && is\.null\(mustart\) && \(\(family\$link\| __truncated__\\n \.\.\$ validmu :function \(mu\) \\n \.\.\$ valideta :function \(eta\) \\n \.\.- attr\(\*, "class"\)= chr "family"\\n \$ linear\.predictors: Named num \[1:8055\] 1097530 1097530 1097530 1097530 1156244 \.\.\.\\n \.\.- attr\(\*, "names"\)= chr \[1:8055\] "1" "2" "3" "4" \.\.\.\\n \$ deviance : num 1\.2e\+16\\n \$ aic : num 249601\\n \$ null\.deviance : num 1\.22e\+16\\n \$ iter : int 2\\n \$ weights : Named num \[1:8055\] 1\.41 1\.41 1\.41 2\.79 2\.79 \.\.\.\\n \.\.- attr\(\*, "names"\)= chr \[1:8055\] "1" "2" "3" "4" \.\.\.\\n \$ prior\.weights : Named num \[1:8055\] 1\.41 1\.41 1\.41 2\.79 2\.79 \.\.\.\\n \.\.- attr\(\*, "names"\)= chr \[1:8055\] "1" "2" "3" "4" \.\.\.\\n \$ df\.residual : num 53\\n \$ df\.null : int 8054\\n \$ y : Named num \[1:8055\] 959765 959765 959765 283273 283273 \.\.\.\\n \.\.- attr\(\*, "label"\)= chr "Ingreso total del hogar corregido"\\n \.\.- attr\(\*, "format\.spss"\)= chr "F9\.0"\\n \.\.- attr\(\*, "names"\)= chr \[1:8055\] "1" "2" "3" "4" \.\.\.\\n \$ converged : logi TRUE\\n \$ boundary : logi FALSE\\n \$ model :'data\.frame':\\t8055 obs\. of 4 variables:\\n \.\.\$ ytotcorh : num \[1:8055\] 959765 959765 959765 283273 283273 \.\.\.\\n \.\. \.\.- attr\(\*, "label"\)= chr "Ingreso total del hogar corregido"\\n \.\. \.\.- attr\(\*, "format\.spss"\)= chr "F9\.0"\\n \.\.\$ comuna : 'haven_labelled' num \[1:8055\] 14101 14101 14101 14101 14101 \.\.\.\\n \.\. \.\.- attr\(\*, "label"\)= chr "Comuna"\\n \.\. \.\.- attr\(\*, "labels"\)= Named num \[1:325\] 1101 1107 1401 1402 1404 \.\.\.\\n \.\. \.\. \.\.- attr\(\*, "names"\)= chr \[1:325\] "Iquique" "Alto Hospicio" "Pozo Almonte" "Cami\\xf1a" \.\.\.\\n \.\.\$ sexo : 'haven_labelled' num \[1:8055\] 2 2 2 2 1 2 2 2 2 1 \.\.\.\\n \.\. \.\.- attr\(\*, "label"\)= chr "Sexo"\\n \.\. \.\.- attr\(\*, "labels"\)= Named num \[1:2\] 1 2\\n \.\. \.\. \.\.- attr\(\*, "names"\)= chr \[1:2\] "Hombre" "Mujer"\\n \.\.\$ \(weights\): Named num \[1:8055\] 1\.41 1\.41 1\.41 2\.79 2\.79 \.\.\.\\n \.\. \.\.- attr\(\*, "names"\)= chr \[1:8055\] "1" "2" "3" "4" \.\.\.\\n \.\.- attr\(\*, "terms"\)=Classes 'terms', 'formula' language ytotcorh ~ comuna \+ sexo\\n \.\. \.\. \.\.- attr\(\*, "variables"\)= language list\(ytotcorh, comuna, sexo\)\\n \.\. \.\. \.\.- attr\(\*, "factors"\)= int \[1:3, 1:2\] 0 1 0 0 0 1\\n \.\. \.\. \.\. \.\.- attr\(\*, "dimnames"\)=List of 2\\n \.\. \.\. \.\. \.\. \.\.\$ : chr \[1:3\] "ytotcorh" "comuna" "sexo"\\n \.\. \.\. \.\. \.\. \.\.\$ : chr \[1:2\] "comuna" "sexo"\\n \.\. \.\. \.\.- attr\(\*, "term\.labels"\)= chr \[1:2\] "comuna" "sexo"\\n \.\. \.\. \.\.- attr\(\*, "order"\)= int \[1:2\] 1 1\\n \.\. \.\. \.\.- attr\(\*, "intercept"\)= int 1\\n \.\. \.\. \.\.- attr\(\*, "response"\)= int 1\\n \.\. \.\. \.\.- attr\(\*, "\.Environment"\)=<environment: 0x556e63cf4580> \\n \.\. \.\. \.\.- attr\(\*, "predvars"\)= language list\(ytotcorh, comuna, sexo\)\\n \.\. \.\. \.\.- attr\(\*, "dataClasses"\)= Named chr \[1:4\] "numeric" "numeric" "numeric" "numeric"\\n \.\. \.\. \.\. \.\.- attr\(\*, "names"\)= chr \[1:4\] "ytotcorh" "comuna" "sexo" "\(weights\)"\\n \$ call : language svyglm\(formula = stats::as\.formula\(modelo\), design = disenio\$disenio\)\\n \$ formula :Class 'formula' language ytotcorh ~ comuna \+ sexo\\n \.\. \.\.- attr\(\*, "\.Environment"\)=<environment: 0x556e63cf4580> \\n \$ terms :Classes 'terms', 'formula' language ytotcorh ~ comuna \+ sexo\\n \.\. \.\.- attr\(\*, "variables"\)= language list\(ytotcorh, comuna, sexo\)\\n \.\. \.\.- attr\(\*, "factors"\)= int \[1:3, 1:2\] 0 1 0 0 0 1\\n \.\. \.\. \.\.- attr\(\*, "dimnames"\)=List of 2\\n \.\. \.\. \.\. \.\.\$ : chr \[1:3\] "ytotcorh" "comuna" "sexo"\\n \.\. \.\. \.\. \.\.\$ : chr \[1:2\] "comuna" "sexo"\\n \.\. \.\.- attr\(\*, "term\.labels"\)= chr \[1:2\] "comuna" "sexo"\\n \.\. \.\.- attr\(\*, "order"\)= int \[1:2\] 1 1\\n \.\. \.\.- attr\(\*, "intercept"\)= int 1\\n \.\. \.\.- attr\(\*, "response"\)= int 1\\n \.\. \.\.- attr\(\*, "\.Environment"\)=<environment: 0x556e63cf4580> \\n \.\. \.\.- attr\(\*, "predvars"\)= language list\(ytotcorh, comuna, sexo\)\\n \.\. \.\.- attr\(\*, "dataClasses"\)= Named chr \[1:4\] "numeric" "numeric" "numeric" "numeric"\\n \.\. \.\. \.\.- attr\(\*, "names"\)= chr \[1:4\] "ytotcorh" "comuna" "sexo" "\(weights\)"\\n \$ data : tibble \[8,055 x 7\] \(S3: tbl_df/tbl/data\.frame\)\\n \.\.\$ ytotcorh : num \[1:8055\] 959765 959765 959765 283273 283273 \.\.\.\\n \.\. \.\.- attr\(\*, "label"\)= chr "Ingreso total del hogar corregido"\\n \.\. \.\.- attr\(\*, "format\.spss"\)= chr "F9\.0"\\n \.\.\$ comuna : 'haven_labelled' num \[1:8055\] 14101 14101 14101 14101 14101 \.\.\.\\n \.\. \.\.- attr\(\*, "label"\)= chr "Comuna"\\n \.\. \.\.- attr\(\*, "labels"\)= Named num \[1:325\] 1101 1107 1401 1402 1404 \.\.\.\\n \.\. \.\. \.\.- attr\(\*, "names"\)= chr \[1:325\] "Iquique" "Alto Hospicio" "Pozo Almonte" "Cami\\xf1a" \.\.\.\\n \.\.\$ sexo : 'haven_labelled' num \[1:8055\] 2 2 2 2 1 2 2 2 2 1 \.\.\.\\n \.\. \.\.- attr\(\*, "label"\)= chr "Sexo"\\n \.\. \.\.- attr\(\*, "labels"\)= Named num \[1:2\] 1 2\\n \.\. \.\. \.\.- attr\(\*, "names"\)= chr \[1:2\] "Hombre" "Mujer"\\n \.\.\$ expc : num \[1:8055\] 53 53 53 105 105 105 105 105 105 105 \.\.\.\\n \.\. \.\.- attr\(\*, "label"\)= chr "Factor de Expansion Comunal"\\n \.\. \.\.- attr\(\*, "format\.spss"\)= chr "F10\.0"\\n \.\.\$ varunit : num \[1:8055\] 1\.41e\+10 1\.41e\+10 1\.41e\+10 1\.41e\+10 1\.41e\+10 \.\.\.\\n \.\. \.\.- attr\(\*, "label"\)= chr "Conglomerados de Varianza"\\n \.\. \.\.- attr\(\*, "format\.spss"\)= chr "F10\.0"\\n \.\.\$ varstrat : num \[1:8055\] 141283 141283 141283 141283 141283 \.\.\.\\n \.\. \.\.- attr\(\*, "label"\)= chr "Estratos de Varianza"\\n \.\. \.\.- attr\(\*, "format\.spss"\)= chr "F10\.0"\\n \.\.\$ \.survey\.prob\.weights: Named num \[1:8055\] 1\.41 1\.41 1\.41 2\.79 2\.79 \.\.\.\\n \.\. \.\.- attr\(\*, "names"\)= chr \[1:8055\] "1" "2" "3" "4" \.\.\.\\n \$ offset : NULL\\n \$ control :List of 3\\n \.\.\$ epsilon: num 1e-08\\n \.\.\$ maxit : num 25\\n \.\.\$ trace : logi FALSE\\n \$ method : chr "glm\.fit"\\n \$ contrasts : NULL\\n \$ xlevels : Named list\(\)\\n \$ naive\.cov : num \[1:3, 1:3\] 1\.48e\+01 -1\.05e-03 -1\.23e-03 -1\.05e-03 7\.42e-08 \.\.\.\\n \.\.- attr\(\*, "dimnames"\)=List of 2\\n \.\. \.\.\$ : chr \[1:3\] "\(Intercept\)" "comuna" "sexo"\\n \.\. \.\.\$ : chr \[1:3\] "\(Intercept\)" "comuna" "sexo"\\n \$ cov\.unscaled : num \[1:3, 1:3\] 1\.93e\+14 -1\.36e\+10 -1\.36e\+11 -1\.36e\+10 9\.55e\+05 \.\.\.\\n \.\.- attr\(\*, "dimnames"\)=List of 2\\n \.\. \.\.\$ : chr \[1:3\] "\(Intercept\)" "comuna" "sexo"\\n \.\. \.\.\$ : chr \[1:3\] "\(Intercept\)" "comuna" "sexo"\\n \$ survey\.design :List of 9\\n \.\.\$ cluster :'data\.frame':\\t8055 obs\. of 1 variable:\\n \.\. \.\.\$ varunit: num \[1:8055\] 1\.41e\+10 1\.41e\+10 1\.41e\+10 1\.41e\+10 1\.41e\+10 \.\.\.\\n \.\. \.\. \.\.- attr\(\*, "label"\)= chr "Conglomerados de Varianza"\\n \.\. \.\. \.\.- attr\(\*, "format\.spss"\)= chr "F10\.0"\\n \.\. \.\.- attr\(\*, "terms"\)=Classes 'terms', 'formula' language ~varunit\\n \.\. \.\. \.\. \.\.- attr\(\*, "variables"\)= language list\(varunit\)\\n \.\. \.\. \.\. \.\.- attr\(\*, "factors"\)= int \[1, 1\] 1\\n \.\. \.\. \.\. \.\. \.\.- attr\(\*, "dimnames"\)=List of 2\\n \.\. \.\. \.\. \.\. \.\. \.\.\$ : chr "varunit"\\n \.\. \.\. \.\. \.\. \.\. \.\.\$ : chr "varunit"\\n \.\. \.\. \.\. \.\.- attr\(\*, "term\.labels"\)= chr "varunit"\\n \.\. \.\. \.\. \.\.- attr\(\*, "order"\)= int 1\\n \.\. \.\. \.\. \.\.- attr\(\*, "intercept"\)= int 1\\n \.\. \.\. \.\. \.\.- attr\(\*, "response"\)= int 0\\n \.\. \.\. \.\. \.\.- attr\(\*, "\.Environment"\)=<environment: 0x556e5fb66190> \\n \.\. \.\. \.\. \.\.- attr\(\*, "predvars"\)= language list\(varunit\)\\n \.\. \.\. \.\. \.\.- attr\(\*, "dataClasses"\)= Named chr "numeric"\\n \.\. \.\. \.\. \.\. \.\.- attr\(\*, "names"\)= chr "varunit"\\n \.\.\$ strata :'data\.frame':\\t8055 obs\. of 1 variable:\\n \.\. \.\.\$ varstrat: num \[1:8055\] 141283 141283 141283 141283 141283 \.\.\.\\n \.\. \.\. \.\.- attr\(\*, "label"\)= chr "Estratos de Varianza"\\n \.\. \.\. \.\.- attr\(\*, "format\.spss"\)= chr "F10\.0"\\n \.\. \.\.- attr\(\*, "terms"\)=Classes 'terms', 'formula' language ~varstrat\\n \.\. \.\. \.\. \.\.- attr\(\*, "variables"\)= language list\(varstrat\)\\n \.\. \.\. \.\. \.\.- attr\(\*, "factors"\)= int \[1, 1\] 1\\n \.\. \.\. \.\. \.\. \.\.- attr\(\*, "dimnames"\)=List of 2\\n \.\. \.\. \.\. \.\. \.\. \.\.\$ : chr "varstrat"\\n \.\. \.\. \.\. \.\. \.\. \.\.\$ : chr "varstrat"\\n \.\. \.\. \.\. \.\.- attr\(\*, "term\.labels"\)= chr "varstrat"\\n \.\. \.\. \.\. \.\.- attr\(\*, "order"\)= int 1\\n \.\. \.\. \.\. \.\.- attr\(\*, "intercept"\)= int 1\\n \.\. \.\. \.\. \.\.- attr\(\*, "response"\)= int 0\\n \.\. \.\. \.\. \.\.- attr\(\*, "\.Environment"\)=<environment: 0x556e5fbea300> \\n \.\. \.\. \.\. \.\.- attr\(\*, "predvars"\)= language list\(varstrat\)\\n \.\. \.\. \.\. \.\.- attr\(\*, "dataClasses"\)= Named chr "numeric"\\n \.\. \.\. \.\. \.\. \.\.- attr\(\*, "names"\)= chr "varstrat"\\n \.\.\$ has\.strata: logi TRUE\\n \.\.\$ prob : Named num \[1:8055\] 0\.01887 0\.01887 0\.01887 0\.00952 0\.00952 \.\.\.\\n \.\. \.\.- attr\(\*, "names"\)= chr \[1:8055\] "1" "2" "3" "4" \.\.\.\\n \.\.\$ allprob :'data\.frame':\\t8055 obs\. of 1 variable:\\n \.\. \.\.\$ expc: num \[1:8055\] 0\.01887 0\.01887 0\.01887 0\.00952 0\.00952 \.\.\.\\n \.\.\$ call : 'quoteless_text' chr "Called via srvyr"\\n \.\.\$ variables : tibble \[8,055 x 6\] \(S3: tbl_df/tbl/data\.frame\)\\n \.\. \.\.\$ ytotcorh: num \[1:8055\] 959765 959765 959765 283273 283273 \.\.\.\\n \.\. \.\. \.\.- attr\(\*, "label"\)= chr "Ingreso total del hogar corregido"\\n \.\. \.\. \.\.- attr\(\*, "format\.spss"\)= chr "F9\.0"\\n \.\. \.\.\$ comuna : 'haven_labelled' num \[1:8055\] 14101 14101 14101 14101 14101 \.\.\.\\n \.\. \.\. \.\.- attr\(\*, "label"\)= chr "Comuna"\\n \.\. \.\. \.\.- attr\(\*, "labels"\)= Named num \[1:325\] 1101 1107 1401 1402 1404 \.\.\.\\n \.\. \.\. \.\. \.\.- attr\(\*, "names"\)= chr \[1:325\] "Iquique" "Alto Hospicio" "Pozo Almonte" "Cami\\xf1a" \.\.\.\\n \.\. \.\.\$ sexo : 'haven_labelled' num \[1:8055\] 2 2 2 2 1 2 2 2 2 1 \.\.\.\\n \.\. \.\. \.\.- attr\(\*, "label"\)= chr "Sexo"\\n \.\. \.\. \.\.- attr\(\*, "labels"\)= Named num \[1:2\] 1 2\\n \.\. \.\. \.\. \.\.- attr\(\*, "names"\)= chr \[1:2\] "Hombre" "Mujer"\\n \.\. \.\.\$ expc : num \[1:8055\] 53 53 53 105 105 105 105 105 105 105 \.\.\.\\n \.\. \.\. \.\.- attr\(\*, "label"\)= chr "Factor de Expansion Comunal"\\n \.\. \.\. \.\.- attr\(\*, "format\.spss"\)= chr "F10\.0"\\n \.\. \.\.\$ varunit : num \[1:8055\] 1\.41e\+10 1\.41e\+10 1\.41e\+10 1\.41e\+10 1\.41e\+10 \.\.\.\\n \.\. \.\. \.\.- attr\(\*, "label"\)= chr "Conglomerados de Varianza"\\n \.\. \.\. \.\.- attr\(\*, "format\.spss"\)= chr "F10\.0"\\n \.\. \.\.\$ varstrat: num \[1:8055\] 141283 141283 141283 141283 141283 \.\.\.\\n \.\. \.\. \.\.- attr\(\*, "label"\)= chr "Estratos de Varianza"\\n \.\. \.\. \.\.- attr\(\*, "format\.spss"\)= chr "F10\.0"\\n \.\.\$ fpc :List of 2\\n \.\. \.\.\$ popsize : NULL\\n \.\. \.\.\$ sampsize: int \[1:8055, 1\] 28 28 28 28 28 28 28 28 28 28 \.\.\.\\n \.\. \.\.- attr\(\*, "class"\)= chr "survey_fpc"\\n \.\.\$ pps : logi FALSE\\n \.\.- attr\(\*, "class"\)= chr \[1:3\] "tbl_svy" "survey\.design2" "survey\.design"\\n \.\.- attr\(\*, "survey_vars"\)=List of 5\\n \.\. \.\.\$ ids :List of 1\\n \.\. \.\. \.\.\$ : symbol varunit\\n \.\. \.\.\$ probs : NULL\\n \.\. \.\.\$ strata :List of 1\\n \.\. \.\. \.\.\$ : symbol varstrat\\n \.\. \.\.\$ fpc : NULL\\n \.\. \.\.\$ weights:List of 1\\n \.\. \.\. \.\.\$ : symbol expc\\n \.\. \.\.- attr\(\*, "class"\)= chr "survey_vars"\\n - attr\(\*, "class"\)= chr \[1:3\] "svyglm" "glm" "lm""
     Backtrace:
     x
     1. \-testthat::expect_output(str(est), "List of 33") at test-inference.R:7:2
     2. \-testthat::expect_match(...)
     3. \-testthat:::expect_match_(...)
    
     [ FAIL 1 | WARN 2 | SKIP 2 | PASS 2 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.2.1
Check: data for non-ASCII characters
Result: NOTE
     Note: found 73 marked UTF-8 strings
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-release-macos-arm64, r-release-macos-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64