R Under development (unstable) (2024-01-31 r85845 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # 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(nixtlar) > > test_check("nixtlar") Frequency chosen: H Frequency chosen: H Frequency chosen: H Frequency chosen: H [ FAIL 4 | WARN 0 | SKIP 0 | PASS 0 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-timegpt-anomaly_detection.R:4:5'): timegpt_anomaly_detection ─── Error in `.get_token()`: Please set TIMEGPT_TOKEN. Use nixtla_set_token() or set it as an environment variable in .Renviron Backtrace: ▆ 1. └─nixtlar::timegpt_anomaly_detection(test_data, id_col = "unique_id") at test-timegpt-anomaly_detection.R:4:5 2. ├─httr2::req_perform(...) 3. │ └─httr2:::check_request(req) 4. │ └─httr2:::is_request(req) 5. ├─httr2::req_body_json(...) 6. │ └─httr2:::check_request(req) 7. │ └─httr2:::is_request(req) 8. ├─httr2::req_user_agent(...) 9. │ └─httr2:::check_request(req) 10. │ └─httr2:::is_request(req) 11. ├─httr2::req_headers(...) 12. │ └─rlang::list2(...) 13. ├─base::paste("Bearer", .get_token()) 14. └─nixtlar::.get_token() ── Error ('test-timegpt_cross_validation.R:4:5'): timegpt_cross_validation ───── Error in `.get_token()`: Please set TIMEGPT_TOKEN. Use nixtla_set_token() or set it as an environment variable in .Renviron Backtrace: ▆ 1. └─nixtlar::timegpt_cross_validation(...) at test-timegpt_cross_validation.R:4:5 2. ├─httr2::req_perform(...) 3. │ └─httr2:::check_request(req) 4. │ └─httr2:::is_request(req) 5. ├─httr2::req_body_json(...) 6. │ └─httr2:::check_request(req) 7. │ └─httr2:::is_request(req) 8. ├─httr2::req_user_agent(...) 9. │ └─httr2:::check_request(req) 10. │ └─httr2:::is_request(req) 11. ├─httr2::req_headers(...) 12. │ └─rlang::list2(...) 13. ├─base::paste("Bearer", .get_token()) 14. └─nixtlar::.get_token() ── Error ('test-timegpt_forecast.R:4:5'): timegpt_forecast ───────────────────── Error in `.get_token()`: Please set TIMEGPT_TOKEN. Use nixtla_set_token() or set it as an environment variable in .Renviron Backtrace: ▆ 1. └─nixtlar::timegpt_forecast(...) at test-timegpt_forecast.R:4:5 2. ├─httr2::req_perform(...) 3. │ └─httr2:::check_request(req) 4. │ └─httr2:::is_request(req) 5. ├─httr2::req_body_json(...) 6. │ └─httr2:::check_request(req) 7. │ └─httr2:::is_request(req) 8. ├─httr2::req_user_agent(...) 9. │ └─httr2:::check_request(req) 10. │ └─httr2:::is_request(req) 11. ├─httr2::req_headers(...) 12. │ └─rlang::list2(...) 13. ├─base::paste("Bearer", .get_token()) 14. └─nixtlar::.get_token() ── Error ('test-timegpt_historic.R:4:5'): timegpt historic ───────────────────── Error in `.get_token()`: Please set TIMEGPT_TOKEN. Use nixtla_set_token() or set it as an environment variable in .Renviron Backtrace: ▆ 1. └─nixtlar::timegpt_historic(...) at test-timegpt_historic.R:4:5 2. ├─httr2::req_perform(...) 3. │ └─httr2:::check_request(req) 4. │ └─httr2:::is_request(req) 5. ├─httr2::req_body_json(...) 6. │ └─httr2:::check_request(req) 7. │ └─httr2:::is_request(req) 8. ├─httr2::req_user_agent(...) 9. │ └─httr2:::check_request(req) 10. │ └─httr2:::is_request(req) 11. ├─httr2::req_headers(...) 12. │ └─rlang::list2(...) 13. ├─base::paste("Bearer", .get_token()) 14. └─nixtlar::.get_token() [ FAIL 4 | WARN 0 | SKIP 0 | PASS 0 ] Error: Test failures Execution halted