Package check result: OK Changes to worse in reverse depends: Package: fHMM Check: dependencies in R code New result: WARNING Missing or unexported objects: ‘oeli::check_date’ ‘oeli::find_closest_year’ Package: fHMM Check: examples New result: ERROR Running examples in ‘fHMM-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: decode_states > ### Title: Decode the underlying hidden state sequence > ### Aliases: decode_states viterbi > > ### ** Examples > > decode_states(dax_model_3t) Decoded states fHMM fitted model: * total estimation time: 7 mins * accepted runs: 100 of 100 * log-likelihood: 17650.02 > plot(dax_model_3t, type = "ts") Error: 'find_closest_year' is not an exported object from 'namespace:oeli' Execution halted Package: fHMM Check: re-building of vignette outputs New result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘fHMM.Rmd’ using rmarkdown --- finished re-building ‘fHMM.Rmd’ --- re-building ‘v01_model_definition.Rmd’ using rmarkdown --- finished re-building ‘v01_model_definition.Rmd’ --- re-building ‘v02_controls.Rmd’ using rmarkdown Quitting from lines 37-39 [unnamed-chunk-2] (v02_controls.Rmd) Error: processing vignette 'v02_controls.Rmd' failed with diagnostics: 'check_date' is not an exported object from 'namespace:oeli' --- failed re-building ‘v02_controls.Rmd’ --- re-building ‘v03_data_management.Rmd’ using rmarkdown Quitting from lines 69-71 [unnamed-chunk-3] (v03_data_management.Rmd) Error: processing vignette 'v03_data_management.Rmd' failed with diagnostics: 'check_date' is not an exported object from 'namespace:oeli' --- failed re-building ‘v03_data_management.Rmd’ --- re-building ‘v04_model_estimation.Rmd’ using rmarkdown Quitting from lines 81-94 [data preparation] (v04_model_estimation.Rmd) Error: processing vignette 'v04_model_estimation.Rmd' failed with diagnostics: 'check_date' is not an exported object from 'namespace:oeli' --- failed re-building ‘v04_model_estimation.Rmd’ --- re-building ‘v05_state_decoding_and_prediction.Rmd’ using rmarkdown Quitting from lines 55-56 [decoded-ts] (v05_state_decoding_and_prediction.Rmd) Error: processing vignette 'v05_state_decoding_and_prediction.Rmd' failed with diagnostics: 'find_closest_year' is not an exported object from 'namespace:oeli' --- failed re-building ‘v05_state_decoding_and_prediction.Rmd’ --- re-building ‘v06_model_checking.Rmd’ using rmarkdown ** Processing: fHMM-plot-res-1.png 960x576 pixels, 3x8 bits/pixel, RGB Input IDAT size = 94028 bytes Input file size = 94238 bytes Trying: zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 70632 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 = 70632 Output IDAT size = 70632 bytes (23396 bytes decrease) Output file size = 70710 bytes (23528 bytes = 24.97% decrease) --- finished re-building ‘v06_model_checking.Rmd’ --- re-building ‘v07_model_selection.Rmd’ using rmarkdown --- finished re-building ‘v07_model_selection.Rmd’ SUMMARY: processing the following files failed: ‘v02_controls.Rmd’ ‘v03_data_management.Rmd’ ‘v04_model_estimation.Rmd’ ‘v05_state_decoding_and_prediction.Rmd’ Error: Vignette re-building failed. Execution halted Package: fHMM Check: tests New result: ERROR Running ‘testthat.R’ [13s/13s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(fHMM) Thanks for using {fHMM} version 1.3.1! See https://loelschlaeger.de/fHMM for help. > > test_check("fHMM") [ FAIL 6 | WARN 0 | SKIP 13 | PASS 211 ] ══ Skipped tests (13) ══════════════════════════════════════════════════════════ • On CRAN (13): 'test-download_data.R:41:3', 'test-fHMM_controls.R:191:3', 'test-fHMM_controls.R:207:3', 'test-fHMM_controls.R:299:3', 'test-fHMM_controls.R:350:3', 'test-fHMM_data.R:16:3', 'test-fHMM_data.R:24:3', 'test-fHMM_data.R:43:3', 'test-fHMM_parameters.R:72:3', 'test-fit_model.R:44:3', 'test-fit_model.R:77:3', 'test-get_initial_values.R:20:3', 'test-get_initial_values.R:49:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-download_data.R:6:3'): input checks for download_data() work ─── Error: 'check_date' is not an exported object from 'namespace:oeli' Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-download_data.R:6:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─fHMM::download_data(symbol = "^GDAXI", from = "yesterday") ── Error ('test-fHMM_events.R:9:3'): event check works ───────────────────────── Error: 'check_date' is not an exported object from 'namespace:oeli' Backtrace: ▆ 1. └─fHMM::fHMM_events(events) at test-fHMM_events.R:9:3 ── Error ('test-plot.R:21:3'): plotting simulated fHMM_data works ────────────── Error: 'check_date' is not an exported object from 'namespace:oeli' Backtrace: ▆ 1. └─fHMM::fHMM_events(events) at test-plot.R:21:3 ── Error ('test-plot.R:39:3'): plotting simulated fHMM_data works ────────────── Error: 'check_date' is not an exported object from 'namespace:oeli' Backtrace: ▆ 1. └─fHMM::fHMM_events(events) at test-plot.R:39:3 ── Error ('test-plot.R:58:3'): plotting fHMM_model works ─────────────────────── Error: 'check_date' is not an exported object from 'namespace:oeli' Backtrace: ▆ 1. └─fHMM::fHMM_events(events) at test-plot.R:58:3 ── Error ('test-plot.R:93:3'): plotting hierarchical fHMM_model works ────────── Error: 'check_date' is not an exported object from 'namespace:oeli' Backtrace: ▆ 1. └─fHMM::fHMM_events(events) at test-plot.R:93:3 [ FAIL 6 | WARN 0 | SKIP 13 | PASS 211 ] Error: Test failures Execution halted