CRAN Package Check Results for Package spqdep

Last updated on 2025-03-26 00:54:39 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.3.5 6.89 71.99 78.88 ERROR
r-devel-linux-x86_64-debian-gcc 0.1.3.5 4.33 49.43 53.76 ERROR
r-devel-linux-x86_64-fedora-clang 0.1.3.5 131.20 ERROR
r-devel-linux-x86_64-fedora-gcc 0.1.3.5 134.57 ERROR
r-devel-macos-arm64 0.1.3.5 116.00 OK
r-devel-macos-x86_64 0.1.3.5 220.00 NOTE
r-devel-windows-x86_64 0.1.3.5 9.00 96.00 105.00 ERROR
r-patched-linux-x86_64 0.1.3.5 7.40 68.81 76.21 ERROR
r-release-linux-x86_64 0.1.3.5 4.83 68.96 73.79 ERROR
r-release-macos-arm64 0.1.3.5 127.00 OK
r-release-macos-x86_64 0.1.3.5 220.00 OK
r-release-windows-x86_64 0.1.3.5 9.00 88.00 97.00 ERROR
r-oldrel-macos-arm64 0.1.3.5 OK
r-oldrel-macos-x86_64 0.1.3.5 230.00 OK
r-oldrel-windows-x86_64 0.1.3.5 10.00 102.00 112.00 ERROR

Check Details

Version: 0.1.3.5
Check: DESCRIPTION meta-information
Result: NOTE Missing dependency on R >= 4.1.0 because package code uses the pipe |> or function shorthand \(...) syntax added in R 4.1.0. File(s) using such syntax: ‘summary.spjctest.R’ ‘summary.spqtest.R’ 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-macos-x86_64, r-devel-windows-x86_64, r-patched-linux-x86_64

