CRAN Package Check Results for Package carbonate

Last updated on 2024-05-03 06:53:23 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.4 7.41 55.86 63.27 OK
r-devel-linux-x86_64-debian-gcc 0.1.4 4.67 43.28 47.95 OK
r-devel-linux-x86_64-fedora-clang 0.1.4 81.38 OK
r-devel-linux-x86_64-fedora-gcc 0.1.4 89.09 OK
r-devel-windows-x86_64 0.1.4 8.00 66.00 74.00 OK
r-patched-linux-x86_64 0.1.4 6.01 54.58 60.59 OK
r-release-linux-x86_64 0.1.4 6.77 54.95 61.72 OK
r-release-macos-arm64 0.1.4 41.00 OK
r-release-windows-x86_64 0.1.4 8.00 65.00 73.00 ERROR
r-oldrel-macos-arm64 0.1.4 35.00 OK
r-oldrel-macos-x86_64 0.1.4 53.00 OK
r-oldrel-windows-x86_64 0.1.4 9.00 71.00 80.00 OK

Check Details

Version: 0.1.4
Check: tests
Result: ERROR Running 'testthat.R' [3s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(carbonate) > > test_check("carbonate") [ FAIL 12 | WARN 12 | SKIP 2 | PASS 6 ] ══ Skipped tests (2) ═══════════════════════════════════════════════════════════ • On CRAN (1): 'test-uri.R:37:5' • System clipboard is not available - skipping test. (1): 'test-uri.R:43:5' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-set.R:7:5'): set functions: set_template ─────────────────────── Error in `file(con, "r")`: cannot open the connection to 'https://raw.githubusercontent.com/carbon-app/carbon/main/lib/constants.js' Backtrace: ▆ 1. ├─x$set_template(x$get_templates()[1]) at test-set.R:7:5 2. │ └─carbonate:::.set_template(self, private, template) 3. └─x$get_templates() 4. └─carbonate:::.get_templates(self, private) 5. ├─base::sapply(query_defaults("THEMES"), "[[", 1) 6. │ └─base::lapply(X = X, FUN = FUN, ...) 7. └─carbonate:::query_defaults("THEMES") 8. └─base::readLines("https://raw.githubusercontent.com/carbon-app/carbon/main/lib/constants.js") 9. └─base::file(con, "r") ── Error ('test-set.R:12:5'): set functions: set_font_family ─────────────────── Error in `file(con, "r")`: cannot open the connection to 'https://raw.githubusercontent.com/carbon-app/carbon/main/lib/constants.js' Backtrace: ▆ 1. ├─x$set_font_family(x$get_font_families()[1]) at test-set.R:12:5 2. │ └─carbonate:::.set_font_family(self, private, family) 3. └─x$get_font_families() 4. └─carbonate:::.get_font_families(self, private) 5. ├─base::sapply(query_defaults("FONTS"), "[[", 2) 6. │ └─base::lapply(X = X, FUN = FUN, ...) 7. └─carbonate:::query_defaults("FONTS") 8. └─base::readLines("https://raw.githubusercontent.com/carbon-app/carbon/main/lib/constants.js") 9. └─base::file(con, "r") ── Error ('test-uri.R:9:5'): options: benchmark ──────────────────────────────── Error in `file(con, "r")`: cannot open the connection to 'https://raw.githubusercontent.com/carbon-app/carbon/main/lib/constants.js' Backtrace: ▆ 1. ├─testthat::expect_equal(bench, x$options()) at test-uri.R:9:5 2. │ └─testthat::quasi_label(enquo(expected), expected.label, arg = "expected") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─x$options() 5. └─carbonate:::.options(self, private, code) 6. └─private$map() 7. └─carbonate:::.map(self, private) 8. └─base::lapply(...) 9. └─carbonate (local) FUN(X[[i]], ...) 10. ├─self[[x]] %in% self$get_templates() 11. └─self$get_templates() 12. └─carbonate:::.get_templates(self, private) 13. ├─base::sapply(query_defaults("THEMES"), "[[", 1) 14. │ └─base::lapply(X = X, FUN = FUN, ...) 15. └─carbonate:::query_defaults("THEMES") 16. └─base::readLines("https://raw.githubusercontent.com/carbon-app/carbon/main/lib/constants.js") 17. └─base::file(con, "r") ── Error ('test-uri.R:17:5'): uri: benchmark ─────────────────────────────────── Error in `file(con, "r")`: cannot open the connection to 'https://raw.githubusercontent.com/carbon-app/carbon/main/lib/constants.js' Backtrace: ▆ 1. ├─testthat::expect_equal(bench, x$uri()) at test-uri.R:17:5 2. │ └─testthat::quasi_label(enquo(expected), expected.label, arg = "expected") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─x$uri() 5. └─carbonate:::.uri(self, private, code) 6. ├─base::sprintf("https://carbon.now.sh/?%s", self$options(code = code)) 7. └─self$options(code = code) 8. └─carbonate:::.options(self, private, code) 9. └─private$map() 10. └─carbonate:::.map(self, private) 11. └─base::lapply(...) 12. └─carbonate (local) FUN(X[[i]], ...) 13. ├─self[[x]] %in% self$get_templates() 14. └─self$get_templates() 15. └─carbonate:::.get_templates(self, private) 16. ├─base::sapply(query_defaults("THEMES"), "[[", 1) 17. │ └─base::lapply(X = X, FUN = FUN, ...) 18. └─carbonate:::query_defaults("THEMES") 19. └─base::readLines("https://raw.githubusercontent.com/carbon-app/carbon/main/lib/constants.js") 20. └─base::file(con, "r") ── Error ('test-uri.R:21:5'): uri: 200 ───────────────────────────────────────── Error in `file(con, "r")`: cannot open the connection to 'https://raw.githubusercontent.com/carbon-app/carbon/main/lib/constants.js' Backtrace: ▆ 1. ├─testthat::expect_false(httr::http_error(x$uri())) at test-uri.R:21:5 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─httr::http_error(x$uri()) 5. └─x$uri() 6. └─carbonate:::.uri(self, private, code) 7. ├─base::sprintf("https://carbon.now.sh/?%s", self$options(code = code)) 8. └─self$options(code = code) 9. └─carbonate:::.options(self, private, code) 10. └─private$map() 11. └─carbonate:::.map(self, private) 12. └─base::lapply(...) 13. └─carbonate (local) FUN(X[[i]], ...) 14. ├─self[[x]] %in% self$get_templates() 15. └─self$get_templates() 16. └─carbonate:::.get_templates(self, private) 17. ├─base::sapply(query_defaults("THEMES"), "[[", 1) 18. │ └─base::lapply(X = X, FUN = FUN, ...) 19. └─carbonate:::query_defaults("THEMES") 20. └─base::readLines("https://raw.githubusercontent.com/carbon-app/carbon/main/lib/constants.js") 21. └─base::file(con, "r") ── Failure ('test-uri.R:52:3'): bad template: error uri ──────────────────────── `x$uri()` threw an error with unexpected message. Expected match: "template not valid: xxx" Actual message: "cannot open the connection to 'https://raw.githubusercontent.com/carbon-app/carbon/main/lib/constants.js'" Backtrace: ▆ 1. ├─testthat::expect_error(x$uri(), "template not valid: xxx") 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─x$uri() 7. └─carbonate:::.uri(self, private, code) 8. ├─base::sprintf("https://carbon.now.sh/?%s", self$options(code = code)) 9. └─self$options(code = code) 10. └─carbonate:::.options(self, private, code) 11. └─private$map() 12. └─carbonate:::.map(self, private) 13. └─base::lapply(...) 14. └─carbonate (local) FUN(X[[i]], ...) 15. ├─self[[x]] %in% self$get_templates() 16. └─self$get_templates() 17. └─carbonate:::.get_templates(self, private) 18. ├─base::sapply(query_defaults("THEMES"), "[[", 1) 19. │ └─base::lapply(X = X, FUN = FUN, ...) 20. └─carbonate:::query_defaults("THEMES") 21. └─base::readLines("https://raw.githubusercontent.com/carbon-app/carbon/main/lib/constants.js") 22. └─base::file(con, "r") ── Error ('test-yml.R:23:5'): yaml fields: rgba ──────────────────────────────── Error in `file(con, "r")`: cannot open the connection to 'https://raw.githubusercontent.com/carbon-app/carbon/main/lib/constants.js' Backtrace: ▆ 1. └─carbonate (local) reset(this) at test-yml.R:23:5 2. └─carbonate::carbon$new(code = "abc", yml = tf, silent_yml = TRUE) at test-yml.R:12:3 3. └─carbonate (local) initialize(...) 4. └─private$parse_yml(yml, silent = silent_yml) 5. └─carbonate:::.parse_yml(self, private, yml, silent_yml) 6. └─carbonate:::check_get(y, self, silent = silent) 7. ├─y[[x]] %in% self[[find_get(x, self)]]() 8. └─self[[find_get(x, self)]]() 9. └─carbonate:::.get_templates(self, private) 10. ├─base::sapply(query_defaults("THEMES"), "[[", 1) 11. │ └─base::lapply(X = X, FUN = FUN, ...) 12. └─carbonate:::query_defaults("THEMES") 13. └─base::readLines("https://raw.githubusercontent.com/carbon-app/carbon/main/lib/constants.js") 14. └─base::file(con, "r") ── Error ('test-yml.R:28:5'): yaml fields: template ──────────────────────────── Error in `file(con, "r")`: cannot open the connection to 'https://raw.githubusercontent.com/carbon-app/carbon/main/lib/constants.js' Backtrace: ▆ 1. └─carbonate (local) reset(this) at test-yml.R:28:5 2. └─carbonate::carbon$new(code = "abc", yml = tf, silent_yml = TRUE) at test-yml.R:12:3 3. └─carbonate (local) initialize(...) 4. └─private$parse_yml(yml, silent = silent_yml) 5. └─carbonate:::.parse_yml(self, private, yml, silent_yml) 6. └─carbonate:::check_get(y, self, silent = silent) 7. ├─y[[x]] %in% self[[find_get(x, self)]]() 8. └─self[[find_get(x, self)]]() 9. └─carbonate:::.get_templates(self, private) 10. ├─base::sapply(query_defaults("THEMES"), "[[", 1) 11. │ └─base::lapply(X = X, FUN = FUN, ...) 12. └─carbonate:::query_defaults("THEMES") 13. └─base::readLines("https://raw.githubusercontent.com/carbon-app/carbon/main/lib/constants.js") 14. └─base::file(con, "r") ── Error ('test-yml.R:33:5'): yaml fields: bad font family ───────────────────── Error in `file(con, "r")`: cannot open the connection to 'https://raw.githubusercontent.com/carbon-app/carbon/main/lib/constants.js' Backtrace: ▆ 1. └─carbonate (local) reset(this) at test-yml.R:33:5 2. └─carbonate::carbon$new(code = "abc", yml = tf, silent_yml = TRUE) at test-yml.R:12:3 3. └─carbonate (local) initialize(...) 4. └─private$parse_yml(yml, silent = silent_yml) 5. └─carbonate:::.parse_yml(self, private, yml, silent_yml) 6. └─carbonate:::check_get(y, self, silent = silent) 7. ├─y[[x]] %in% self[[find_get(x, self)]]() 8. └─self[[find_get(x, self)]]() 9. └─carbonate:::.get_templates(self, private) 10. ├─base::sapply(query_defaults("THEMES"), "[[", 1) 11. │ └─base::lapply(X = X, FUN = FUN, ...) 12. └─carbonate:::query_defaults("THEMES") 13. └─base::readLines("https://raw.githubusercontent.com/carbon-app/carbon/main/lib/constants.js") 14. └─base::file(con, "r") ── Error ('test-yml.R:38:5'): yaml fields: pv ────────────────────────────────── Error in `file(con, "r")`: cannot open the connection to 'https://raw.githubusercontent.com/carbon-app/carbon/main/lib/constants.js' Backtrace: ▆ 1. └─carbonate (local) reset(this) at test-yml.R:38:5 2. └─carbonate::carbon$new(code = "abc", yml = tf, silent_yml = TRUE) at test-yml.R:12:3 3. └─carbonate (local) initialize(...) 4. └─private$parse_yml(yml, silent = silent_yml) 5. └─carbonate:::.parse_yml(self, private, yml, silent_yml) 6. └─carbonate:::check_get(y, self, silent = silent) 7. ├─y[[x]] %in% self[[find_get(x, self)]]() 8. └─self[[find_get(x, self)]]() 9. └─carbonate:::.get_templates(self, private) 10. ├─base::sapply(query_defaults("THEMES"), "[[", 1) 11. │ └─base::lapply(X = X, FUN = FUN, ...) 12. └─carbonate:::query_defaults("THEMES") 13. └─base::readLines("https://raw.githubusercontent.com/carbon-app/carbon/main/lib/constants.js") 14. └─base::file(con, "r") ── Error ('test-yml.R:43:5'): yaml fields: ph ────────────────────────────────── Error in `file(con, "r")`: cannot open the connection to 'https://raw.githubusercontent.com/carbon-app/carbon/main/lib/constants.js' Backtrace: ▆ 1. └─carbonate (local) reset(this) at test-yml.R:43:5 2. └─carbonate::carbon$new(code = "abc", yml = tf, silent_yml = TRUE) at test-yml.R:12:3 3. └─carbonate (local) initialize(...) 4. └─private$parse_yml(yml, silent = silent_yml) 5. └─carbonate:::.parse_yml(self, private, yml, silent_yml) 6. └─carbonate:::check_get(y, self, silent = silent) 7. ├─y[[x]] %in% self[[find_get(x, self)]]() 8. └─self[[find_get(x, self)]]() 9. └─carbonate:::.get_templates(self, private) 10. ├─base::sapply(query_defaults("THEMES"), "[[", 1) 11. │ └─base::lapply(X = X, FUN = FUN, ...) 12. └─carbonate:::query_defaults("THEMES") 13. └─base::readLines("https://raw.githubusercontent.com/carbon-app/carbon/main/lib/constants.js") 14. └─base::file(con, "r") ── Error ('test-yml.R:18:3'): (code run outside of `test_that()`) ────────────── Error in `file(con, "r")`: cannot open the connection to 'https://raw.githubusercontent.com/carbon-app/carbon/main/lib/constants.js' Backtrace: ▆ 1. └─testthat::describe(...) at test-yml.R:48:1 2. └─base::eval(substitute(code), describe_environment) 3. └─base::eval(substitute(code), describe_environment) 4. ├─testthat::expect_message(object = reset_verbose(this), regexp = "invalid value") at test-yml.R:51:3 5. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─carbonate (local) reset_verbose(this) 10. └─carbonate::carbon$new(code = "abc", yml = tf, silent_yml = FALSE) at test-yml.R:18:3 11. └─carbonate (local) initialize(...) 12. └─private$parse_yml(yml, silent = silent_yml) 13. └─carbonate:::.parse_yml(self, private, yml, silent_yml) 14. └─carbonate:::check_get(y, self, silent = silent) 15. ├─y[[x]] %in% self[[find_get(x, self)]]() 16. └─self[[find_get(x, self)]]() 17. └─carbonate:::.get_templates(self, private) 18. ├─base::sapply(query_defaults("THEMES"), "[[", 1) 19. │ └─base::lapply(X = X, FUN = FUN, ...) 20. └─carbonate:::query_defaults("THEMES") 21. └─base::readLines("https://raw.githubusercontent.com/carbon-app/carbon/main/lib/constants.js") 22. └─base::file(con, "r") [ FAIL 12 | WARN 12 | SKIP 2 | PASS 6 ] Error: Test failures Execution halted Flavor: r-release-windows-x86_64