jmgirard / circumplex

R Package for the Analysis and Visualization of Circumplex Data
http://circumplex.jmgirard.com/
Other
11 stars 6 forks source link

Fix CRAN Errors for r-patched-linux and r-patched-solaris #8

Closed jmgirard closed 4 years ago

jmgirard commented 4 years ago

https://cran.r-project.org/web/checks/check_results_circumplex.html

Version: 0.3.3 Check: tests Result: ERROR Running ‘testthat.R’ [24s/25s] Running the tests in ‘tests/testthat.R’ failed. Complete output:

library(testthat) library(circumplex)

test_check("circumplex") ── 1. Failure: Quantile for circular radians works (@test-ssm_bootstrap.R#17) ─ qb not equivalent to as_radian(as_degree(c(180, 225, 270, 315, 0))). 1/5 mismatches [5] 6.28 - 0 == 6.28

 ── 2. Failure: Quantile for circular radians works (@test-ssm_bootstrap.R#27) ─
 `qb` not equivalent to as_radian(as_degree(c(270, 315, 0, 45, 90))).
 1/5 mismatches
 [3] 6.28 - 0 == 6.28

 ══ testthat results ═══════════════════════════════════════════════════════════
 [ OK: 204 | SKIPPED: 6 | WARNINGS: 0 | FAILED: 2 ]
 1. Failure: Quantile for circular radians works (@test-ssm_bootstrap.R#17)
 2. Failure: Quantile for circular radians works (@test-ssm_bootstrap.R#27)

 Error: testthat unit tests failed
 Execution halted

Flavor: r-patched-linux-x86_64

Version: 0.3.3 Check: package dependencies Result: ERROR Package required but not available: ‘ggforce’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.

Flavor: r-patched-solaris-x86

jmgirard commented 4 years ago

Problem due to change in how R handles 360 %% 360 from R 3.6.1 Patch onward. https://github.com/jmgirard/circumplex/blob/e0767c65fd51b8859e24c460c3741deb50fb9bd8/tests/testthat/test-ssm_bootstrap.R#L10-L28