- using R version 4.4.1 (2024-06-14)
- using platform: x86_64-apple-darwin20
- R was compiled by
Apple clang version 14.0.0 (clang-1400.0.29.202)
GNU Fortran (GCC) 12.2.0
- running under: macOS Ventura 13.3.1
- using session charset: UTF-8
- checking for file ‘oldr/DESCRIPTION’ ... OK
- this is package ‘oldr’ version ‘0.2.3’
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘oldr’ can be installed ... [4s/6s] OK
See the install log for details.
- 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 code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [1s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [1s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [1s/1s] 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 ... [4s/6s] OK
- checking Rd files ... [1s/1s] 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 ... [0s/0s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking R/sysdata.rda ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [17s/24s] ERROR
Running examples in ‘oldr-Ex.R’ failed
The error most likely occurred in:
> ### Name: report_op_docx
> ### Title: Create a DOCX report document containing RAM-OP survey results
> ### Aliases: report_op_docx
>
> ### ** Examples
>
> classicResults <- estimate_classic(
+ x = create_op(testSVY), w = testPSU, replicates = 9
+ )
ℹ Checking if demo, food, hunger, disability, adl, mental, dementia, health, income, wash, anthro, oedema, screening, visual, misc are RAM-OP indicators
✔ All of `indicators` are RAM-OP indicators
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
>
> probitResults <- estimate_probit(
+ x = create_op(testSVY), w = testPSU, replicates = 9
+ )
ℹ Checking if demo, food, hunger, disability, adl, mental, dementia, health, income, wash, anthro, oedema, screening, visual, misc are RAM-OP indicators
✔ All of `indicators` are RAM-OP indicators
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
Warning in estimateTransform.default(X, Y, weights, family, ...) :
Convergence failure: return code = 52
✔ x has the appropriate/expected data structure
>
> resultsDF <- merge_op(x = classicResults, y = probitResults)
>
> report_op_docx(
+ svy = testSVY, estimates = resultsDF, indicators = "mental",
+ filename = paste(tempdir(), "report", sep = "/")
+ )
Error: pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [31s/41s] ERROR
Running ‘spelling.R’ [0s/0s]
Running ‘testthat.R’ [31s/40s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(oldr)
>
> test_check("oldr")
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
i Checking if demo, food, hunger, disability, adl, mental, dementia, health, income, wash, anthro, oedema, screening, visual, misc are RAM-OP indicators
v All of `indicators` are RAM-OP indicators
i Checking if demos, adls are RAM-OP indicators
! demos is not a RAM-OP indicator.
i Only adl is a RAM-OP indicator.
i Returning adl
ℹ Checking if demo, food, hunger, disability, adl, mental, dementia, health, income, wash, anthro, oedema, screening, visual, misc are RAM-OP indicators
✔ All of `indicators` are RAM-OP indicators
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
ℹ Checking if demo, food, hunger, disability, adl, mental, dementia, health, income, wash, anthro, oedema, screening, visual, misc are RAM-OP indicators
✔ All of `indicators` are RAM-OP indicators
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
✔ x has the appropriate/expected data structure
ℹ Checking if demo, food, hunger, disability, adl, mental, dementia, health, income, wash, anthro, oedema, screening, visual, misc are RAM-OP indicators
✔ All of `indicators` are RAM-OP indicators
ℹ Checking if demo, food, hunger, disability, adl, mental, dementia, health, income, wash, anthro, oedema, screening, visual, misc are RAM-OP indicators
✔ All of `indicators` are RAM-OP indicators
[ FAIL 1 | WARN 1 | SKIP 1 | PASS 363 ]
══ Skipped tests (1) ═══════════════════════════════════════════════════════════
• On CRAN (1): 'test_charts.R:24:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-10-report.R:11:1'): (code run outside of `test_that()`) ────────
Error: pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
Backtrace:
▆
1. └─oldr::report_op_html(...) at test-10-report.R:11:1
2. └─rmarkdown::render(...)
3. └─rmarkdown::pandoc_available(required_pandoc, error = TRUE)
4. └─rmarkdown:::stop2(paste(msg, collapse = " "))
[ FAIL 1 | WARN 1 | SKIP 1 | PASS 363 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [20s/24s] OK
- checking PDF version of manual ... [6s/7s] OK
- DONE
Status: 2 ERRORs
- using check arguments '--no-clean-on-error '