* using log directory 'd:/Rcompile/CRANpkg/local/3.6/psycModel.Rcheck' * using R version 3.6.3 (2020-02-29) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'psycModel/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'psycModel' version '0.3.0' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'psycModel' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [10s] OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking contents of 'data' directory ... OK * checking data for non-ASCII characters ... OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... ERROR Running examples in 'psycModel-Ex.R' failed The error most likely occurred in: > ### Name: compare_fit > ### Title: Comparison of Model Fit > ### Aliases: compare_fit > > ### ** Examples > > # lme model > > fit1 <- lm_model( + data = popular, + response_variable = popular, + predictor_var = c(sex, extrav) + ) Fitting Model with lm: Formula = popular ~ sex + extrav > > fit2 <- lm_model( + data = popular, + response_variable = popular, + predictor_var = c(sex, extrav), + two_way_interaction_factor = c(sex, extrav) + ) Fitting Model with lm: Formula = popular ~ sex + extrav + sex*extrav > > compare_fit(fit1, fit2) Error in parse(text = .safe_deparse(model_call)) : :1:181: unexpected symbol 1: (function (formula, data, subset, weights, na.action, method = "qr", model = TRUE, x = FALSE, y = FALSE, qr = TRUE, singular.ok = TRUE, contrasts = NULL, offset, ...) { ret.x <- x ret.y ^ Calls: compare_fit ... .prepare_get_data -> .add_remaining_missing_variables -> parse Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [13s] ERROR Running 'testthat.R' [12s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(psycModel) > > test_check("psycModel") Loading required namespace: gridExtra Loading required namespace: qqplotr Loading required namespace: see Could not compute standard errors from random effects for diagnostic plot. Homogeneity of variance could not be computed. Cannot extract residual variance from objects of class 'lme'. == Skipped tests =============================================================== * On CRAN (4) == Failed tests ================================================================ -- Error (test-integrated-model-summary.R:35:3): test glm ---------------------- Error: :1:257: unexpected 'if' 1: nction (formula, family = gaussian, data, weights, subset, na.action, start = NULL, etastart, mustart, offset, control = list(...), model = TRUE, method = "glm.fit", x = FALSE, y = TRUE, singu ^ Backtrace: x 1. +-testthat::expect_warning(...) test-integrated-model-summary.R:35:2 2. | \-testthat:::expect_condition_matching(...) 3. | \-testthat:::quasi_capture(...) 4. | +-testthat:::.capture(...) 5. | | \-base::withCallingHandlers(...) 6. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. +-testthat::expect_warning(...) 8. | \-testthat:::expect_condition_matching(...) 9. | \-testthat:::quasi_capture(...) 10. | +-testthat:::.capture(...) 11. | | \-base::withCallingHandlers(...) 12. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 13. \-psycModel::integrated_model_summary(...) 14. \-psycModel::model_summary(...) 15. \-base::tryCatch(...) 16. \-base:::tryCatchList(expr, classes, parentenv, handlers) 17. \-base:::tryCatchOne(expr, names, parentenv, handlers[[1L]]) 18. \-value[[3L]](cond) [ FAIL 1 | WARN 1 | SKIP 4 | PASS 13 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [8s] WARNING Error(s) in re-building vignettes: --- re-building 'brief-introduction-to-select-syntax.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 --- finished re-building 'brief-introduction-to-select-syntax.Rmd' --- re-building 'quick-introduction.Rmd' using rmarkdown Warning in data_check(data) : The following columns are coerced into numeric: Species Warning: Model has interaction terms. VIFs might be inflated. You may check multicollinearity among predictors of a model without interaction terms. Loading required namespace: gridExtra Loading required namespace: qqplotr Loading required namespace: see Warning in value[[3L]](cond) : assumption_plot does not support this model type Quitting from lines 28-38 (quick-introduction.Rmd) Error: processing vignette 'quick-introduction.Rmd' failed with diagnostics: :1:181: unexpected symbol 1: (function (formula, data, subset, weights, na.action, method = "qr", model = TRUE, x = FALSE, y = FALSE, qr = TRUE, singular.ok = TRUE, contrasts = NULL, offset, ...) { ret.x <- x ret.y ^ --- failed re-building 'quick-introduction.Rmd' SUMMARY: processing the following file failed: 'quick-introduction.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... OK * DONE Status: 2 ERRORs, 1 WARNING