CRAN Package Check Results for Package collapse

Last updated on 2020-12-19 05:47:24 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.4.2 332.21 307.77 639.98 ERROR
r-devel-linux-x86_64-debian-gcc 1.4.2 247.15 228.06 475.21 ERROR
r-devel-linux-x86_64-fedora-clang 1.4.2 912.31 ERROR
r-devel-linux-x86_64-fedora-gcc 1.4.2 882.34 ERROR
r-devel-windows-ix86+x86_64 1.4.2 743.00 650.00 1393.00 NOTE
r-patched-linux-x86_64 1.4.2 287.27 294.28 581.55 ERROR
r-patched-solaris-x86 1.4.2 778.60 ERROR
r-release-linux-x86_64 1.4.2 280.70 293.30 574.00 ERROR
r-release-macos-x86_64 1.4.2 NOTE
r-release-windows-ix86+x86_64 1.4.2 548.00 519.00 1067.00 NOTE
r-oldrel-macos-x86_64 1.4.2 NOTE
r-oldrel-windows-ix86+x86_64 1.4.2 541.00 485.00 1026.00 NOTE

Check Details

Version: 1.4.2
Check: package dependencies
Result: NOTE
    Package suggested but not available for checking: 'lfe'
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-patched-linux-x86_64, r-patched-solaris-x86, r-release-linux-x86_64

Version: 1.4.2
Check: examples
Result: ERROR
    Running examples in 'collapse-Ex.R' failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: fFtest
    > ### Title: Fast F-test for Linear Models (with Factors)
    > ### Aliases: fFtest
    > ### Keywords: htest
    >
    > ### ** Examples
    >
    > ## We could use fFtest as a seasonality test:
    > fFtest(AirPassengers, qF(cycle(AirPassengers))) # Testing for level-seasonality
     R-Sq. DF1 DF2 F-Stat. P-value
     0.106 11 132 1.424 0.169
    > fFtest(AirPassengers, qF(cycle(AirPassengers)), # Seasonality test around a cubic trend
    + poly(seq_along(AirPassengers), 3))
     R-Sq. DF1 DF2 F-Stat. P-Value
    Full Model 0.965 14 129 250.585 0.000
    Restricted Model 0.862 3 140 291.593 0.000
    Exclusion Rest. 0.102 11 129 33.890 0.000
    > fFtest(fdiff(AirPassengers), qF(cycle(AirPassengers))) # Seasonality in first-difference
     R-Sq. DF1 DF2 F-Stat. P-value
     0.749 11 131 35.487 0.000
    >
    > ## A more classical example with only continuous variables
    > fFtest(mtcars$mpg, mtcars[c("cyl","vs")], mtcars[c("hp","carb")])
     R-Sq. DF1 DF2 F-Stat. P-Value
    Full Model 0.750 4 27 20.261 0.000
    Restricted Model 0.605 2 29 22.175 0.000
    Exclusion Rest. 0.145 2 27 7.858 0.002
    >
    > ## Now encoding cyl and vs as factors
    > fFtest(mtcars$mpg, dapply(mtcars[c("cyl","vs")], qF), mtcars[c("hp","carb")])
    Error in getenvFUN("lfe_demeanlist", msg) :
     For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
    Calls: fFtest ... fvar.default -> fHDwithin.default -> demean -> getenvFUN
    Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-patched-linux-x86_64, r-release-linux-x86_64