Version: 0.1.3.5
Check: examples
Result: ERROR Running examples in ‘spqdep-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: Q.map.test > ### Title: Compute the QE and QI tests of Equivalence and Independence > ### between maps > ### Aliases: Q.map.test > > ### ** Examples > > > # Case 1: > N <- 200 > cx <- runif(N) > cy <- runif(N) > x <- cbind(cx,cy) > listw <- spdep::nb2listw(spdep::knn2nb( + spdep::knearneigh(cbind(cx,cy), k = 4))) > p <- c(1/6, 3/6, 2/6) > rho = 0.5 > QY1 <- dgp.spq(p = p, listw = listw, rho = rho) > rho = 0.8 > QY2 <- dgp.spq(p = p, listw = listw, rho = rho) > dt = data.frame(QY1,QY2) > m = 3 > r = 1 > formula <- ~ QY1 + QY2 > control <- list(dtmaxknn = 10) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="combinations", control = control) > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QE = 274.46, df = 9, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QI = 69.398, df = 81, p-value = 0.8175 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > plot(qmap, ci=.6) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > plot(qmap[[1]]$mh) > summary(qmap[[1]]$mh) Characteristics of m-surrounding: Number of m-surrounding (R): 90 Length of m-surrounding (m): 3 Number no-symbolized observations: 12 List of no-symbolized observations: 8 62 66 69 80 85 117 122 130 146 191 199 List of the degree overlaping: There are 2 m-surrounding that have intersection with 0 m-surrounding There are 12 m-surrounding that have intersection with 1 m-surrounding There are 76 m-surrounding that have intersection with 2 m-surrounding Mean degree of overlaping: 1.8222 > > control <- list(dtmaxknn = 20) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="permutations", control = control) Warning in Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, : The ratio between the number of symbolized observations and the number of symbols is lower than 5. > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: permutations Ratio Symbolized observations/Num symbols = 3.44 data: QY1 and QY2 QE = 291.02, df = 26, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: permutations Ratio Symbolized observations/Num symbols = 3.44 data: QY1 and QY2 QI = 185.06, df = 676, p-value = 1 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > plot(qmap[[1]]$mh) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="combinations") > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9.9 data: QY1 and QY2 QE = 297.24, df = 9, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9.9 data: QY1 and QY2 QI = 73.315, df = 81, p-value = 0.7161 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > control <- list(dtmaxknn = 10) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="combinations", control = control) > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QE = 274.46, df = 9, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QI = 69.398, df = 81, p-value = 0.8175 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > > # Case 2: > data(provinces_spain) > # sf::sf_use_s2(FALSE) > m = 3 > r = 1 > > provinces_spain$Mal2Fml <- factor(provinces_spain$Mal2Fml > 100) > levels(provinces_spain$Mal2Fml) = c("men","woman") > provinces_spain$Coast <- factor(provinces_spain$Coast) > levels(provinces_spain$Coast) = c("no","yes") > formula <- ~ Coast + Mal2Fml > qmap <- Q.map.test(formula = formula, data = provinces_spain, m = m, r = r, + type ="combinations") Error in UseMethod("units") : no applicable method for 'units' applied to an object of class "NULL" Calls: Q.map.test -> m.surround -> rbind -> rbind -> units Execution halted Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.1.3.5
Check: re-building of vignette outputs
Result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘user-guide.Rmd’ using rmarkdown ** Processing: /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/spqdep.Rcheck/vign_test/spqdep/vignettes/user-guide_files/figure-html/unnamed-chunk-5-1.png 288x288 pixels, 3x8 bits/pixel, RGB Input IDAT size = 29426 bytes Input file size = 29540 bytes Trying: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 21692 zc = 9 zm = 8 zs = 1 f = 0 zc = 1 zm = 8 zs = 2 f = 0 zc = 9 zm = 8 zs = 3 f = 0 zc = 9 zm = 8 zs = 0 f = 5 zc = 9 zm = 8 zs = 1 f = 5 zc = 1 zm = 8 zs = 2 f = 5 zc = 9 zm = 8 zs = 3 f = 5 Selecting parameters: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 21692 Output IDAT size = 21692 bytes (7734 bytes decrease) Output file size = 21770 bytes (7770 bytes = 26.30% decrease) ** Processing: /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/spqdep.Rcheck/vign_test/spqdep/vignettes/user-guide_files/figure-html/plot mh-1.png 288x288 pixels, 3x8 bits/pixel, RGB Input IDAT size = 29819 bytes Input file size = 29933 bytes Trying: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 27237 zc = 9 zm = 8 zs = 1 f = 0 zc = 1 zm = 8 zs = 2 f = 0 zc = 9 zm = 8 zs = 3 f = 0 zc = 9 zm = 8 zs = 0 f = 5 zc = 9 zm = 8 zs = 1 f = 5 zc = 1 zm = 8 zs = 2 f = 5 zc = 9 zm = 8 zs = 3 f = 5 Selecting parameters: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 27237 Output IDAT size = 27237 bytes (2582 bytes decrease) Output file size = 27315 bytes (2618 bytes = 8.75% decrease) ** Processing: /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/spqdep.Rcheck/vign_test/spqdep/vignettes/user-guide_files/figure-html/plot mh prune-1.png 288x288 pixels, 3x8 bits/pixel, RGB Input IDAT size = 28643 bytes Input file size = 28757 bytes Trying: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 25872 zc = 9 zm = 8 zs = 1 f = 0 zc = 1 zm = 8 zs = 2 f = 0 zc = 9 zm = 8 zs = 3 f = 0 zc = 9 zm = 8 zs = 0 f = 5 zc = 9 zm = 8 zs = 1 f = 5 zc = 1 zm = 8 zs = 2 f = 5 zc = 9 zm = 8 zs = 3 f = 5 Selecting parameters: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 25872 Output IDAT size = 25872 bytes (2771 bytes decrease) Output file size = 25950 bytes (2807 bytes = 9.76% decrease) ** Processing: /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/spqdep.Rcheck/vign_test/spqdep/vignettes/user-guide_files/figure-html/unnamed-chunk-10-1.png 288x288 pixels, 3x8 bits/pixel, RGB Input IDAT size = 28047 bytes Input file size = 28161 bytes Trying: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 20445 zc = 9 zm = 8 zs = 1 f = 0 zc = 1 zm = 8 zs = 2 f = 0 zc = 9 zm = 8 zs = 3 f = 0 zc = 9 zm = 8 zs = 0 f = 5 zc = 9 zm = 8 zs = 1 f = 5 zc = 1 zm = 8 zs = 2 f = 5 zc = 9 zm = 8 zs = 3 f = 5 Selecting parameters: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 20445 Output IDAT size = 20445 bytes (7602 bytes decrease) Output file size = 20523 bytes (7638 bytes = 27.12% decrease) ** Processing: /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/spqdep.Rcheck/vign_test/spqdep/vignettes/user-guide_files/figure-html/unnamed-chunk-10-2.png 288x288 pixels, 3x8 bits/pixel, RGB Input IDAT size = 21558 bytes Input file size = 21660 bytes Trying: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 16165 zc = 9 zm = 8 zs = 1 f = 0 zc = 1 zm = 8 zs = 2 f = 0 zc = 9 zm = 8 zs = 3 f = 0 zc = 9 zm = 8 zs = 0 f = 5 zc = 9 zm = 8 zs = 1 f = 5 zc = 1 zm = 8 zs = 2 f = 5 zc = 9 zm = 8 zs = 3 f = 5 Selecting parameters: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 16165 Output IDAT size = 16165 bytes (5393 bytes decrease) Output file size = 16243 bytes (5417 bytes = 25.01% decrease) Quitting from user-guide.Rmd:272-279 [unnamed-chunk-11] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/rlang_error> Error in `UseMethod()`: ! no applicable method for 'units' applied to an object of class "NULL" --- Backtrace: ▆ 1. └─spqdep::Q.test(formula = f1, data = provinces_spain, m = 3, r = 1) 2. └─spqdep::m.surround(...) 3. └─base::rbind(mdtms, rowds) 4. └─units (local) rbind(deparse.level, ...) 5. └─base::units(dots[[1]]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'user-guide.Rmd' failed with diagnostics: no applicable method for 'units' applied to an object of class "NULL" --- failed re-building ‘user-guide.Rmd’ SUMMARY: processing the following file failed: ‘user-guide.Rmd’ Error: Vignette re-building failed. Execution halted Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.1.3.5
Check: examples
Result: ERROR Running examples in ‘spqdep-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: Q.map.test > ### Title: Compute the QE and QI tests of Equivalence and Independence > ### between maps > ### Aliases: Q.map.test > > ### ** Examples > > > # Case 1: > N <- 200 > cx <- runif(N) > cy <- runif(N) > x <- cbind(cx,cy) > listw <- spdep::nb2listw(spdep::knn2nb( + spdep::knearneigh(cbind(cx,cy), k = 4))) > p <- c(1/6, 3/6, 2/6) > rho = 0.5 > QY1 <- dgp.spq(p = p, listw = listw, rho = rho) > rho = 0.8 > QY2 <- dgp.spq(p = p, listw = listw, rho = rho) > dt = data.frame(QY1,QY2) > m = 3 > r = 1 > formula <- ~ QY1 + QY2 > control <- list(dtmaxknn = 10) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="combinations", control = control) > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QE = 271.79, df = 9, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QI = 61.154, df = 81, p-value = 0.951 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > plot(qmap, ci=.6) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > plot(qmap[[1]]$mh) > summary(qmap[[1]]$mh) Characteristics of m-surrounding: Number of m-surrounding (R): 90 Length of m-surrounding (m): 3 Number no-symbolized observations: 12 List of no-symbolized observations: 8 62 66 69 80 85 117 122 130 146 191 199 List of the degree overlaping: There are 2 m-surrounding that have intersection with 0 m-surrounding There are 12 m-surrounding that have intersection with 1 m-surrounding There are 76 m-surrounding that have intersection with 2 m-surrounding Mean degree of overlaping: 1.8222 > > control <- list(dtmaxknn = 20) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="permutations", control = control) Warning in Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, : The ratio between the number of symbolized observations and the number of symbols is lower than 5. > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: permutations Ratio Symbolized observations/Num symbols = 3.44 data: QY1 and QY2 QE = 294, df = 26, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: permutations Ratio Symbolized observations/Num symbols = 3.44 data: QY1 and QY2 QI = 231.78, df = 676, p-value = 1 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > plot(qmap[[1]]$mh) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="combinations") > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9.9 data: QY1 and QY2 QE = 291.67, df = 9, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9.9 data: QY1 and QY2 QI = 66.239, df = 81, p-value = 0.8821 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > control <- list(dtmaxknn = 10) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="combinations", control = control) > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QE = 271.79, df = 9, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QI = 61.154, df = 81, p-value = 0.951 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > > # Case 2: > data(provinces_spain) > # sf::sf_use_s2(FALSE) > m = 3 > r = 1 > > provinces_spain$Mal2Fml <- factor(provinces_spain$Mal2Fml > 100) > levels(provinces_spain$Mal2Fml) = c("men","woman") > provinces_spain$Coast <- factor(provinces_spain$Coast) > levels(provinces_spain$Coast) = c("no","yes") > formula <- ~ Coast + Mal2Fml > qmap <- Q.map.test(formula = formula, data = provinces_spain, m = m, r = r, + type ="combinations") Error in UseMethod("units") : no applicable method for 'units' applied to an object of class "NULL" Calls: Q.map.test -> m.surround -> rbind -> rbind -> units Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.1.3.5
Check: re-building of vignette outputs
Result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘user-guide.Rmd’ using rmarkdown ** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/spqdep.Rcheck/vign_test/spqdep/vignettes/user-guide_files/figure-html/unnamed-chunk-5-1.png 288x288 pixels, 3x8 bits/pixel, RGB Input IDAT size = 28921 bytes Input file size = 29035 bytes Trying: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 21315 zc = 9 zm = 8 zs = 1 f = 0 zc = 1 zm = 8 zs = 2 f = 0 zc = 9 zm = 8 zs = 3 f = 0 zc = 9 zm = 8 zs = 0 f = 5 zc = 9 zm = 8 zs = 1 f = 5 zc = 1 zm = 8 zs = 2 f = 5 zc = 9 zm = 8 zs = 3 f = 5 Selecting parameters: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 21315 Output IDAT size = 21315 bytes (7606 bytes decrease) Output file size = 21393 bytes (7642 bytes = 26.32% decrease) ** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/spqdep.Rcheck/vign_test/spqdep/vignettes/user-guide_files/figure-html/plot mh-1.png 288x288 pixels, 3x8 bits/pixel, RGB Input IDAT size = 29819 bytes Input file size = 29933 bytes Trying: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 27237 zc = 9 zm = 8 zs = 1 f = 0 zc = 1 zm = 8 zs = 2 f = 0 zc = 9 zm = 8 zs = 3 f = 0 zc = 9 zm = 8 zs = 0 f = 5 zc = 9 zm = 8 zs = 1 f = 5 zc = 1 zm = 8 zs = 2 f = 5 zc = 9 zm = 8 zs = 3 f = 5 Selecting parameters: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 27237 Output IDAT size = 27237 bytes (2582 bytes decrease) Output file size = 27315 bytes (2618 bytes = 8.75% decrease) ** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/spqdep.Rcheck/vign_test/spqdep/vignettes/user-guide_files/figure-html/plot mh prune-1.png 288x288 pixels, 3x8 bits/pixel, RGB Input IDAT size = 28643 bytes Input file size = 28757 bytes Trying: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 25872 zc = 9 zm = 8 zs = 1 f = 0 zc = 1 zm = 8 zs = 2 f = 0 zc = 9 zm = 8 zs = 3 f = 0 zc = 9 zm = 8 zs = 0 f = 5 zc = 9 zm = 8 zs = 1 f = 5 zc = 1 zm = 8 zs = 2 f = 5 zc = 9 zm = 8 zs = 3 f = 5 Selecting parameters: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 25872 Output IDAT size = 25872 bytes (2771 bytes decrease) Output file size = 25950 bytes (2807 bytes = 9.76% decrease) ** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/spqdep.Rcheck/vign_test/spqdep/vignettes/user-guide_files/figure-html/unnamed-chunk-10-1.png 288x288 pixels, 3x8 bits/pixel, RGB Input IDAT size = 27919 bytes Input file size = 28033 bytes Trying: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 20348 zc = 9 zm = 8 zs = 1 f = 0 zc = 1 zm = 8 zs = 2 f = 0 zc = 9 zm = 8 zs = 3 f = 0 zc = 9 zm = 8 zs = 0 f = 5 zc = 9 zm = 8 zs = 1 f = 5 zc = 1 zm = 8 zs = 2 f = 5 zc = 9 zm = 8 zs = 3 f = 5 Selecting parameters: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 20348 Output IDAT size = 20348 bytes (7571 bytes decrease) Output file size = 20426 bytes (7607 bytes = 27.14% decrease) ** Processing: /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/spqdep.Rcheck/vign_test/spqdep/vignettes/user-guide_files/figure-html/unnamed-chunk-10-2.png 288x288 pixels, 3x8 bits/pixel, RGB Input IDAT size = 21282 bytes Input file size = 21384 bytes Trying: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 15938 zc = 9 zm = 8 zs = 1 f = 0 zc = 1 zm = 8 zs = 2 f = 0 zc = 9 zm = 8 zs = 3 f = 0 zc = 9 zm = 8 zs = 0 f = 5 zc = 9 zm = 8 zs = 1 f = 5 zc = 1 zm = 8 zs = 2 f = 5 zc = 9 zm = 8 zs = 3 f = 5 Selecting parameters: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 15938 Output IDAT size = 15938 bytes (5344 bytes decrease) Output file size = 16016 bytes (5368 bytes = 25.10% decrease) Quitting from user-guide.Rmd:272-279 [unnamed-chunk-11] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/rlang_error> Error in `UseMethod()`: ! no applicable method for 'units' applied to an object of class "NULL" --- Backtrace: ▆ 1. └─spqdep::Q.test(formula = f1, data = provinces_spain, m = 3, r = 1) 2. └─spqdep::m.surround(...) 3. └─base::rbind(mdtms, rowds) 4. └─units (local) rbind(deparse.level, ...) 5. └─base::units(dots[[1]]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'user-guide.Rmd' failed with diagnostics: no applicable method for 'units' applied to an object of class "NULL" --- failed re-building ‘user-guide.Rmd’ SUMMARY: processing the following file failed: ‘user-guide.Rmd’ Error: Vignette re-building failed. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.1.3.5
Check: examples
Result: ERROR Running examples in ‘spqdep-Ex.R’ failed The error most likely occurred in: > ### Name: Q.map.test > ### Title: Compute the QE and QI tests of Equivalence and Independence > ### between maps > ### Aliases: Q.map.test > > ### ** Examples > > > # Case 1: > N <- 200 > cx <- runif(N) > cy <- runif(N) > x <- cbind(cx,cy) > listw <- spdep::nb2listw(spdep::knn2nb( + spdep::knearneigh(cbind(cx,cy), k = 4))) > p <- c(1/6, 3/6, 2/6) > rho = 0.5 > QY1 <- dgp.spq(p = p, listw = listw, rho = rho) > rho = 0.8 > QY2 <- dgp.spq(p = p, listw = listw, rho = rho) > dt = data.frame(QY1,QY2) > m = 3 > r = 1 > formula <- ~ QY1 + QY2 > control <- list(dtmaxknn = 10) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="combinations", control = control) > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QE = 261.77, df = 9, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QI = 78.631, df = 81, p-value = 0.5539 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. > plot(qmap, ci=.6) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > plot(qmap[[1]]$mh) > summary(qmap[[1]]$mh) Characteristics of m-surrounding: Number of m-surrounding (R): 90 Length of m-surrounding (m): 3 Number no-symbolized observations: 12 List of no-symbolized observations: 8 62 66 69 80 85 117 122 130 146 191 199 List of the degree overlaping: There are 2 m-surrounding that have intersection with 0 m-surrounding There are 12 m-surrounding that have intersection with 1 m-surrounding There are 76 m-surrounding that have intersection with 2 m-surrounding Mean degree of overlaping: 1.8222 > > control <- list(dtmaxknn = 20) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="permutations", control = control) Warning in Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, : The ratio between the number of symbolized observations and the number of symbols is lower than 5. > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: permutations Ratio Symbolized observations/Num symbols = 3.44 data: QY1 and QY2 QE = 276.33, df = 26, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: permutations Ratio Symbolized observations/Num symbols = 3.44 data: QY1 and QY2 QI = 238.87, df = 676, p-value = 1 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. > plot(qmap[[1]]$mh) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="combinations") > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9.9 data: QY1 and QY2 QE = 285.55, df = 9, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9.9 data: QY1 and QY2 QI = 72.942, df = 81, p-value = 0.7266 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > control <- list(dtmaxknn = 10) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="combinations", control = control) > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QE = 261.77, df = 9, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QI = 78.631, df = 81, p-value = 0.5539 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. > > # Case 2: > data(provinces_spain) > # sf::sf_use_s2(FALSE) > m = 3 > r = 1 > > provinces_spain$Mal2Fml <- factor(provinces_spain$Mal2Fml > 100) > levels(provinces_spain$Mal2Fml) = c("men","woman") > provinces_spain$Coast <- factor(provinces_spain$Coast) > levels(provinces_spain$Coast) = c("no","yes") > formula <- ~ Coast + Mal2Fml > qmap <- Q.map.test(formula = formula, data = provinces_spain, m = m, r = r, + type ="combinations") Error in UseMethod("units") : no applicable method for 'units' applied to an object of class "NULL" Calls: Q.map.test -> m.surround -> rbind -> rbind -> units Execution halted Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.1.3.5
Check: re-building of vignette outputs
Result: ERROR Error(s) in re-building vignettes: --- re-building ‘user-guide.Rmd’ using rmarkdown ** Processing: /data/gannet/ripley/R/packages/tests-clang/spqdep.Rcheck/vign_test/spqdep/vignettes/user-guide_files/figure-html/unnamed-chunk-5-1.png 288x288 pixels, 3x8 bits/pixel, RGB Input IDAT size = 29365 bytes Input file size = 29479 bytes Trying: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 21293 zc = 9 zm = 8 zs = 1 f = 0 zc = 1 zm = 8 zs = 2 f = 0 zc = 9 zm = 8 zs = 3 f = 0 zc = 9 zm = 8 zs = 0 f = 5 zc = 9 zm = 8 zs = 1 f = 5 zc = 1 zm = 8 zs = 2 f = 5 zc = 9 zm = 8 zs = 3 f = 5 Selecting parameters: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 21293 Output IDAT size = 21293 bytes (8072 bytes decrease) Output file size = 21371 bytes (8108 bytes = 27.50% decrease) ** Processing: /data/gannet/ripley/R/packages/tests-clang/spqdep.Rcheck/vign_test/spqdep/vignettes/user-guide_files/figure-html/plot mh-1.png 288x288 pixels, 3x8 bits/pixel, RGB Input IDAT size = 29738 bytes Input file size = 29852 bytes Trying: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 27111 zc = 9 zm = 8 zs = 1 f = 0 zc = 1 zm = 8 zs = 2 f = 0 zc = 9 zm = 8 zs = 3 f = 0 zc = 9 zm = 8 zs = 0 f = 5 zc = 9 zm = 8 zs = 1 f = 5 zc = 1 zm = 8 zs = 2 f = 5 zc = 9 zm = 8 zs = 3 f = 5 Selecting parameters: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 27111 Output IDAT size = 27111 bytes (2627 bytes decrease) Output file size = 27189 bytes (2663 bytes = 8.92% decrease) ** Processing: /data/gannet/ripley/R/packages/tests-clang/spqdep.Rcheck/vign_test/spqdep/vignettes/user-guide_files/figure-html/plot mh prune-1.png 288x288 pixels, 3x8 bits/pixel, RGB Input IDAT size = 28569 bytes Input file size = 28683 bytes Trying: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 25713 zc = 9 zm = 8 zs = 1 f = 0 zc = 1 zm = 8 zs = 2 f = 0 zc = 9 zm = 8 zs = 3 f = 0 zc = 9 zm = 8 zs = 0 f = 5 zc = 9 zm = 8 zs = 1 f = 5 zc = 1 zm = 8 zs = 2 f = 5 zc = 9 zm = 8 zs = 3 f = 5 Selecting parameters: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 25713 Output IDAT size = 25713 bytes (2856 bytes decrease) Output file size = 25791 bytes (2892 bytes = 10.08% decrease) ** Processing: /data/gannet/ripley/R/packages/tests-clang/spqdep.Rcheck/vign_test/spqdep/vignettes/user-guide_files/figure-html/unnamed-chunk-10-1.png 288x288 pixels, 3x8 bits/pixel, RGB Input IDAT size = 27899 bytes Input file size = 28013 bytes Trying: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 19643 zc = 9 zm = 8 zs = 1 f = 0 zc = 1 zm = 8 zs = 2 f = 0 zc = 9 zm = 8 zs = 3 f = 0 zc = 9 zm = 8 zs = 0 f = 5 zc = 9 zm = 8 zs = 1 f = 5 zc = 1 zm = 8 zs = 2 f = 5 zc = 9 zm = 8 zs = 3 f = 5 Selecting parameters: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 19643 Output IDAT size = 19643 bytes (8256 bytes decrease) Output file size = 19721 bytes (8292 bytes = 29.60% decrease) ** Processing: /data/gannet/ripley/R/packages/tests-clang/spqdep.Rcheck/vign_test/spqdep/vignettes/user-guide_files/figure-html/unnamed-chunk-10-2.png 288x288 pixels, 3x8 bits/pixel, RGB Input IDAT size = 21344 bytes Input file size = 21446 bytes Trying: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 15199 zc = 9 zm = 8 zs = 1 f = 0 zc = 1 zm = 8 zs = 2 f = 0 zc = 9 zm = 8 zs = 3 f = 0 zc = 9 zm = 8 zs = 0 f = 5 zc = 9 zm = 8 zs = 1 f = 5 zc = 1 zm = 8 zs = 2 f = 5 zc = 9 zm = 8 zs = 3 f = 5 Selecting parameters: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 15199 Output IDAT size = 15199 bytes (6145 bytes decrease) Output file size = 15277 bytes (6169 bytes = 28.77% decrease) Quitting from user-guide.Rmd:272-279 [unnamed-chunk-11] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/rlang_error> Error in `UseMethod()`: ! no applicable method for 'units' applied to an object of class "NULL" --- Backtrace: ▆ 1. └─spqdep::Q.test(formula = f1, data = provinces_spain, m = 3, r = 1) 2. └─spqdep::m.surround(...) 3. └─base::rbind(mdtms, rowds) 4. └─units (local) rbind(deparse.level, ...) 5. └─base::units(dots[[1]]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'user-guide.Rmd' failed with diagnostics: no applicable method for 'units' applied to an object of class "NULL" --- failed re-building ‘user-guide.Rmd’ SUMMARY: processing the following file failed: ‘user-guide.Rmd’ Error: Vignette re-building failed. Execution halted Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.1.3.5
Check: examples
Result: ERROR Running examples in ‘spqdep-Ex.R’ failed The error most likely occurred in: > ### Name: Q.map.test > ### Title: Compute the QE and QI tests of Equivalence and Independence > ### between maps > ### Aliases: Q.map.test > > ### ** Examples > > > # Case 1: > N <- 200 > cx <- runif(N) > cy <- runif(N) > x <- cbind(cx,cy) > listw <- spdep::nb2listw(spdep::knn2nb( + spdep::knearneigh(cbind(cx,cy), k = 4))) > p <- c(1/6, 3/6, 2/6) > rho = 0.5 > QY1 <- dgp.spq(p = p, listw = listw, rho = rho) > rho = 0.8 > QY2 <- dgp.spq(p = p, listw = listw, rho = rho) > dt = data.frame(QY1,QY2) > m = 3 > r = 1 > formula <- ~ QY1 + QY2 > control <- list(dtmaxknn = 10) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="combinations", control = control) > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QE = 261.2, df = 9, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QI = 75.127, df = 81, p-value = 0.6629 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. > plot(qmap, ci=.6) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > plot(qmap[[1]]$mh) > summary(qmap[[1]]$mh) Characteristics of m-surrounding: Number of m-surrounding (R): 90 Length of m-surrounding (m): 3 Number no-symbolized observations: 12 List of no-symbolized observations: 8 62 66 69 80 85 117 122 130 146 191 199 List of the degree overlaping: There are 2 m-surrounding that have intersection with 0 m-surrounding There are 12 m-surrounding that have intersection with 1 m-surrounding There are 76 m-surrounding that have intersection with 2 m-surrounding Mean degree of overlaping: 1.8222 > > control <- list(dtmaxknn = 20) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="permutations", control = control) Warning in Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, : The ratio between the number of symbolized observations and the number of symbols is lower than 5. > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: permutations Ratio Symbolized observations/Num symbols = 3.44 data: QY1 and QY2 QE = 278.54, df = 26, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: permutations Ratio Symbolized observations/Num symbols = 3.44 data: QY1 and QY2 QI = 249.26, df = 676, p-value = 1 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > plot(qmap[[1]]$mh) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="combinations") > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9.9 data: QY1 and QY2 QE = 281.98, df = 9, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9.9 data: QY1 and QY2 QI = 79.927, df = 81, p-value = 0.5129 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. > control <- list(dtmaxknn = 10) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="combinations", control = control) > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QE = 261.2, df = 9, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QI = 75.127, df = 81, p-value = 0.6629 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. > > # Case 2: > data(provinces_spain) > # sf::sf_use_s2(FALSE) > m = 3 > r = 1 > > provinces_spain$Mal2Fml <- factor(provinces_spain$Mal2Fml > 100) > levels(provinces_spain$Mal2Fml) = c("men","woman") > provinces_spain$Coast <- factor(provinces_spain$Coast) > levels(provinces_spain$Coast) = c("no","yes") > formula <- ~ Coast + Mal2Fml > qmap <- Q.map.test(formula = formula, data = provinces_spain, m = m, r = r, + type ="combinations") Error in UseMethod("units") : no applicable method for 'units' applied to an object of class "NULL" Calls: Q.map.test -> m.surround -> rbind -> rbind -> units Execution halted Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 0.1.3.5
Check: re-building of vignette outputs
Result: ERROR Error(s) in re-building vignettes: --- re-building ‘user-guide.Rmd’ using rmarkdown ** Processing: /data/gannet/ripley/R/packages/tests-devel/spqdep.Rcheck/vign_test/spqdep/vignettes/user-guide_files/figure-html/unnamed-chunk-5-1.png 288x288 pixels, 3x8 bits/pixel, RGB Input IDAT size = 29492 bytes Input file size = 29606 bytes Trying: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 21164 zc = 9 zm = 8 zs = 1 f = 0 zc = 1 zm = 8 zs = 2 f = 0 zc = 9 zm = 8 zs = 3 f = 0 zc = 9 zm = 8 zs = 0 f = 5 zc = 9 zm = 8 zs = 1 f = 5 zc = 1 zm = 8 zs = 2 f = 5 zc = 9 zm = 8 zs = 3 f = 5 Selecting parameters: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 21164 Output IDAT size = 21164 bytes (8328 bytes decrease) Output file size = 21242 bytes (8364 bytes = 28.25% decrease) ** Processing: /data/gannet/ripley/R/packages/tests-devel/spqdep.Rcheck/vign_test/spqdep/vignettes/user-guide_files/figure-html/plot mh-1.png 288x288 pixels, 3x8 bits/pixel, RGB Input IDAT size = 29738 bytes Input file size = 29852 bytes Trying: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 27111 zc = 9 zm = 8 zs = 1 f = 0 zc = 1 zm = 8 zs = 2 f = 0 zc = 9 zm = 8 zs = 3 f = 0 zc = 9 zm = 8 zs = 0 f = 5 zc = 9 zm = 8 zs = 1 f = 5 zc = 1 zm = 8 zs = 2 f = 5 zc = 9 zm = 8 zs = 3 f = 5 Selecting parameters: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 27111 Output IDAT size = 27111 bytes (2627 bytes decrease) Output file size = 27189 bytes (2663 bytes = 8.92% decrease) ** Processing: /data/gannet/ripley/R/packages/tests-devel/spqdep.Rcheck/vign_test/spqdep/vignettes/user-guide_files/figure-html/plot mh prune-1.png 288x288 pixels, 3x8 bits/pixel, RGB Input IDAT size = 28569 bytes Input file size = 28683 bytes Trying: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 25713 zc = 9 zm = 8 zs = 1 f = 0 zc = 1 zm = 8 zs = 2 f = 0 zc = 9 zm = 8 zs = 3 f = 0 zc = 9 zm = 8 zs = 0 f = 5 zc = 9 zm = 8 zs = 1 f = 5 zc = 1 zm = 8 zs = 2 f = 5 zc = 9 zm = 8 zs = 3 f = 5 Selecting parameters: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 25713 Output IDAT size = 25713 bytes (2856 bytes decrease) Output file size = 25791 bytes (2892 bytes = 10.08% decrease) ** Processing: /data/gannet/ripley/R/packages/tests-devel/spqdep.Rcheck/vign_test/spqdep/vignettes/user-guide_files/figure-html/unnamed-chunk-10-1.png 288x288 pixels, 3x8 bits/pixel, RGB Input IDAT size = 27770 bytes Input file size = 27884 bytes Trying: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 19577 zc = 9 zm = 8 zs = 1 f = 0 zc = 1 zm = 8 zs = 2 f = 0 zc = 9 zm = 8 zs = 3 f = 0 zc = 9 zm = 8 zs = 0 f = 5 zc = 9 zm = 8 zs = 1 f = 5 zc = 1 zm = 8 zs = 2 f = 5 zc = 9 zm = 8 zs = 3 f = 5 Selecting parameters: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 19577 Output IDAT size = 19577 bytes (8193 bytes decrease) Output file size = 19655 bytes (8229 bytes = 29.51% decrease) ** Processing: /data/gannet/ripley/R/packages/tests-devel/spqdep.Rcheck/vign_test/spqdep/vignettes/user-guide_files/figure-html/unnamed-chunk-10-2.png 288x288 pixels, 3x8 bits/pixel, RGB Input IDAT size = 21144 bytes Input file size = 21246 bytes Trying: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 15125 zc = 9 zm = 8 zs = 1 f = 0 zc = 1 zm = 8 zs = 2 f = 0 zc = 9 zm = 8 zs = 3 f = 0 zc = 9 zm = 8 zs = 0 f = 5 zc = 9 zm = 8 zs = 1 f = 5 zc = 1 zm = 8 zs = 2 f = 5 zc = 9 zm = 8 zs = 3 f = 5 Selecting parameters: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 15125 Output IDAT size = 15125 bytes (6019 bytes decrease) Output file size = 15203 bytes (6043 bytes = 28.44% decrease) Quitting from user-guide.Rmd:272-279 [unnamed-chunk-11] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/rlang_error> Error in `UseMethod()`: ! no applicable method for 'units' applied to an object of class "NULL" --- Backtrace: ▆ 1. └─spqdep::Q.test(formula = f1, data = provinces_spain, m = 3, r = 1) 2. └─spqdep::m.surround(...) 3. └─base::rbind(mdtms, rowds) 4. └─units (local) rbind(deparse.level, ...) 5. └─base::units(dots[[1]]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'user-guide.Rmd' failed with diagnostics: no applicable method for 'units' applied to an object of class "NULL" --- failed re-building ‘user-guide.Rmd’ SUMMARY: processing the following file failed: ‘user-guide.Rmd’ Error: Vignette re-building failed. Execution halted Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 0.1.3.5
Check: examples
Result: ERROR Running examples in 'spqdep-Ex.R' failed The error most likely occurred in: > ### Name: Q.map.test > ### Title: Compute the QE and QI tests of Equivalence and Independence > ### between maps > ### Aliases: Q.map.test > > ### ** Examples > > > # Case 1: > N <- 200 > cx <- runif(N) > cy <- runif(N) > x <- cbind(cx,cy) > listw <- spdep::nb2listw(spdep::knn2nb( + spdep::knearneigh(cbind(cx,cy), k = 4))) > p <- c(1/6, 3/6, 2/6) > rho = 0.5 > QY1 <- dgp.spq(p = p, listw = listw, rho = rho) > rho = 0.8 > QY2 <- dgp.spq(p = p, listw = listw, rho = rho) > dt = data.frame(QY1,QY2) > m = 3 > r = 1 > formula <- ~ QY1 + QY2 > control <- list(dtmaxknn = 10) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="combinations", control = control) > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QE = 266.21, df = 9, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QI = 71.243, df = 81, p-value = 0.7724 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. > plot(qmap, ci=.6) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > plot(qmap[[1]]$mh) > summary(qmap[[1]]$mh) Characteristics of m-surrounding: Number of m-surrounding (R): 90 Length of m-surrounding (m): 3 Number no-symbolized observations: 12 List of no-symbolized observations: 8 62 66 69 80 85 117 122 130 146 191 199 List of the degree overlaping: There are 2 m-surrounding that have intersection with 0 m-surrounding There are 12 m-surrounding that have intersection with 1 m-surrounding There are 76 m-surrounding that have intersection with 2 m-surrounding Mean degree of overlaping: 1.8222 > > control <- list(dtmaxknn = 20) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="permutations", control = control) Warning in Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, : The ratio between the number of symbolized observations and the number of symbols is lower than 5. > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: permutations Ratio Symbolized observations/Num symbols = 3.44 data: QY1 and QY2 QE = 287.2, df = 26, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: permutations Ratio Symbolized observations/Num symbols = 3.44 data: QY1 and QY2 QI = 214.14, df = 676, p-value = 1 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. > plot(qmap[[1]]$mh) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="combinations") > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9.9 data: QY1 and QY2 QE = 290.44, df = 9, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9.9 data: QY1 and QY2 QI = 72.787, df = 81, p-value = 0.7309 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. > control <- list(dtmaxknn = 10) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="combinations", control = control) > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QE = 266.21, df = 9, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QI = 71.243, df = 81, p-value = 0.7724 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. > > # Case 2: > data(provinces_spain) > # sf::sf_use_s2(FALSE) > m = 3 > r = 1 > > provinces_spain$Mal2Fml <- factor(provinces_spain$Mal2Fml > 100) > levels(provinces_spain$Mal2Fml) = c("men","woman") > provinces_spain$Coast <- factor(provinces_spain$Coast) > levels(provinces_spain$Coast) = c("no","yes") > formula <- ~ Coast + Mal2Fml > qmap <- Q.map.test(formula = formula, data = provinces_spain, m = m, r = r, + type ="combinations") Error in UseMethod("units") : no applicable method for 'units' applied to an object of class "NULL" Calls: Q.map.test -> m.surround -> rbind -> rbind -> units Execution halted Flavor: r-devel-windows-x86_64

Version: 0.1.3.5
Check: re-building of vignette outputs
Result: ERROR Error(s) in re-building vignettes: --- re-building 'user-guide.Rmd' using rmarkdown Quitting from user-guide.Rmd:272-279 [unnamed-chunk-11] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/rlang_error> Error in `UseMethod()`: ! no applicable method for 'units' applied to an object of class "NULL" --- Backtrace: ▆ 1. └─spqdep::Q.test(formula = f1, data = provinces_spain, m = 3, r = 1) 2. └─spqdep::m.surround(...) 3. └─base::rbind(mdtms, rowds) 4. └─units (local) rbind(deparse.level, ...) 5. └─base::units(dots[[1]]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'user-guide.Rmd' failed with diagnostics: no applicable method for 'units' applied to an object of class "NULL" --- failed re-building 'user-guide.Rmd' SUMMARY: processing the following file failed: 'user-guide.Rmd' Error: Vignette re-building failed. Execution halted Flavors: r-devel-windows-x86_64, r-release-windows-x86_64, r-oldrel-windows-x86_64

Version: 0.1.3.5
Check: examples
Result: ERROR Running examples in ‘spqdep-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: Q.map.test > ### Title: Compute the QE and QI tests of Equivalence and Independence > ### between maps > ### Aliases: Q.map.test > > ### ** Examples > > > # Case 1: > N <- 200 > cx <- runif(N) > cy <- runif(N) > x <- cbind(cx,cy) > listw <- spdep::nb2listw(spdep::knn2nb( + spdep::knearneigh(cbind(cx,cy), k = 4))) > p <- c(1/6, 3/6, 2/6) > rho = 0.5 > QY1 <- dgp.spq(p = p, listw = listw, rho = rho) > rho = 0.8 > QY2 <- dgp.spq(p = p, listw = listw, rho = rho) > dt = data.frame(QY1,QY2) > m = 3 > r = 1 > formula <- ~ QY1 + QY2 > control <- list(dtmaxknn = 10) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="combinations", control = control) > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QE = 274.37, df = 9, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QI = 43.822, df = 81, p-value = 0.9998 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > plot(qmap, ci=.6) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > plot(qmap[[1]]$mh) > summary(qmap[[1]]$mh) Characteristics of m-surrounding: Number of m-surrounding (R): 90 Length of m-surrounding (m): 3 Number no-symbolized observations: 12 List of no-symbolized observations: 8 62 66 69 80 85 117 122 130 146 191 199 List of the degree overlaping: There are 2 m-surrounding that have intersection with 0 m-surrounding There are 12 m-surrounding that have intersection with 1 m-surrounding There are 76 m-surrounding that have intersection with 2 m-surrounding Mean degree of overlaping: 1.8222 > > control <- list(dtmaxknn = 20) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="permutations", control = control) Warning in Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, : The ratio between the number of symbolized observations and the number of symbols is lower than 5. > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: permutations Ratio Symbolized observations/Num symbols = 3.44 data: QY1 and QY2 QE = 295.86, df = 26, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: permutations Ratio Symbolized observations/Num symbols = 3.44 data: QY1 and QY2 QI = 197.69, df = 676, p-value = 1 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. > plot(qmap[[1]]$mh) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="combinations") > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9.9 data: QY1 and QY2 QE = 307.63, df = 9, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9.9 data: QY1 and QY2 QI = 55.381, df = 81, p-value = 0.9868 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > control <- list(dtmaxknn = 10) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="combinations", control = control) > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QE = 274.37, df = 9, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QI = 43.822, df = 81, p-value = 0.9998 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > > # Case 2: > data(provinces_spain) > # sf::sf_use_s2(FALSE) > m = 3 > r = 1 > > provinces_spain$Mal2Fml <- factor(provinces_spain$Mal2Fml > 100) > levels(provinces_spain$Mal2Fml) = c("men","woman") > provinces_spain$Coast <- factor(provinces_spain$Coast) > levels(provinces_spain$Coast) = c("no","yes") > formula <- ~ Coast + Mal2Fml > qmap <- Q.map.test(formula = formula, data = provinces_spain, m = m, r = r, + type ="combinations") Error in UseMethod("units") : no applicable method for 'units' applied to an object of class "NULL" Calls: Q.map.test -> m.surround -> rbind -> rbind -> units Execution halted Flavor: r-patched-linux-x86_64

Version: 0.1.3.5
Check: re-building of vignette outputs
Result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘user-guide.Rmd’ using rmarkdown ** Processing: /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/spqdep.Rcheck/vign_test/spqdep/vignettes/user-guide_files/figure-html/unnamed-chunk-5-1.png 288x288 pixels, 3x8 bits/pixel, RGB Input IDAT size = 29427 bytes Input file size = 29541 bytes Trying: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 21600 zc = 9 zm = 8 zs = 1 f = 0 zc = 1 zm = 8 zs = 2 f = 0 zc = 9 zm = 8 zs = 3 f = 0 zc = 9 zm = 8 zs = 0 f = 5 zc = 9 zm = 8 zs = 1 f = 5 zc = 1 zm = 8 zs = 2 f = 5 zc = 9 zm = 8 zs = 3 f = 5 Selecting parameters: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 21600 Output IDAT size = 21600 bytes (7827 bytes decrease) Output file size = 21678 bytes (7863 bytes = 26.62% decrease) ** Processing: /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/spqdep.Rcheck/vign_test/spqdep/vignettes/user-guide_files/figure-html/plot mh-1.png 288x288 pixels, 3x8 bits/pixel, RGB Input IDAT size = 29819 bytes Input file size = 29933 bytes Trying: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 27237 zc = 9 zm = 8 zs = 1 f = 0 zc = 1 zm = 8 zs = 2 f = 0 zc = 9 zm = 8 zs = 3 f = 0 zc = 9 zm = 8 zs = 0 f = 5 zc = 9 zm = 8 zs = 1 f = 5 zc = 1 zm = 8 zs = 2 f = 5 zc = 9 zm = 8 zs = 3 f = 5 Selecting parameters: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 27237 Output IDAT size = 27237 bytes (2582 bytes decrease) Output file size = 27315 bytes (2618 bytes = 8.75% decrease) ** Processing: /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/spqdep.Rcheck/vign_test/spqdep/vignettes/user-guide_files/figure-html/plot mh prune-1.png 288x288 pixels, 3x8 bits/pixel, RGB Input IDAT size = 28643 bytes Input file size = 28757 bytes Trying: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 25872 zc = 9 zm = 8 zs = 1 f = 0 zc = 1 zm = 8 zs = 2 f = 0 zc = 9 zm = 8 zs = 3 f = 0 zc = 9 zm = 8 zs = 0 f = 5 zc = 9 zm = 8 zs = 1 f = 5 zc = 1 zm = 8 zs = 2 f = 5 zc = 9 zm = 8 zs = 3 f = 5 Selecting parameters: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 25872 Output IDAT size = 25872 bytes (2771 bytes decrease) Output file size = 25950 bytes (2807 bytes = 9.76% decrease) ** Processing: /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/spqdep.Rcheck/vign_test/spqdep/vignettes/user-guide_files/figure-html/unnamed-chunk-10-1.png 288x288 pixels, 3x8 bits/pixel, RGB Input IDAT size = 28201 bytes Input file size = 28315 bytes Trying: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 20552 zc = 9 zm = 8 zs = 1 f = 0 zc = 1 zm = 8 zs = 2 f = 0 zc = 9 zm = 8 zs = 3 f = 0 zc = 9 zm = 8 zs = 0 f = 5 zc = 9 zm = 8 zs = 1 f = 5 zc = 1 zm = 8 zs = 2 f = 5 zc = 9 zm = 8 zs = 3 f = 5 Selecting parameters: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 20552 Output IDAT size = 20552 bytes (7649 bytes decrease) Output file size = 20630 bytes (7685 bytes = 27.14% decrease) ** Processing: /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/spqdep.Rcheck/vign_test/spqdep/vignettes/user-guide_files/figure-html/unnamed-chunk-10-2.png 288x288 pixels, 3x8 bits/pixel, RGB Input IDAT size = 21570 bytes Input file size = 21672 bytes Trying: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 16168 zc = 9 zm = 8 zs = 1 f = 0 zc = 1 zm = 8 zs = 2 f = 0 zc = 9 zm = 8 zs = 3 f = 0 zc = 9 zm = 8 zs = 0 f = 5 zc = 9 zm = 8 zs = 1 f = 5 zc = 1 zm = 8 zs = 2 f = 5 zc = 9 zm = 8 zs = 3 f = 5 Selecting parameters: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 16168 Output IDAT size = 16168 bytes (5402 bytes decrease) Output file size = 16246 bytes (5426 bytes = 25.04% decrease) Quitting from user-guide.Rmd:272-279 [unnamed-chunk-11] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/rlang_error> Error in `UseMethod()`: ! no applicable method for 'units' applied to an object of class "NULL" --- Backtrace: ▆ 1. └─spqdep::Q.test(formula = f1, data = provinces_spain, m = 3, r = 1) 2. └─spqdep::m.surround(...) 3. └─base::rbind(mdtms, rowds) 4. └─units (local) rbind(deparse.level, ...) 5. └─base::units(dots[[1]]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'user-guide.Rmd' failed with diagnostics: no applicable method for 'units' applied to an object of class "NULL" --- failed re-building ‘user-guide.Rmd’ SUMMARY: processing the following file failed: ‘user-guide.Rmd’ Error: Vignette re-building failed. Execution halted Flavor: r-patched-linux-x86_64

Version: 0.1.3.5
Check: examples
Result: ERROR Running examples in ‘spqdep-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: Q.map.test > ### Title: Compute the QE and QI tests of Equivalence and Independence > ### between maps > ### Aliases: Q.map.test > > ### ** Examples > > > # Case 1: > N <- 200 > cx <- runif(N) > cy <- runif(N) > x <- cbind(cx,cy) > listw <- spdep::nb2listw(spdep::knn2nb( + spdep::knearneigh(cbind(cx,cy), k = 4))) > p <- c(1/6, 3/6, 2/6) > rho = 0.5 > QY1 <- dgp.spq(p = p, listw = listw, rho = rho) > rho = 0.8 > QY2 <- dgp.spq(p = p, listw = listw, rho = rho) > dt = data.frame(QY1,QY2) > m = 3 > r = 1 > formula <- ~ QY1 + QY2 > control <- list(dtmaxknn = 10) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="combinations", control = control) > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QE = 278.55, df = 9, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QI = 93.744, df = 81, p-value = 0.1575 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > plot(qmap, ci=.6) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > plot(qmap[[1]]$mh) > summary(qmap[[1]]$mh) Characteristics of m-surrounding: Number of m-surrounding (R): 90 Length of m-surrounding (m): 3 Number no-symbolized observations: 12 List of no-symbolized observations: 8 62 66 69 80 85 117 122 130 146 191 199 List of the degree overlaping: There are 2 m-surrounding that have intersection with 0 m-surrounding There are 12 m-surrounding that have intersection with 1 m-surrounding There are 76 m-surrounding that have intersection with 2 m-surrounding Mean degree of overlaping: 1.8222 > > control <- list(dtmaxknn = 20) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="permutations", control = control) Warning in Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, : The ratio between the number of symbolized observations and the number of symbols is lower than 5. > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: permutations Ratio Symbolized observations/Num symbols = 3.44 data: QY1 and QY2 QE = 298.59, df = 26, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: permutations Ratio Symbolized observations/Num symbols = 3.44 data: QY1 and QY2 QI = 218.05, df = 676, p-value = 1 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > plot(qmap[[1]]$mh) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="combinations") > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9.9 data: QY1 and QY2 QE = 301.77, df = 9, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9.9 data: QY1 and QY2 QI = 92.388, df = 81, p-value = 0.182 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > control <- list(dtmaxknn = 10) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="combinations", control = control) > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QE = 278.55, df = 9, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QI = 93.744, df = 81, p-value = 0.1575 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > > # Case 2: > data(provinces_spain) > # sf::sf_use_s2(FALSE) > m = 3 > r = 1 > > provinces_spain$Mal2Fml <- factor(provinces_spain$Mal2Fml > 100) > levels(provinces_spain$Mal2Fml) = c("men","woman") > provinces_spain$Coast <- factor(provinces_spain$Coast) > levels(provinces_spain$Coast) = c("no","yes") > formula <- ~ Coast + Mal2Fml > qmap <- Q.map.test(formula = formula, data = provinces_spain, m = m, r = r, + type ="combinations") Error in UseMethod("units") : no applicable method for 'units' applied to an object of class "NULL" Calls: Q.map.test -> m.surround -> rbind -> rbind -> units Execution halted Flavor: r-release-linux-x86_64

Version: 0.1.3.5
Check: re-building of vignette outputs
Result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘user-guide.Rmd’ using rmarkdown ** Processing: /home/hornik/tmp/R.check/r-release-gcc/Work/PKGS/spqdep.Rcheck/vign_test/spqdep/vignettes/user-guide_files/figure-html/unnamed-chunk-5-1.png 288x288 pixels, 3x8 bits/pixel, RGB Input IDAT size = 28838 bytes Input file size = 28952 bytes Trying: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 21276 zc = 9 zm = 8 zs = 1 f = 0 zc = 1 zm = 8 zs = 2 f = 0 zc = 9 zm = 8 zs = 3 f = 0 zc = 9 zm = 8 zs = 0 f = 5 zc = 9 zm = 8 zs = 1 f = 5 zc = 1 zm = 8 zs = 2 f = 5 zc = 9 zm = 8 zs = 3 f = 5 Selecting parameters: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 21276 Output IDAT size = 21276 bytes (7562 bytes decrease) Output file size = 21354 bytes (7598 bytes = 26.24% decrease) ** Processing: /home/hornik/tmp/R.check/r-release-gcc/Work/PKGS/spqdep.Rcheck/vign_test/spqdep/vignettes/user-guide_files/figure-html/plot mh-1.png 288x288 pixels, 3x8 bits/pixel, RGB Input IDAT size = 29819 bytes Input file size = 29933 bytes Trying: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 27237 zc = 9 zm = 8 zs = 1 f = 0 zc = 1 zm = 8 zs = 2 f = 0 zc = 9 zm = 8 zs = 3 f = 0 zc = 9 zm = 8 zs = 0 f = 5 zc = 9 zm = 8 zs = 1 f = 5 zc = 1 zm = 8 zs = 2 f = 5 zc = 9 zm = 8 zs = 3 f = 5 Selecting parameters: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 27237 Output IDAT size = 27237 bytes (2582 bytes decrease) Output file size = 27315 bytes (2618 bytes = 8.75% decrease) ** Processing: /home/hornik/tmp/R.check/r-release-gcc/Work/PKGS/spqdep.Rcheck/vign_test/spqdep/vignettes/user-guide_files/figure-html/plot mh prune-1.png 288x288 pixels, 3x8 bits/pixel, RGB Input IDAT size = 28643 bytes Input file size = 28757 bytes Trying: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 25872 zc = 9 zm = 8 zs = 1 f = 0 zc = 1 zm = 8 zs = 2 f = 0 zc = 9 zm = 8 zs = 3 f = 0 zc = 9 zm = 8 zs = 0 f = 5 zc = 9 zm = 8 zs = 1 f = 5 zc = 1 zm = 8 zs = 2 f = 5 zc = 9 zm = 8 zs = 3 f = 5 Selecting parameters: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 25872 Output IDAT size = 25872 bytes (2771 bytes decrease) Output file size = 25950 bytes (2807 bytes = 9.76% decrease) ** Processing: /home/hornik/tmp/R.check/r-release-gcc/Work/PKGS/spqdep.Rcheck/vign_test/spqdep/vignettes/user-guide_files/figure-html/unnamed-chunk-10-1.png 288x288 pixels, 3x8 bits/pixel, RGB Input IDAT size = 28282 bytes Input file size = 28396 bytes Trying: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 20606 zc = 9 zm = 8 zs = 1 f = 0 zc = 1 zm = 8 zs = 2 f = 0 zc = 9 zm = 8 zs = 3 f = 0 zc = 9 zm = 8 zs = 0 f = 5 zc = 9 zm = 8 zs = 1 f = 5 zc = 1 zm = 8 zs = 2 f = 5 zc = 9 zm = 8 zs = 3 f = 5 Selecting parameters: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 20606 Output IDAT size = 20606 bytes (7676 bytes decrease) Output file size = 20684 bytes (7712 bytes = 27.16% decrease) ** Processing: /home/hornik/tmp/R.check/r-release-gcc/Work/PKGS/spqdep.Rcheck/vign_test/spqdep/vignettes/user-guide_files/figure-html/unnamed-chunk-10-2.png 288x288 pixels, 3x8 bits/pixel, RGB Input IDAT size = 21602 bytes Input file size = 21704 bytes Trying: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 16147 zc = 9 zm = 8 zs = 1 f = 0 zc = 1 zm = 8 zs = 2 f = 0 zc = 9 zm = 8 zs = 3 f = 0 zc = 9 zm = 8 zs = 0 f = 5 zc = 9 zm = 8 zs = 1 f = 5 zc = 1 zm = 8 zs = 2 f = 5 zc = 9 zm = 8 zs = 3 f = 5 Selecting parameters: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 16147 Output IDAT size = 16147 bytes (5455 bytes decrease) Output file size = 16225 bytes (5479 bytes = 25.24% decrease) Quitting from user-guide.Rmd:272-279 [unnamed-chunk-11] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/rlang_error> Error in `UseMethod()`: ! no applicable method for 'units' applied to an object of class "NULL" --- Backtrace: ▆ 1. └─spqdep::Q.test(formula = f1, data = provinces_spain, m = 3, r = 1) 2. └─spqdep::m.surround(...) 3. └─base::rbind(mdtms, rowds) 4. └─units (local) rbind(deparse.level, ...) 5. └─base::units(dots[[1]]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'user-guide.Rmd' failed with diagnostics: no applicable method for 'units' applied to an object of class "NULL" --- failed re-building ‘user-guide.Rmd’ SUMMARY: processing the following file failed: ‘user-guide.Rmd’ Error: Vignette re-building failed. Execution halted Flavor: r-release-linux-x86_64

Version: 0.1.3.5
Check: examples
Result: ERROR Running examples in 'spqdep-Ex.R' failed The error most likely occurred in: > ### Name: Q.map.test > ### Title: Compute the QE and QI tests of Equivalence and Independence > ### between maps > ### Aliases: Q.map.test > > ### ** Examples > > > # Case 1: > N <- 200 > cx <- runif(N) > cy <- runif(N) > x <- cbind(cx,cy) > listw <- spdep::nb2listw(spdep::knn2nb( + spdep::knearneigh(cbind(cx,cy), k = 4))) > p <- c(1/6, 3/6, 2/6) > rho = 0.5 > QY1 <- dgp.spq(p = p, listw = listw, rho = rho) > rho = 0.8 > QY2 <- dgp.spq(p = p, listw = listw, rho = rho) > dt = data.frame(QY1,QY2) > m = 3 > r = 1 > formula <- ~ QY1 + QY2 > control <- list(dtmaxknn = 10) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="combinations", control = control) > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QE = 271.02, df = 9, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QI = 64.34, df = 81, p-value = 0.9127 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > plot(qmap, ci=.6) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > plot(qmap[[1]]$mh) > summary(qmap[[1]]$mh) Characteristics of m-surrounding: Number of m-surrounding (R): 90 Length of m-surrounding (m): 3 Number no-symbolized observations: 12 List of no-symbolized observations: 8 62 66 69 80 85 117 122 130 146 191 199 List of the degree overlaping: There are 2 m-surrounding that have intersection with 0 m-surrounding There are 12 m-surrounding that have intersection with 1 m-surrounding There are 76 m-surrounding that have intersection with 2 m-surrounding Mean degree of overlaping: 1.8222 > > control <- list(dtmaxknn = 20) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="permutations", control = control) Warning in Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, : The ratio between the number of symbolized observations and the number of symbols is lower than 5. > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: permutations Ratio Symbolized observations/Num symbols = 3.44 data: QY1 and QY2 QE = 289.95, df = 26, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: permutations Ratio Symbolized observations/Num symbols = 3.44 data: QY1 and QY2 QI = 239.34, df = 676, p-value = 1 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > plot(qmap[[1]]$mh) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="combinations") > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9.9 data: QY1 and QY2 QE = 286.29, df = 9, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9.9 data: QY1 and QY2 QI = 71.3, df = 81, p-value = 0.7709 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. Warning: No shared levels found between `names(values)` of the manual scale and the data's fill values. > control <- list(dtmaxknn = 10) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="combinations", control = control) > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QE = 271.02, df = 9, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QI = 64.34, df = 81, p-value = 0.9127 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > > # Case 2: > data(provinces_spain) > # sf::sf_use_s2(FALSE) > m = 3 > r = 1 > > provinces_spain$Mal2Fml <- factor(provinces_spain$Mal2Fml > 100) > levels(provinces_spain$Mal2Fml) = c("men","woman") > provinces_spain$Coast <- factor(provinces_spain$Coast) > levels(provinces_spain$Coast) = c("no","yes") > formula <- ~ Coast + Mal2Fml > qmap <- Q.map.test(formula = formula, data = provinces_spain, m = m, r = r, + type ="combinations") Error in UseMethod("units") : no applicable method for 'units' applied to an object of class "NULL" Calls: Q.map.test -> m.surround -> rbind -> rbind -> units Execution halted Flavor: r-release-windows-x86_64

Version: 0.1.3.5
Check: examples
Result: ERROR Running examples in 'spqdep-Ex.R' failed The error most likely occurred in: > ### Name: Q.map.test > ### Title: Compute the QE and QI tests of Equivalence and Independence > ### between maps > ### Aliases: Q.map.test > > ### ** Examples > > > # Case 1: > N <- 200 > cx <- runif(N) > cy <- runif(N) > x <- cbind(cx,cy) > listw <- spdep::nb2listw(spdep::knn2nb( + spdep::knearneigh(cbind(cx,cy), k = 4))) > p <- c(1/6, 3/6, 2/6) > rho = 0.5 > QY1 <- dgp.spq(p = p, listw = listw, rho = rho) > rho = 0.8 > QY2 <- dgp.spq(p = p, listw = listw, rho = rho) > dt = data.frame(QY1,QY2) > m = 3 > r = 1 > formula <- ~ QY1 + QY2 > control <- list(dtmaxknn = 10) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="combinations", control = control) > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QE = 265.91, df = 9, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QI = 77.728, df = 81, p-value = 0.5824 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > plot(qmap, ci=.6) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > plot(qmap[[1]]$mh) > summary(qmap[[1]]$mh) Characteristics of m-surrounding: Number of m-surrounding (R): 90 Length of m-surrounding (m): 3 Number no-symbolized observations: 12 List of no-symbolized observations: 8 62 66 69 80 85 117 122 130 146 191 199 List of the degree overlaping: There are 2 m-surrounding that have intersection with 0 m-surrounding There are 12 m-surrounding that have intersection with 1 m-surrounding There are 76 m-surrounding that have intersection with 2 m-surrounding Mean degree of overlaping: 1.8222 > > control <- list(dtmaxknn = 20) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="permutations", control = control) Warning in Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, : The ratio between the number of symbolized observations and the number of symbols is lower than 5. > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: permutations Ratio Symbolized observations/Num symbols = 3.44 data: QY1 and QY2 QE = 287.77, df = 26, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: permutations Ratio Symbolized observations/Num symbols = 3.44 data: QY1 and QY2 QI = 227.96, df = 676, p-value = 1 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > plot(qmap[[1]]$mh) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="combinations") > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9.9 data: QY1 and QY2 QE = 295.37, df = 9, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9.9 data: QY1 and QY2 QI = 81.508, df = 81, p-value = 0.4633 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > control <- list(dtmaxknn = 10) > qmap <- Q.map.test(formula = formula, data = dt, coor = x, m = m, r = r, + type ="combinations", control = control) > print(qmap) [[1]] Q-Map test of Equivalence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QE = 265.91, df = 9, p-value < 2.2e-16 alternative hypothesis: two.sided [[2]] Q-Map test of Independence for qualitative data. Symbols type: combinations Ratio Symbolized observations/Num symbols = 9 data: QY1 and QY2 QI = 77.728, df = 81, p-value = 0.5824 alternative hypothesis: two.sided attr(,"class") [1] "qmap" "list" > plot(qmap) Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. Warning: Use of `data$symb` is discouraged. ℹ Use `symb` instead. > > # Case 2: > data(provinces_spain) > # sf::sf_use_s2(FALSE) > m = 3 > r = 1 > > provinces_spain$Mal2Fml <- factor(provinces_spain$Mal2Fml > 100) > levels(provinces_spain$Mal2Fml) = c("men","woman") > provinces_spain$Coast <- factor(provinces_spain$Coast) > levels(provinces_spain$Coast) = c("no","yes") > formula <- ~ Coast + Mal2Fml > qmap <- Q.map.test(formula = formula, data = provinces_spain, m = m, r = r, + type ="combinations") Error in UseMethod("units") : no applicable method for 'units' applied to an object of class "NULL" Calls: Q.map.test -> m.surround -> rbind -> rbind -> units Execution halted Flavor: r-oldrel-windows-x86_64