Version: 1.4.2
Check: tests
Result: ERROR
     Running 'testthat.R' [103s/114s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > # rm(list = ls())
     > # Sys.setenv("R_TESTS" = "")
     > library(testthat)
     > library(collapse)
     collapse 1.4.2, see ?`collapse-package` or ?`collapse-documentation`
     Note: stats::D -> D.expression, D.call, D.name
    
     Attaching package: 'collapse'
    
     The following object is masked from 'package:stats':
    
     D
    
     >
     > test_check("collapse")
     == Failed tests ================================================================
     -- Error (test-fHDbetween-fHDwithin-HDB-HDW.R:88:3): fHDbetween with two factors performs like lfe::demeanlist --
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     x
     1. +-testthat::expect_equal(...) test-fHDbetween-fHDwithin-HDB-HDW.R:88:2
     2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
     3. | \-rlang::eval_bare(expr, quo_get_env(quo))
     4. +-collapse::fHDbetween(x, fl)
     5. \-collapse::fHDbetween.default(x, fl)
     6. +-collapse:::setAttributes(...)
     7. \-collapse:::demean(x, fl, weights = w, means = TRUE, ...)
     8. \-collapse:::getenvFUN("lfe_demeanlist", msg)
     -- Error (test-fHDbetween-fHDwithin-HDB-HDW.R:103:3): fHDwithin with two factors performs like lfe::demeanlist --
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     x
     1. +-testthat::expect_equal(...) test-fHDbetween-fHDwithin-HDB-HDW.R:103:2
     2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
     3. | \-rlang::eval_bare(expr, quo_get_env(quo))
     4. +-collapse::fHDwithin(x, fl)
     5. \-collapse::fHDwithin.default(x, fl)
     6. +-collapse:::setAttributes(demean(x, fl, weights = w, ...), ax)
     7. \-collapse:::demean(x, fl, weights = w, ...)
     8. \-collapse:::getenvFUN("lfe_demeanlist", msg)
     -- Error (test-fHDbetween-fHDwithin-HDB-HDW.R:158:3): fHDbetween with multiple variables performs like lm --
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     x
     1. +-testthat::expect_equal(...) test-fHDbetween-fHDwithin-HDB-HDW.R:158:2
     2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
     3. | \-rlang::eval_bare(expr, quo_get_env(quo))
     4. +-collapse::fHDbetween(data$PCGDP, data[-5])
     5. \-collapse::fHDbetween.default(data$PCGDP, data[-5])
     6. \-collapse:::demean(...)
     7. \-collapse:::getenvFUN("lfe_demeanlist", msg)
     -- Error (test-fHDbetween-fHDwithin-HDB-HDW.R:181:3): fHDwithin with multiple variables performs like lm --
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     x
     1. +-testthat::expect_equal(...) test-fHDbetween-fHDwithin-HDB-HDW.R:181:2
     2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
     3. | \-rlang::eval_bare(expr, quo_get_env(quo))
     4. +-collapse::fHDwithin(data$PCGDP, data[-5])
     5. \-collapse::fHDwithin.default(data$PCGDP, data[-5])
     6. \-collapse:::demean(...)
     7. \-collapse:::getenvFUN("lfe_demeanlist", msg)
     -- Error (???): HDW data.frame method (formula input) performs properly --------
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     x
     1. +-stats::model.frame(...)
     2. +-stats::model.frame.default(...)
     3. | \-base::is.data.frame(data)
     4. +-collapse::HDW(...)
     5. \-collapse:::HDW.data.frame(...)
     6. \-collapse:::demean(...)
     7. \-collapse:::getenvFUN("lfe_demeanlist", msg)
     -- Error (???): HDW data.frame method (formula input) with 2-sided formula performs properly --
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     x
     1. +-stats::model.frame(...)
     2. +-stats::model.frame.default(...)
     3. | \-base::is.data.frame(data)
     4. +-collapse::HDW(...)
     5. \-collapse:::HDW.data.frame(...)
     6. \-collapse:::demean(...)
     7. \-collapse:::getenvFUN("lfe_demeanlist", msg)
     -- Error (???): HDW data.frame method (formula input) with 2-sided formula and missing values performs properly --
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     x
     1. +-stats::model.frame(...)
     2. +-stats::model.frame.default(...)
     3. | \-base::is.data.frame(data)
     4. +-collapse::HDW(...)
     5. \-collapse:::HDW.data.frame(...)
     6. \-collapse:::demean(...)
     7. \-collapse:::getenvFUN("lfe_demeanlist", msg)
     -- Error (test-flm-fFtest.R:37:3): fFtest works as intended --------------------
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     x
     1. \-collapse::fFtest(...) test-flm-fFtest.R:37:2
     2. +-collapse::fvar.default(...)
     3. \-collapse::fHDwithin.default(...)
     4. \-collapse:::demean(...)
     5. \-collapse:::getenvFUN("lfe_demeanlist", msg)
    
     [ FAIL 8 | WARN 0 | SKIP 0 | PASS 9587 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 1.4.2
Check: re-building of vignette outputs
Result: WARN
    Error(s) in re-building vignettes:
     ...
    --- re-building 'collapse_and_dplyr.Rmd' using rmarkdown
    
    Attaching package: 'dplyr'
    
    The following objects are masked from 'package:stats':
    
     filter, lag
    
    The following objects are masked from 'package:base':
    
     intersect, setdiff, setequal, union
    
    collapse 1.4.2, see ?`collapse-package` or ?`collapse-documentation`
    Note: stats::D -> D.expression, D.call, D.name
    
    Attaching package: 'collapse'
    
    The following object is masked from 'package:stats':
    
     D
    
    Panel-lag computed without timevar: Assuming ordered data
    Warning in FUN(X[[i]], ...) : NaNs produced
    Warning in baselog(y) : NaNs produced
    --- finished re-building 'collapse_and_dplyr.Rmd'
    
    --- re-building 'collapse_and_plm.Rmd' using rmarkdown
    
    Attaching package: 'plm'
    
    The following object is masked from 'package:data.table':
    
     between
    
    collapse 1.4.2, see ?`collapse-package` or ?`collapse-documentation`
    Note: stats::D -> D.expression, D.call, D.name
    
    Attaching package: 'collapse'
    
    The following object is masked from 'package:stats':
    
     D
    
    Quitting from lines 213-218 (collapse_and_plm.Rmd)
    Error: processing vignette 'collapse_and_plm.Rmd' failed with diagnostics:
    For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
    --- failed re-building 'collapse_and_plm.Rmd'
    
    --- re-building 'collapse_intro.Rmd' using rmarkdown
    Loading required package: MASS
    Loading required package: strucchange
    Loading required package: zoo
    
    Attaching package: 'zoo'
    
    The following objects are masked from 'package:base':
    
     as.Date, as.Date.numeric
    
    Loading required package: sandwich
    Loading required package: urca
    Loading required package: lmtest
    
    Attaching package: 'dplyr'
    
    The following object is masked from 'package:MASS':
    
     select
    
    The following objects are masked from 'package:stats':
    
     filter, lag
    
    The following objects are masked from 'package:base':
    
     intersect, setdiff, setequal, union
    
    collapse 1.4.2, see ?`collapse-package` or ?`collapse-documentation`
    Note: stats::D -> D.expression, D.call, D.name
    
    Attaching package: 'collapse'
    
    The following object is masked from 'package:vars':
    
     B
    
    The following object is masked from 'package:zoo':
    
     is.regular
    
    The following object is masked from 'package:stats':
    
     D
    
    
    Attaching package: 'data.table'
    
    The following objects are masked from 'package:dplyr':
    
     between, first, last
    
    Warning in FUN(X[[i]], ...) : NaNs produced
    Warning in FUN(X[[i]], ...) : NaNs produced
    Warning in FUN(X[[i]], ...) : NaNs produced
    Warning in FUN(X[[i]], ...) : NaNs produced
    Warning in FUN(X[[i]], ...) : NaNs produced
    Warning in lapply(., log10) : NaNs produced
    Warning in lapply(., log10) : NaNs produced
    Warning in lapply(., log10) : NaNs produced
    Warning in FUN(X[[i]], ...) : NaNs produced
    Warning in lapply(., log10) : NaNs produced
    Warning in FUN(X[[i]], ...) : NaNs produced
    Warning in lapply(., log10) : NaNs produced
    Warning in FUN(X[[i]], ...) : NaNs produced
    Warning in unused_arg_action(match.call(), ...) :
     Unused argument (w = w) passed to fmin.data.frame
    Warning in unused_arg_action(match.call(), ...) :
     Unused argument (w = w) passed to fmax.data.frame
    Quitting from lines 1253-1266 (collapse_intro.Rmd)
    Error: processing vignette 'collapse_intro.Rmd' failed with diagnostics:
    For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
    --- failed re-building 'collapse_intro.Rmd'
    
    SUMMARY: processing the following files failed:
     'collapse_and_plm.Rmd' 'collapse_intro.Rmd'
    
    Error: Vignette re-building failed.
    Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-patched-linux-x86_64, r-release-linux-x86_64

Version: 1.4.2
Check: tests
Result: ERROR
     Running ‘testthat.R’ [73s/102s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > # rm(list = ls())
     > # Sys.setenv("R_TESTS" = "")
     > library(testthat)
     > library(collapse)
     collapse 1.4.2, see ?`collapse-package` or ?`collapse-documentation`
     Note: stats::D -> D.expression, D.call, D.name
    
     Attaching package: 'collapse'
    
     The following object is masked from 'package:stats':
    
     D
    
     >
     > test_check("collapse")
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error (test-fHDbetween-fHDwithin-HDB-HDW.R:88:3): fHDbetween with two factors performs like lfe::demeanlist ──
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-fHDbetween-fHDwithin-HDB-HDW.R:88:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─collapse::fHDbetween(x, fl)
     5. └─collapse::fHDbetween.default(x, fl)
     6. ├─collapse:::setAttributes(...)
     7. └─collapse:::demean(x, fl, weights = w, means = TRUE, ...)
     8. └─collapse:::getenvFUN("lfe_demeanlist", msg)
     ── Error (test-fHDbetween-fHDwithin-HDB-HDW.R:103:3): fHDwithin with two factors performs like lfe::demeanlist ──
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-fHDbetween-fHDwithin-HDB-HDW.R:103:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─collapse::fHDwithin(x, fl)
     5. └─collapse::fHDwithin.default(x, fl)
     6. ├─collapse:::setAttributes(demean(x, fl, weights = w, ...), ax)
     7. └─collapse:::demean(x, fl, weights = w, ...)
     8. └─collapse:::getenvFUN("lfe_demeanlist", msg)
     ── Error (test-fHDbetween-fHDwithin-HDB-HDW.R:158:3): fHDbetween with multiple variables performs like lm ──
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-fHDbetween-fHDwithin-HDB-HDW.R:158:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─collapse::fHDbetween(data$PCGDP, data[-5])
     5. └─collapse::fHDbetween.default(data$PCGDP, data[-5])
     6. └─collapse:::demean(...)
     7. └─collapse:::getenvFUN("lfe_demeanlist", msg)
     ── Error (test-fHDbetween-fHDwithin-HDB-HDW.R:181:3): fHDwithin with multiple variables performs like lm ──
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-fHDbetween-fHDwithin-HDB-HDW.R:181:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─collapse::fHDwithin(data$PCGDP, data[-5])
     5. └─collapse::fHDwithin.default(data$PCGDP, data[-5])
     6. └─collapse:::demean(...)
     7. └─collapse:::getenvFUN("lfe_demeanlist", msg)
     ── Error (???): HDW data.frame method (formula input) performs properly ────────
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─stats::model.frame(...)
     2. ├─stats::model.frame.default(...)
     3. │ └─base::is.data.frame(data)
     4. ├─collapse::HDW(...)
     5. └─collapse:::HDW.data.frame(...)
     6. └─collapse:::demean(...)
     7. └─collapse:::getenvFUN("lfe_demeanlist", msg)
     ── Error (???): HDW data.frame method (formula input) with 2-sided formula performs properly ──
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─stats::model.frame(...)
     2. ├─stats::model.frame.default(...)
     3. │ └─base::is.data.frame(data)
     4. ├─collapse::HDW(...)
     5. └─collapse:::HDW.data.frame(...)
     6. └─collapse:::demean(...)
     7. └─collapse:::getenvFUN("lfe_demeanlist", msg)
     ── Error (???): HDW data.frame method (formula input) with 2-sided formula and missing values performs properly ──
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─stats::model.frame(...)
     2. ├─stats::model.frame.default(...)
     3. │ └─base::is.data.frame(data)
     4. ├─collapse::HDW(...)
     5. └─collapse:::HDW.data.frame(...)
     6. └─collapse:::demean(...)
     7. └─collapse:::getenvFUN("lfe_demeanlist", msg)
     ── Error (test-flm-fFtest.R:37:3): fFtest works as intended ────────────────────
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. └─collapse::fFtest(...) test-flm-fFtest.R:37:2
     2. ├─collapse::fvar.default(...)
     3. └─collapse::fHDwithin.default(...)
     4. └─collapse:::demean(...)
     5. └─collapse:::getenvFUN("lfe_demeanlist", msg)
    
     [ FAIL 8 | WARN 0 | SKIP 0 | PASS 9587 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 1.4.2
Check: installed package size
Result: NOTE
     installed size is 5.8Mb
     sub-directories of 1Mb or more:
     doc 1.9Mb
     libs 2.0Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-windows-ix86+x86_64, r-patched-solaris-x86, r-release-macos-x86_64, r-release-windows-ix86+x86_64, r-oldrel-macos-x86_64, r-oldrel-windows-ix86+x86_64

Version: 1.4.2
Check: examples
Result: ERROR
    Running examples in ‘collapse-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: fFtest
    > ### Title: Fast F-test for Linear Models (with Factors)
    > ### Aliases: fFtest
    > ### Keywords: htest
    >
    > ### ** Examples
    >
    > ## We could use fFtest as a seasonality test:
    > fFtest(AirPassengers, qF(cycle(AirPassengers))) # Testing for level-seasonality
     R-Sq. DF1 DF2 F-Stat. P-value
     0.106 11 132 1.424 0.169
    > fFtest(AirPassengers, qF(cycle(AirPassengers)), # Seasonality test around a cubic trend
    + poly(seq_along(AirPassengers), 3))
     R-Sq. DF1 DF2 F-Stat. P-Value
    Full Model 0.965 14 129 250.585 0.000
    Restricted Model 0.862 3 140 291.593 0.000
    Exclusion Rest. 0.102 11 129 33.890 0.000
    > fFtest(fdiff(AirPassengers), qF(cycle(AirPassengers))) # Seasonality in first-difference
     R-Sq. DF1 DF2 F-Stat. P-value
     0.749 11 131 35.487 0.000
    >
    > ## A more classical example with only continuous variables
    > fFtest(mtcars$mpg, mtcars[c("cyl","vs")], mtcars[c("hp","carb")])
     R-Sq. DF1 DF2 F-Stat. P-Value
    Full Model 0.750 4 27 20.261 0.000
    Restricted Model 0.605 2 29 22.175 0.000
    Exclusion Rest. 0.145 2 27 7.858 0.002
    >
    > ## Now encoding cyl and vs as factors
    > fFtest(mtcars$mpg, dapply(mtcars[c("cyl","vs")], qF), mtcars[c("hp","carb")])
    Error in getenvFUN("lfe_demeanlist", msg) :
     For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
    Calls: fFtest ... fvar.default -> fHDwithin.default -> demean -> getenvFUN
    Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-patched-solaris-x86

Version: 1.4.2
Check: tests
Result: ERROR
     Running ‘testthat.R’ [124s/322s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > # rm(list = ls())
     > # Sys.setenv("R_TESTS" = "")
     > library(testthat)
     > library(collapse)
     collapse 1.4.2, see ?`collapse-package` or ?`collapse-documentation`
     Note: stats::D -> D.expression, D.call, D.name
    
     Attaching package: 'collapse'
    
     The following object is masked from 'package:stats':
    
     D
    
     >
     > test_check("collapse")
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error (test-fHDbetween-fHDwithin-HDB-HDW.R:88:3): fHDbetween with two factors performs like lfe::demeanlist ──
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-fHDbetween-fHDwithin-HDB-HDW.R:88:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─collapse::fHDbetween(x, fl)
     5. └─collapse::fHDbetween.default(x, fl)
     6. ├─collapse:::setAttributes(...)
     7. └─collapse:::demean(x, fl, weights = w, means = TRUE, ...)
     8. └─collapse:::getenvFUN("lfe_demeanlist", msg)
     ── Error (test-fHDbetween-fHDwithin-HDB-HDW.R:103:3): fHDwithin with two factors performs like lfe::demeanlist ──
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-fHDbetween-fHDwithin-HDB-HDW.R:103:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─collapse::fHDwithin(x, fl)
     5. └─collapse::fHDwithin.default(x, fl)
     6. ├─collapse:::setAttributes(demean(x, fl, weights = w, ...), ax)
     7. └─collapse:::demean(x, fl, weights = w, ...)
     8. └─collapse:::getenvFUN("lfe_demeanlist", msg)
     ── Error (test-fHDbetween-fHDwithin-HDB-HDW.R:158:3): fHDbetween with multiple variables performs like lm ──
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-fHDbetween-fHDwithin-HDB-HDW.R:158:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─collapse::fHDbetween(data$PCGDP, data[-5])
     5. └─collapse::fHDbetween.default(data$PCGDP, data[-5])
     6. └─collapse:::demean(...)
     7. └─collapse:::getenvFUN("lfe_demeanlist", msg)
     ── Error (test-fHDbetween-fHDwithin-HDB-HDW.R:181:3): fHDwithin with multiple variables performs like lm ──
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-fHDbetween-fHDwithin-HDB-HDW.R:181:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─collapse::fHDwithin(data$PCGDP, data[-5])
     5. └─collapse::fHDwithin.default(data$PCGDP, data[-5])
     6. └─collapse:::demean(...)
     7. └─collapse:::getenvFUN("lfe_demeanlist", msg)
     ── Error (???): HDW data.frame method (formula input) performs properly ────────
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─stats::model.frame(...)
     2. ├─stats::model.frame.default(...)
     3. │ └─base::is.data.frame(data)
     4. ├─collapse::HDW(...)
     5. └─collapse:::HDW.data.frame(...)
     6. └─collapse:::demean(...)
     7. └─collapse:::getenvFUN("lfe_demeanlist", msg)
     ── Error (???): HDW data.frame method (formula input) with 2-sided formula performs properly ──
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─stats::model.frame(...)
     2. ├─stats::model.frame.default(...)
     3. │ └─base::is.data.frame(data)
     4. ├─collapse::HDW(...)
     5. └─collapse:::HDW.data.frame(...)
     6. └─collapse:::demean(...)
     7. └─collapse:::getenvFUN("lfe_demeanlist", msg)
     ── Error (???): HDW data.frame method (formula input) with 2-sided formula and missing values performs properly ──
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─stats::model.frame(...)
     2. ├─stats::model.frame.default(...)
     3. │ └─base::is.data.frame(data)
     4. ├─collapse::HDW(...)
     5. └─collapse:::HDW.data.frame(...)
     6. └─collapse:::demean(...)
     7. └─collapse:::getenvFUN("lfe_demeanlist", msg)
     ── Error (test-flm-fFtest.R:37:3): fFtest works as intended ────────────────────
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. └─collapse::fFtest(...) test-flm-fFtest.R:37:2
     2. ├─collapse::fvar.default(...)
     3. └─collapse::fHDwithin.default(...)
     4. └─collapse:::demean(...)
     5. └─collapse:::getenvFUN("lfe_demeanlist", msg)
    
     [ FAIL 8 | WARN 0 | SKIP 0 | PASS 9587 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 1.4.2
Check: re-building of vignette outputs
Result: WARN
    Error(s) in re-building vignettes:
    --- re-building ‘collapse_and_dplyr.Rmd’ using rmarkdown
    
    Attaching package: 'dplyr'
    
    The following objects are masked from 'package:stats':
    
     filter, lag
    
    The following objects are masked from 'package:base':
    
     intersect, setdiff, setequal, union
    
    collapse 1.4.2, see ?`collapse-package` or ?`collapse-documentation`
    Note: stats::D -> D.expression, D.call, D.name
    
    Attaching package: 'collapse'
    
    The following object is masked from 'package:stats':
    
     D
    
    Panel-lag computed without timevar: Assuming ordered data
    Warning in FUN(X[[i]], ...) : NaNs produced
    Warning in baselog(y) : NaNs produced
    --- finished re-building ‘collapse_and_dplyr.Rmd’
    
    --- re-building ‘collapse_and_plm.Rmd’ using rmarkdown
    
    Attaching package: 'plm'
    
    The following object is masked from 'package:data.table':
    
     between
    
    collapse 1.4.2, see ?`collapse-package` or ?`collapse-documentation`
    Note: stats::D -> D.expression, D.call, D.name
    
    Attaching package: 'collapse'
    
    The following object is masked from 'package:stats':
    
     D
    
    Quitting from lines 213-218 (collapse_and_plm.Rmd)
    Error: processing vignette 'collapse_and_plm.Rmd' failed with diagnostics:
    For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
    --- failed re-building ‘collapse_and_plm.Rmd’
    
    --- re-building ‘collapse_intro.Rmd’ using rmarkdown
    Loading required package: MASS
    Loading required package: strucchange
    Loading required package: zoo
    
    Attaching package: 'zoo'
    
    The following objects are masked from 'package:base':
    
     as.Date, as.Date.numeric
    
    Loading required package: sandwich
    Loading required package: urca
    Loading required package: lmtest
    
    Attaching package: 'dplyr'
    
    The following object is masked from 'package:MASS':
    
     select
    
    The following objects are masked from 'package:stats':
    
     filter, lag
    
    The following objects are masked from 'package:base':
    
     intersect, setdiff, setequal, union
    
    collapse 1.4.2, see ?`collapse-package` or ?`collapse-documentation`
    Note: stats::D -> D.expression, D.call, D.name
    
    Attaching package: 'collapse'
    
    The following object is masked from 'package:vars':
    
     B
    
    The following object is masked from 'package:zoo':
    
     is.regular
    
    The following object is masked from 'package:stats':
    
     D
    
    
    Attaching package: 'data.table'
    
    The following objects are masked from 'package:dplyr':
    
     between, first, last
    
    Warning in FUN(X[[i]], ...) : NaNs produced
    Warning in FUN(X[[i]], ...) : NaNs produced
    Warning in FUN(X[[i]], ...) : NaNs produced
    Warning in FUN(X[[i]], ...) : NaNs produced
    Warning in FUN(X[[i]], ...) : NaNs produced
    Warning in lapply(., log10) : NaNs produced
    Warning in lapply(., log10) : NaNs produced
    Warning in lapply(., log10) : NaNs produced
    Warning in FUN(X[[i]], ...) : NaNs produced
    Warning in lapply(., log10) : NaNs produced
    Warning in FUN(X[[i]], ...) : NaNs produced
    Warning in lapply(., log10) : NaNs produced
    Warning in FUN(X[[i]], ...) : NaNs produced
    Warning in unused_arg_action(match.call(), ...) :
     Unused argument (w = w) passed to fmin.data.frame
    Warning in unused_arg_action(match.call(), ...) :
     Unused argument (w = w) passed to fmax.data.frame
    Quitting from lines 1253-1266 (collapse_intro.Rmd)
    Error: processing vignette 'collapse_intro.Rmd' failed with diagnostics:
    For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
    --- failed re-building ‘collapse_intro.Rmd’
    
    SUMMARY: processing the following files failed:
     ‘collapse_and_plm.Rmd’ ‘collapse_intro.Rmd’
    
    Error: Vignette re-building failed.
    Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 1.4.2
Check: tests
Result: ERROR
     Running ‘testthat.R’ [128s/311s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > # rm(list = ls())
     > # Sys.setenv("R_TESTS" = "")
     > library(testthat)
     > library(collapse)
     collapse 1.4.2, see ?`collapse-package` or ?`collapse-documentation`
     Note: stats::D -> D.expression, D.call, D.name
    
     Attaching package: 'collapse'
    
     The following object is masked from 'package:stats':
    
     D
    
     >
     > test_check("collapse")
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error (test-fHDbetween-fHDwithin-HDB-HDW.R:88:3): fHDbetween with two factors performs like lfe::demeanlist ──
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-fHDbetween-fHDwithin-HDB-HDW.R:88:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─collapse::fHDbetween(x, fl)
     5. └─collapse::fHDbetween.default(x, fl)
     6. ├─collapse:::setAttributes(...)
     7. └─collapse:::demean(x, fl, weights = w, means = TRUE, ...)
     8. └─collapse:::getenvFUN("lfe_demeanlist", msg)
     ── Error (test-fHDbetween-fHDwithin-HDB-HDW.R:103:3): fHDwithin with two factors performs like lfe::demeanlist ──
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-fHDbetween-fHDwithin-HDB-HDW.R:103:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─collapse::fHDwithin(x, fl)
     5. └─collapse::fHDwithin.default(x, fl)
     6. ├─collapse:::setAttributes(demean(x, fl, weights = w, ...), ax)
     7. └─collapse:::demean(x, fl, weights = w, ...)
     8. └─collapse:::getenvFUN("lfe_demeanlist", msg)
     ── Error (test-fHDbetween-fHDwithin-HDB-HDW.R:158:3): fHDbetween with multiple variables performs like lm ──
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-fHDbetween-fHDwithin-HDB-HDW.R:158:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─collapse::fHDbetween(data$PCGDP, data[-5])
     5. └─collapse::fHDbetween.default(data$PCGDP, data[-5])
     6. └─collapse:::demean(...)
     7. └─collapse:::getenvFUN("lfe_demeanlist", msg)
     ── Error (test-fHDbetween-fHDwithin-HDB-HDW.R:181:3): fHDwithin with multiple variables performs like lm ──
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-fHDbetween-fHDwithin-HDB-HDW.R:181:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─collapse::fHDwithin(data$PCGDP, data[-5])
     5. └─collapse::fHDwithin.default(data$PCGDP, data[-5])
     6. └─collapse:::demean(...)
     7. └─collapse:::getenvFUN("lfe_demeanlist", msg)
     ── Error (???): HDW data.frame method (formula input) performs properly ────────
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─stats::model.frame(...)
     2. ├─stats::model.frame.default(...)
     3. │ └─base::is.data.frame(data)
     4. ├─collapse::HDW(...)
     5. └─collapse:::HDW.data.frame(...)
     6. └─collapse:::demean(...)
     7. └─collapse:::getenvFUN("lfe_demeanlist", msg)
     ── Error (???): HDW data.frame method (formula input) with 2-sided formula performs properly ──
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─stats::model.frame(...)
     2. ├─stats::model.frame.default(...)
     3. │ └─base::is.data.frame(data)
     4. ├─collapse::HDW(...)
     5. └─collapse:::HDW.data.frame(...)
     6. └─collapse:::demean(...)
     7. └─collapse:::getenvFUN("lfe_demeanlist", msg)
     ── Error (???): HDW data.frame method (formula input) with 2-sided formula and missing values performs properly ──
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─stats::model.frame(...)
     2. ├─stats::model.frame.default(...)
     3. │ └─base::is.data.frame(data)
     4. ├─collapse::HDW(...)
     5. └─collapse:::HDW.data.frame(...)
     6. └─collapse:::demean(...)
     7. └─collapse:::getenvFUN("lfe_demeanlist", msg)
     ── Error (test-flm-fFtest.R:37:3): fFtest works as intended ────────────────────
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. └─collapse::fFtest(...) test-flm-fFtest.R:37:2
     2. ├─collapse::fvar.default(...)
     3. └─collapse::fHDwithin.default(...)
     4. └─collapse:::demean(...)
     5. └─collapse:::getenvFUN("lfe_demeanlist", msg)
    
     [ FAIL 8 | WARN 0 | SKIP 0 | PASS 9587 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 1.4.2
Check: tests
Result: ERROR
     Running ‘testthat.R’ [97s/105s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > # rm(list = ls())
     > # Sys.setenv("R_TESTS" = "")
     > library(testthat)
     > library(collapse)
     collapse 1.4.2, see ?`collapse-package` or ?`collapse-documentation`
     Note: stats::D -> D.expression, D.call, D.name
    
     Attaching package: 'collapse'
    
     The following object is masked from 'package:stats':
    
     D
    
     >
     > test_check("collapse")
     ── ERROR (test-fHDbetween-fHDwithin-HDB-HDW.R:88:3): fHDbetween with two factors
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-fHDbetween-fHDwithin-HDB-HDW.R:88:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─collapse::fHDbetween(x, fl)
     5. └─collapse::fHDbetween.default(x, fl)
     6. ├─collapse:::setAttributes(...)
     7. └─collapse:::demean(x, fl, weights = w, means = TRUE, ...)
     8. └─collapse:::getenvFUN("lfe_demeanlist", msg)
    
     ── ERROR (test-fHDbetween-fHDwithin-HDB-HDW.R:103:3): fHDwithin with two factors
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-fHDbetween-fHDwithin-HDB-HDW.R:103:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─collapse::fHDwithin(x, fl)
     5. └─collapse::fHDwithin.default(x, fl)
     6. ├─collapse:::setAttributes(demean(x, fl, weights = w, ...), ax)
     7. └─collapse:::demean(x, fl, weights = w, ...)
     8. └─collapse:::getenvFUN("lfe_demeanlist", msg)
    
     ── ERROR (test-fHDbetween-fHDwithin-HDB-HDW.R:158:3): fHDbetween with multiple v
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-fHDbetween-fHDwithin-HDB-HDW.R:158:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─collapse::fHDbetween(data$PCGDP, data[-5])
     5. └─collapse::fHDbetween.default(data$PCGDP, data[-5])
     6. └─collapse:::demean(...)
     7. └─collapse:::getenvFUN("lfe_demeanlist", msg)
    
     ── ERROR (test-fHDbetween-fHDwithin-HDB-HDW.R:181:3): fHDwithin with multiple va
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-fHDbetween-fHDwithin-HDB-HDW.R:181:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─collapse::fHDwithin(data$PCGDP, data[-5])
     5. └─collapse::fHDwithin.default(data$PCGDP, data[-5])
     6. └─collapse:::demean(...)
     7. └─collapse:::getenvFUN("lfe_demeanlist", msg)
    
     ── ERROR (???): HDW data.frame method (formula input) performs properly ────────
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─stats::model.frame(...)
     2. ├─stats::model.frame.default(...)
     3. │ └─base::is.data.frame(data)
     4. ├─collapse::HDW(...)
     5. └─collapse:::HDW.data.frame(...)
     6. └─collapse:::demean(...)
     7. └─collapse:::getenvFUN("lfe_demeanlist", msg)
    
     ── ERROR (???): HDW data.frame method (formula input) with 2-sided formula perfo
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─stats::model.frame(...)
     2. ├─stats::model.frame.default(...)
     3. │ └─base::is.data.frame(data)
     4. ├─collapse::HDW(...)
     5. └─collapse:::HDW.data.frame(...)
     6. └─collapse:::demean(...)
     7. └─collapse:::getenvFUN("lfe_demeanlist", msg)
    
     ── ERROR (???): HDW data.frame method (formula input) with 2-sided formula and m
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─stats::model.frame(...)
     2. ├─stats::model.frame.default(...)
     3. │ └─base::is.data.frame(data)
     4. ├─collapse::HDW(...)
     5. └─collapse:::HDW.data.frame(...)
     6. └─collapse:::demean(...)
     7. └─collapse:::getenvFUN("lfe_demeanlist", msg)
    
     ── ERROR (test-flm-fFtest.R:37:3): fFtest works as intended ────────────────────
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. └─collapse::fFtest(...) test-flm-fFtest.R:37:2
     2. ├─collapse::fvar.default(...)
     3. └─collapse::fHDwithin.default(...)
     4. └─collapse:::demean(...)
     5. └─collapse:::getenvFUN("lfe_demeanlist", msg)
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     ERROR (test-fHDbetween-fHDwithin-HDB-HDW.R:88:3): fHDbetween with two factors performs like lfe::demeanlist
     ERROR (test-fHDbetween-fHDwithin-HDB-HDW.R:103:3): fHDwithin with two factors performs like lfe::demeanlist
     ERROR (test-fHDbetween-fHDwithin-HDB-HDW.R:158:3): fHDbetween with multiple variables performs like lm
     ERROR (test-fHDbetween-fHDwithin-HDB-HDW.R:181:3): fHDwithin with multiple variables performs like lm
     ERROR (???): HDW data.frame method (formula input) performs properly
     ERROR (???): HDW data.frame method (formula input) with 2-sided formula performs properly
     ERROR (???): HDW data.frame method (formula input) with 2-sided formula and missing values performs properly
     ERROR (test-flm-fFtest.R:37:3): fFtest works as intended
    
     [ FAIL 8 | WARN 0 | SKIP 0 | PASS 9587 ]
     Error: Test failures
     Execution halted
Flavor: r-patched-linux-x86_64

Version: 1.4.2
Check: tests
Result: ERROR
     Running ‘testthat.R’ [142s/200s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > # rm(list = ls())
     > # Sys.setenv("R_TESTS" = "")
     > library(testthat)
     > library(collapse)
     collapse 1.4.2, see ?`collapse-package` or ?`collapse-documentation`
     Note: stats::D -> D.expression, D.call, D.name
    
     Attaching package: 'collapse'
    
     The following object is masked from 'package:stats':
    
     D
    
     >
     > test_check("collapse")
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error (test-fHDbetween-fHDwithin-HDB-HDW.R:88:3): fHDbetween with two factors performs like lfe::demeanlist ──
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-fHDbetween-fHDwithin-HDB-HDW.R:88:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─collapse::fHDbetween(x, fl)
     5. └─collapse::fHDbetween.default(x, fl)
     6. ├─collapse:::setAttributes(...)
     7. └─collapse:::demean(x, fl, weights = w, means = TRUE, ...)
     8. └─collapse:::getenvFUN("lfe_demeanlist", msg)
     ── Error (test-fHDbetween-fHDwithin-HDB-HDW.R:103:3): fHDwithin with two factors performs like lfe::demeanlist ──
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-fHDbetween-fHDwithin-HDB-HDW.R:103:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─collapse::fHDwithin(x, fl)
     5. └─collapse::fHDwithin.default(x, fl)
     6. ├─collapse:::setAttributes(demean(x, fl, weights = w, ...), ax)
     7. └─collapse:::demean(x, fl, weights = w, ...)
     8. └─collapse:::getenvFUN("lfe_demeanlist", msg)
     ── Error (test-fHDbetween-fHDwithin-HDB-HDW.R:158:3): fHDbetween with multiple variables performs like lm ──
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-fHDbetween-fHDwithin-HDB-HDW.R:158:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─collapse::fHDbetween(data$PCGDP, data[-5])
     5. └─collapse::fHDbetween.default(data$PCGDP, data[-5])
     6. └─collapse:::demean(...)
     7. └─collapse:::getenvFUN("lfe_demeanlist", msg)
     ── Error (test-fHDbetween-fHDwithin-HDB-HDW.R:181:3): fHDwithin with multiple variables performs like lm ──
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-fHDbetween-fHDwithin-HDB-HDW.R:181:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─collapse::fHDwithin(data$PCGDP, data[-5])
     5. └─collapse::fHDwithin.default(data$PCGDP, data[-5])
     6. └─collapse:::demean(...)
     7. └─collapse:::getenvFUN("lfe_demeanlist", msg)
     ── Error (???): HDW data.frame method (formula input) performs properly ────────
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─stats::model.frame(...)
     2. ├─stats::model.frame.default(...)
     3. │ └─base::is.data.frame(data)
     4. ├─collapse::HDW(...)
     5. └─collapse:::HDW.data.frame(...)
     6. └─collapse:::demean(...)
     7. └─collapse:::getenvFUN("lfe_demeanlist", msg)
     ── Error (???): HDW data.frame method (formula input) with 2-sided formula performs properly ──
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─stats::model.frame(...)
     2. ├─stats::model.frame.default(...)
     3. │ └─base::is.data.frame(data)
     4. ├─collapse::HDW(...)
     5. └─collapse:::HDW.data.frame(...)
     6. └─collapse:::demean(...)
     7. └─collapse:::getenvFUN("lfe_demeanlist", msg)
     ── Error (???): HDW data.frame method (formula input) with 2-sided formula and missing values performs properly ──
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─stats::model.frame(...)
     2. ├─stats::model.frame.default(...)
     3. │ └─base::is.data.frame(data)
     4. ├─collapse::HDW(...)
     5. └─collapse:::HDW.data.frame(...)
     6. └─collapse:::demean(...)
     7. └─collapse:::getenvFUN("lfe_demeanlist", msg)
     ── Error (test-flm-fFtest.R:37:3): fFtest works as intended ────────────────────
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. └─collapse::fFtest(...) test-flm-fFtest.R:37:2
     2. ├─collapse::fvar.default(...)
     3. └─collapse::fHDwithin.default(...)
     4. └─collapse:::demean(...)
     5. └─collapse:::getenvFUN("lfe_demeanlist", msg)
    
     [ FAIL 8 | WARN 0 | SKIP 0 | PASS 9587 ]
     Error: Test failures
     Execution halted
Flavor: r-patched-solaris-x86

Version: 1.4.2
Check: re-building of vignette outputs
Result: WARN
    Error(s) in re-building vignettes:
     ...
    --- re-building ‘collapse_and_dplyr.Rmd’ using rmarkdown
    Warning in engine$weave(file, quiet = quiet, encoding = enc) :
     Pandoc (>= 1.12.3) and/or pandoc-citeproc not available. Falling back to R Markdown v1.
    
    Attaching package: 'dplyr'
    
    The following objects are masked from 'package:stats':
    
     filter, lag
    
    The following objects are masked from 'package:base':
    
     intersect, setdiff, setequal, union
    
    collapse 1.4.2, see ?`collapse-package` or ?`collapse-documentation`
    Note: stats::D -> D.expression, D.call, D.name
    
    Attaching package: 'collapse'
    
    The following object is masked from 'package:stats':
    
     D
    
    Panel-lag computed without timevar: Assuming ordered data
    Warning in FUN(X[[i]], ...) : NaNs produced
    Warning in baselog(y) : NaNs produced
    --- finished re-building ‘collapse_and_dplyr.Rmd’
    
    --- re-building ‘collapse_and_plm.Rmd’ using rmarkdown
    Warning in engine$weave(file, quiet = quiet, encoding = enc) :
     Pandoc (>= 1.12.3) and/or pandoc-citeproc not available. Falling back to R Markdown v1.
    
    Attaching package: 'plm'
    
    The following object is masked from 'package:data.table':
    
     between
    
    collapse 1.4.2, see ?`collapse-package` or ?`collapse-documentation`
    Note: stats::D -> D.expression, D.call, D.name
    
    Attaching package: 'collapse'
    
    The following object is masked from 'package:stats':
    
     D
    
    Quitting from lines 213-218 (collapse_and_plm.Rmd)
    Error: processing vignette 'collapse_and_plm.Rmd' failed with diagnostics:
    For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
    --- failed re-building ‘collapse_and_plm.Rmd’
    
    --- re-building ‘collapse_intro.Rmd’ using rmarkdown
    Warning in engine$weave(file, quiet = quiet, encoding = enc) :
     Pandoc (>= 1.12.3) and/or pandoc-citeproc not available. Falling back to R Markdown v1.
    Loading required package: MASS
    Loading required package: strucchange
    Loading required package: zoo
    
    Attaching package: 'zoo'
    
    The following objects are masked from 'package:base':
    
     as.Date, as.Date.numeric
    
    Loading required package: sandwich
    Loading required package: urca
    Loading required package: lmtest
    
    Attaching package: 'dplyr'
    
    The following object is masked from 'package:MASS':
    
     select
    
    The following objects are masked from 'package:stats':
    
     filter, lag
    
    The following objects are masked from 'package:base':
    
     intersect, setdiff, setequal, union
    
    collapse 1.4.2, see ?`collapse-package` or ?`collapse-documentation`
    Note: stats::D -> D.expression, D.call, D.name
    
    Attaching package: 'collapse'
    
    The following object is masked from 'package:vars':
    
     B
    
    The following object is masked from 'package:zoo':
    
     is.regular
    
    The following object is masked from 'package:stats':
    
     D
    
    
    Attaching package: 'data.table'
    
    The following objects are masked from 'package:dplyr':
    
     between, first, last
    
    Warning in FUN(X[[i]], ...) : NaNs produced
    Warning in FUN(X[[i]], ...) : NaNs produced
    Warning in FUN(X[[i]], ...) : NaNs produced
    Warning in FUN(X[[i]], ...) : NaNs produced
    Warning in FUN(X[[i]], ...) : NaNs produced
    Warning in lapply(., log10) : NaNs produced
    Warning in lapply(., log10) : NaNs produced
    Warning in lapply(., log10) : NaNs produced
    Warning in FUN(X[[i]], ...) : NaNs produced
    Warning in lapply(., log10) : NaNs produced
    Warning in FUN(X[[i]], ...) : NaNs produced
    Warning in lapply(., log10) : NaNs produced
    Warning in FUN(X[[i]], ...) : NaNs produced
    Warning in unused_arg_action(match.call(), ...) :
     Unused argument (w = w) passed to fmin.data.frame
    Warning in unused_arg_action(match.call(), ...) :
     Unused argument (w = w) passed to fmax.data.frame
    Quitting from lines 1253-1266 (collapse_intro.Rmd)
    Error: processing vignette 'collapse_intro.Rmd' failed with diagnostics:
    For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
    --- failed re-building ‘collapse_intro.Rmd’
    
    SUMMARY: processing the following files failed:
     ‘collapse_and_plm.Rmd’ ‘collapse_intro.Rmd’
    
    Error: Vignette re-building failed.
    Execution halted
Flavor: r-patched-solaris-x86

Version: 1.4.2
Check: tests
Result: ERROR
     Running ‘testthat.R’ [96s/104s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > # rm(list = ls())
     > # Sys.setenv("R_TESTS" = "")
     > library(testthat)
     > library(collapse)
     collapse 1.4.2, see ?`collapse-package` or ?`collapse-documentation`
     Note: stats::D -> D.expression, D.call, D.name
    
     Attaching package: 'collapse'
    
     The following object is masked from 'package:stats':
    
     D
    
     >
     > test_check("collapse")
     ── ERROR (test-fHDbetween-fHDwithin-HDB-HDW.R:88:3): fHDbetween with two factors
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-fHDbetween-fHDwithin-HDB-HDW.R:88:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─collapse::fHDbetween(x, fl)
     5. └─collapse::fHDbetween.default(x, fl)
     6. ├─collapse:::setAttributes(...)
     7. └─collapse:::demean(x, fl, weights = w, means = TRUE, ...)
     8. └─collapse:::getenvFUN("lfe_demeanlist", msg)
    
     ── ERROR (test-fHDbetween-fHDwithin-HDB-HDW.R:103:3): fHDwithin with two factors
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-fHDbetween-fHDwithin-HDB-HDW.R:103:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─collapse::fHDwithin(x, fl)
     5. └─collapse::fHDwithin.default(x, fl)
     6. ├─collapse:::setAttributes(demean(x, fl, weights = w, ...), ax)
     7. └─collapse:::demean(x, fl, weights = w, ...)
     8. └─collapse:::getenvFUN("lfe_demeanlist", msg)
    
     ── ERROR (test-fHDbetween-fHDwithin-HDB-HDW.R:158:3): fHDbetween with multiple v
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-fHDbetween-fHDwithin-HDB-HDW.R:158:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─collapse::fHDbetween(data$PCGDP, data[-5])
     5. └─collapse::fHDbetween.default(data$PCGDP, data[-5])
     6. └─collapse:::demean(...)
     7. └─collapse:::getenvFUN("lfe_demeanlist", msg)
    
     ── ERROR (test-fHDbetween-fHDwithin-HDB-HDW.R:181:3): fHDwithin with multiple va
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-fHDbetween-fHDwithin-HDB-HDW.R:181:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─collapse::fHDwithin(data$PCGDP, data[-5])
     5. └─collapse::fHDwithin.default(data$PCGDP, data[-5])
     6. └─collapse:::demean(...)
     7. └─collapse:::getenvFUN("lfe_demeanlist", msg)
    
     ── ERROR (???): HDW data.frame method (formula input) performs properly ────────
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─stats::model.frame(...)
     2. ├─stats::model.frame.default(...)
     3. │ └─base::is.data.frame(data)
     4. ├─collapse::HDW(...)
     5. └─collapse:::HDW.data.frame(...)
     6. └─collapse:::demean(...)
     7. └─collapse:::getenvFUN("lfe_demeanlist", msg)
    
     ── ERROR (???): HDW data.frame method (formula input) with 2-sided formula perfo
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─stats::model.frame(...)
     2. ├─stats::model.frame.default(...)
     3. │ └─base::is.data.frame(data)
     4. ├─collapse::HDW(...)
     5. └─collapse:::HDW.data.frame(...)
     6. └─collapse:::demean(...)
     7. └─collapse:::getenvFUN("lfe_demeanlist", msg)
    
     ── ERROR (???): HDW data.frame method (formula input) with 2-sided formula and m
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. ├─stats::model.frame(...)
     2. ├─stats::model.frame.default(...)
     3. │ └─base::is.data.frame(data)
     4. ├─collapse::HDW(...)
     5. └─collapse:::HDW.data.frame(...)
     6. └─collapse:::demean(...)
     7. └─collapse:::getenvFUN("lfe_demeanlist", msg)
    
     ── ERROR (test-flm-fFtest.R:37:3): fFtest works as intended ────────────────────
     Error: For higher-dimensional centering and projecting out interactions need to install.packages('lfe'), then unload [detach('package:collapse', unload = TRUE)] and reload [library(collapse)].
     Backtrace:
     █
     1. └─collapse::fFtest(...) test-flm-fFtest.R:37:2
     2. ├─collapse::fvar.default(...)
     3. └─collapse::fHDwithin.default(...)
     4. └─collapse:::demean(...)
     5. └─collapse:::getenvFUN("lfe_demeanlist", msg)
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     ERROR (test-fHDbetween-fHDwithin-HDB-HDW.R:88:3): fHDbetween with two factors performs like lfe::demeanlist
     ERROR (test-fHDbetween-fHDwithin-HDB-HDW.R:103:3): fHDwithin with two factors performs like lfe::demeanlist
     ERROR (test-fHDbetween-fHDwithin-HDB-HDW.R:158:3): fHDbetween with multiple variables performs like lm
     ERROR (test-fHDbetween-fHDwithin-HDB-HDW.R:181:3): fHDwithin with multiple variables performs like lm
     ERROR (???): HDW data.frame method (formula input) performs properly
     ERROR (???): HDW data.frame method (formula input) with 2-sided formula performs properly
     ERROR (???): HDW data.frame method (formula input) with 2-sided formula and missing values performs properly
     ERROR (test-flm-fFtest.R:37:3): fFtest works as intended
    
     [ FAIL 8 | WARN 0 | SKIP 0 | PASS 9587 ]
     Error: Test failures
     Execution halted
Flavor: r-release-linux-x86_64