CRAN Package Check Results for Package fingertipsR

Last updated on 2020-06-04 03:49:18 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.0.3 6.89 111.75 118.64 OK
r-devel-linux-x86_64-debian-gcc 1.0.3 5.23 86.47 91.70 OK
r-devel-linux-x86_64-fedora-clang 1.0.3 149.10 OK
r-devel-linux-x86_64-fedora-gcc 1.0.3 143.09 OK
r-devel-windows-ix86+x86_64 1.0.3 33.00 501.00 534.00 OK
r-patched-linux-x86_64 1.0.3 6.36 112.96 119.32 OK
r-patched-solaris-x86 1.0.3 190.00 ERROR
r-release-linux-x86_64 1.0.3 6.52 111.62 118.14 OK
r-release-osx-x86_64 1.0.3 ERROR
r-release-windows-ix86+x86_64 1.0.3 17.00 99.00 116.00 ERROR
r-oldrel-osx-x86_64 1.0.3 WARN
r-oldrel-windows-ix86+x86_64 1.0.3 21.00 416.00 437.00 OK

Check Details

Version: 1.0.3
Check: tests
Result: ERROR
     Running ‘a-c.R’ [8s/46s]
     Running ‘d.R’ [7s/43s]
     Running ‘e.R’ [46s/146s]
     Running ‘f-z.R’ [17s/88s]
    Running the tests in ‘tests/e.R’ failed.
    Complete output:
     > library(testthat)
     > library(fingertipsR)
     >
     > test_check("fingertipsR", filter = "^[e]")
     ── 1. Error: fingertips_redred should return a 26 field data.frame (@test-enhanc
     more columns than column names
     Backtrace:
     1. testthat::expect_equal(...)
     5. fingertipsR::fingertips_redred(90776, AreaTypeID = 202, Comparator = "Goal")
     6. fingertipsR::fingertips_data(...)
     10. base::Map(new_data_formatting, dataurl = fingertips_data, generic_name = FALSE)
     11. base::mapply(FUN = f, ..., SIMPLIFY = FALSE)
     13. utils::read.delim(...)
     14. utils::read.table(...)
    
     On 17/05/2020 Fingertips consisted of 45 profiles, made up of 3733 indicators and 1699 distinct indicators.
     |
     | | 0%
     |
     |====== | 9%
     |
     |============= | 18%
     |
     |=================== | 27%
     |
     |========================= | 36%
     |
     |================================ | 45%
     |
     |====================================== | 55%
     |
     |============================================= | 64%
     |
     |=================================================== | 73%
     |
     |========================================================= | 82%
     |
     |================================================================ | 91%
     |
     |======================================================================| 100%
    
     |
     | | 0%
     |
     |======================================================================| 100%
     ══ testthat results ═══════════════════════════════════════════════════════════
     [ OK: 28 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 1 ]
     1. Error: fingertips_redred should return a 26 field data.frame (@test-enhancements.R#19)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-patched-solaris-x86

Version: 1.0.3
Check: re-building of vignette outputs
Result: WARN
    Error(s) in re-building vignettes:
     ...
    --- re-building ‘lifeExpectancy.Rmd’ using rmarkdown
    Warning in engine$weave(file, quiet = quiet, encoding = enc) :
     Pandoc (>= 1.12.3) and/or pandoc-citeproc not available. Falling back to R Markdown v1.
    Quitting from lines 76-77 (lifeExpectancy.Rmd)
    Error: processing vignette 'lifeExpectancy.Rmd' failed with diagnostics:
    there is no package called 'webshot'
    --- failed re-building ‘lifeExpectancy.Rmd’
    
    --- re-building ‘selectIndicatorsRedRed.Rmd’ using rmarkdown
    Warning in engine$weave(file, quiet = quiet, encoding = enc) :
     Pandoc (>= 1.12.3) and/or pandoc-citeproc not available. Falling back to R Markdown v1.
    --- finished re-building ‘selectIndicatorsRedRed.Rmd’
    
    SUMMARY: processing the following file failed:
     ‘lifeExpectancy.Rmd’
    
    Error: Vignette re-building failed.
    Execution halted
Flavor: r-patched-solaris-x86

Version: 1.0.3
Check: tests
Result: ERROR
     Running ‘a-c.R’ [3s/57s]
     Running ‘d.R’ [3s/52s]
     Running ‘e.R’ [16s/359s]
    Running the tests in ‘tests/e.R’ failed.
    Last 13 lines of output:
     |
     |================================================================ | 91%
     |
     |======================================================================| 100%
    
     |
     | | 0%
     |
     |======================================================================| 100%
     ══ testthat results ═══════════════════════════════════════════════════════════
     [ OK: 28 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 1 ]
     1. Error: fingertips_redred should return a 26 field data.frame (@test-enhancements.R#19)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-release-osx-x86_64

Version: 1.0.3
Check: tests
Result: ERROR
     Running 'a-c.R' [5s]
     Running 'd.R' [5s]
     Running 'e.R' [13s]
     Running 'f-z.R' [6s]
    Running the tests in 'tests/a-c.R' failed.
    Complete output:
     > library(testthat)
     > library(fingertipsR)
     >
     > test_check("fingertipsR", filter = "^[a-c]")
     -- 1. Error: the area_types function works correctly (@test-area_types.R#8) ---
     The API is currently unavailable
     Backtrace:
     1. testthat::expect_is(area_types(), "data.frame")
     4. fingertipsR::area_types()
     5. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
    
     -- 2. Error: the indicator_areatypes function is working correctly (@test-area_t
     The API is currently unavailable
     Backtrace:
     1. testthat::expect_equal(ncol(indicator_areatypes()), 2)
     5. fingertipsR::indicator_areatypes()
     6. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
    
     -- 3. Error: category_types returns as expected (@test-area_types.R#38) -------
     The API is currently unavailable
     Backtrace:
     1. testthat::expect_is(category_types(), "data.frame")
     4. fingertipsR::category_types()
     5. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
    
     -- 4. Error: nearest_neighbours returns as expected (@test-area_types.R#46) ---
     The API is currently unavailable
     Backtrace:
     1. testthat::expect_equal(...)
     4. fingertipsR::nearest_neighbours("E09000001", 102, "CIPFA")
     5. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
    
     == testthat results ===========================================================
     [ OK: 0 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 4 ]
     1. Error: the area_types function works correctly (@test-area_types.R#8)
     2. Error: the indicator_areatypes function is working correctly (@test-area_types.R#24)
     3. Error: category_types returns as expected (@test-area_types.R#38)
     4. Error: nearest_neighbours returns as expected (@test-area_types.R#46)
    
     Error: testthat unit tests failed
     Execution halted
    Running the tests in 'tests/d.R' failed.
    Complete output:
     > library(testthat)
     > library(fingertipsR)
     >
     > test_check("fingertipsR", filter = "^[d]")
     -- 1. Error: the number of columns of deprivation decile function are as expecte
     The API is currently unavailable
     Backtrace:
     1. testthat::expect_equal(...)
     5. fingertipsR::deprivation_decile(AreaTypeID = 202, Year = 2015)
     9. base::lapply(indicators_2015, indicator_areatypes)
     10. fingertipsR:::FUN(X[[i]], ...)
     11. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
    
     -- 2. Error: the number of rows returned by deprivation decile is greater than 2
     The API is currently unavailable
     Backtrace:
     1. testthat::expect_true(...)
     5. fingertipsR::deprivation_decile(AreaTypeID = 201, Year = 2019)
     9. base::lapply(indicators_2015, indicator_areatypes)
     10. fingertipsR:::FUN(X[[i]], ...)
     11. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
    
     -- 3. Error: the class of columns returned are character-numeric-integer (@test-
     The API is currently unavailable
     Backtrace:
     1. testthat::expect_equal(...)
     5. fingertipsR::deprivation_decile(AreaTypeID = 202, Year = 2019)
     9. base::lapply(indicators_2015, indicator_areatypes)
     10. fingertipsR:::FUN(X[[i]], ...)
     11. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
    
     -- 4. Failure: error messages work correctly (@test-deprivation.R#31) ---------
     `deprivation_decile(AreaTypeID = 12, Year = 2019)` threw an error with unexpected message.
     Expected match: "AreaTypeID not available"
     Actual message: "The API is currently unavailable"
     Backtrace:
     1. testthat::expect_error(...)
     6. fingertipsR::deprivation_decile(AreaTypeID = 12, Year = 2019)
     10. base::lapply(indicators_2015, indicator_areatypes)
     11. fingertipsR:::FUN(X[[i]], ...)
     12. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
    
     -- 5. Failure: error messages work correctly (@test-deprivation.R#34) ---------
     `deprivation_decile(AreaTypeID = 3, Year = 2019)` threw an error with unexpected message.
     Expected match: "AreaTypeID unavailable for 2019"
     Actual message: "The API is currently unavailable"
     Backtrace:
     1. testthat::expect_error(...)
     6. fingertipsR::deprivation_decile(AreaTypeID = 3, Year = 2019)
     10. base::lapply(indicators_2015, indicator_areatypes)
     11. fingertipsR:::FUN(X[[i]], ...)
     12. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
    
     == testthat results ===========================================================
     [ OK: 2 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 5 ]
     1. Error: the number of columns of deprivation decile function are as expected (@test-deprivation.R#9)
     2. Error: the number of rows returned by deprivation decile is greater than 2 (@test-deprivation.R#15)
     3. Error: the class of columns returned are character-numeric-integer (@test-deprivation.R#24)
     4. Failure: error messages work correctly (@test-deprivation.R#31)
     5. Failure: error messages work correctly (@test-deprivation.R#34)
    
     Error: testthat unit tests failed
     Execution halted
    Running the tests in 'tests/e.R' failed.
    Complete output:
     > library(testthat)
     > library(fingertipsR)
     >
     > test_check("fingertipsR", filter = "^[e]")
     -- 1. Failure: fingertips_redred should return an error (@test-enhancements.R#8)
     `fingertips_redred(IndicatorID = 10101, AreaTypeID = 202, Comparator = "Sub-national")` threw an error with unexpected message.
     Expected match: "Comparator must be either England, Parent or Goal"
     Actual message: "The API is currently unavailable"
     Backtrace:
     1. testthat::expect_error(...)
     6. fingertipsR::fingertips_redred(...)
     7. fingertipsR::fingertips_data(...)
     8. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
    
     -- 2. Error: fingertips_redred should return a 26 field data.frame (@test-enhanc
     The API is currently unavailable
     Backtrace:
     1. testthat::expect_equal(...)
     5. fingertipsR::fingertips_redred(90616, AreaTypeID = 202, Comparator = "England")
     6. fingertipsR::fingertips_data(...)
     7. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
    
     -- 3. Error: fingertips_stats functionality (@test-enhancements.R#25) ---------
     The API is currently unavailable
     Backtrace:
     1. testthat::expect_null(fingertips_stats())
     4. fingertipsR::fingertips_stats()
     5. fingertipsR::indicators()
     6. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
    
     -- 4. Failure: error messages work for fingertips_data (@test-extract.R#10) ---
     `fingertips_data()` threw an error with unexpected message.
     Expected match: "One of IndicatorID, DomainID or ProfileID must have an input"
     Actual message: "The API is currently unavailable"
     Backtrace:
     1. testthat::expect_error(fingertips_data(), "One of IndicatorID, DomainID or ProfileID must have an input")
     6. fingertipsR::fingertips_data()
     7. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
    
     -- 5. Failure: error messages work for fingertips_data (@test-extract.R#12) ---
     `fingertips_data(IndicatorID = 92309, AreaTypeID = "hello")` threw an error with unexpected message.
     Expected match: "Invalid AreaTypeID\\. Use function area_types\\(\\) to see what values can be used\\."
     Actual message: "The API is currently unavailable"
     Backtrace:
     1. testthat::expect_error(...)
     6. fingertipsR::fingertips_data(IndicatorID = 92309, AreaTypeID = "hello")
     7. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
    
     -- 6. Failure: error messages work for fingertips_data (@test-extract.R#15) ---
     `fingertips_data(IndicatorID = 92309, AreaTypeID = NULL)` threw an error with unexpected message.
     Expected match: "AreaTypeID must have a value\\. Use function area_types\\(\\) to see what values can be used\\."
     Actual message: "The API is currently unavailable"
     Backtrace:
     1. testthat::expect_error(...)
     6. fingertipsR::fingertips_data(IndicatorID = 92309, AreaTypeID = NULL)
     7. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
    
     -- 7. Failure: error messages work for fingertips_data (@test-extract.R#18) ---
     `fingertips_data(DomainID = 1938132767, AreaTypeID = 202, AreaCode = "hello")` threw an error with unexpected message.
     Expected match: "Area code not contained in AreaTypeID\\."
     Actual message: "The API is currently unavailable"
     Backtrace:
     1. testthat::expect_error(...)
     6. fingertipsR::fingertips_data(...)
     7. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
    
     -- 8. Failure: error messages work for fingertips_data (@test-extract.R#21) ---
     `fingertips_data(...)` threw an error with unexpected message.
     Expected match: "If ProfileID and IndicatorID are populated, they must be the same length"
     Actual message: "The API is currently unavailable"
     Backtrace:
     1. testthat::expect_error(...)
     6. fingertipsR::fingertips_data(...)
     7. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
    
     -- 9. Failure: error messages work for fingertips_data (@test-extract.R#24) ---
     `fingertips_data(IndicatorID = 90631, AreaTypeID = 202, categorytype = "testerror")` threw an error with unexpected message.
     Expected match: "categorytype input must be TRUE or FALSE"
     Actual message: "The API is currently unavailable"
     Backtrace:
     1. testthat::expect_error(...)
     6. fingertipsR::fingertips_data(...)
     7. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
    
     -- 10. Failure: error messages work for fingertips_data (@test-extract.R#27) --
     `fingertips_data()` threw an error with unexpected message.
     Expected match: "One of IndicatorID, DomainID or ProfileID must have an input"
     Actual message: "The API is currently unavailable"
     Backtrace:
     1. testthat::expect_error(fingertips_data(), "One of IndicatorID, DomainID or ProfileID must have an input")
     6. fingertipsR::fingertips_data()
     7. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
    
     -- 11. Failure: error messages work for fingertips_data (@test-extract.R#30) --
     `fingertips_data(IndicatorID = 90631)` threw an error with unexpected message.
     Expected match: "AreaTypeID must be defined"
     Actual message: "The API is currently unavailable"
     Backtrace:
     1. testthat::expect_error(...)
     6. fingertipsR::fingertips_data(IndicatorID = 90631)
     7. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
    
     -- 12. Error: warning messages work for fingertips_data (@test-extract.R#37) --
     The API is currently unavailable
     Backtrace:
     1. testthat::expect_warning(...)
     6. fingertipsR::fingertips_data(...)
     7. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
    
     -- 13. Error: number of fields returned by fingertips_data function are 26 (@tes
     The API is currently unavailable
     Backtrace:
     1. testthat::expect_equal(...)
     4. fingertipsR::fingertips_data(...)
     5. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
    
     == testthat results ===========================================================
     [ OK: 0 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 13 ]
     1. Failure: fingertips_redred should return an error (@test-enhancements.R#8)
     2. Error: fingertips_redred should return a 26 field data.frame (@test-enhancements.R#15)
     3. Error: fingertips_stats functionality (@test-enhancements.R#25)
     4. Failure: error messages work for fingertips_data (@test-extract.R#10)
     5. Failure: error messages work for fingertips_data (@test-extract.R#12)
     6. Failure: error messages work for fingertips_data (@test-extract.R#15)
     7. Failure: error messages work for fingertips_data (@test-extract.R#18)
     8. Failure: error messages work for fingertips_data (@test-extract.R#21)
     9. Failure: error messages work for fingertips_data (@test-extract.R#24)
     1. ...
    
     Error: testthat unit tests failed
     Execution halted
    Running the tests in 'tests/f-z.R' failed.
    Complete output:
     > library(testthat)
     > library(fingertipsR)
     >
     > test_check("fingertipsR", filter = "^[f-z]")
     -- 1. Failure: profile warnings work (@test-indicators.R#8) -------------------
     `profiles(c(12, 14))` threw an error with unexpected message.
     Expected match: "ProfileID\\(s\\) are not in the list of profile IDs\\. Re-run the function without any inputs to see all possible IDs\\."
     Actual message: "The API is currently unavailable"
     Backtrace:
     1. testthat::expect_error(profiles(c(12, 14)), "ProfileID\\(s\\) are not in the list of profile IDs\\. Re-run the function without any inputs to see all possible IDs\\.")
     6. fingertipsR::profiles(c(12, 14))
     7. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
    
     -- 2. Failure: profile warnings work (@test-indicators.R#11) ------------------
     `profiles(ProfileName = "PHOF")` threw an error with unexpected message.
     Expected match: "Profile names are not in the list of profile names\\. Re-run the function without any inputs to see all possible names\\."
     Actual message: "The API is currently unavailable"
     Backtrace:
     1. testthat::expect_error(profiles(ProfileName = "PHOF"), "Profile names are not in the list of profile names\\. Re-run the function without any inputs to see all possible names\\.")
     6. fingertipsR::profiles(ProfileName = "PHOF")
     7. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
    
     -- 3. Error: the profiles function works (@test-indicators.R#18) --------------
     The API is currently unavailable
     Backtrace:
     1. testthat::expect_is(...)
     4. fingertipsR::profiles(ProfileName = "Public Health Outcomes Framework")
     5. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
    
     -- 4. Error: profile indicators work (@test-indicators.R#30) ------------------
     The API is currently unavailable
     Backtrace:
     1. testthat::expect_warning(...)
     6. fingertipsR::indicators(ProfileID = 156, DomainID = 1938133294)
     7. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
    
     -- 5. Error: the indicators function works (@test-indicators.R#37) ------------
     The API is currently unavailable
     Backtrace:
     1. testthat::expect_is(indicators(19), "data.frame")
     4. fingertipsR::indicators(19)
     5. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
    
     -- 6. Error: the indicators_unique function works (@test-indicators.R#46) -----
     The API is currently unavailable
     Backtrace:
     1. testthat::expect_is(indicators_unique(19), "data.frame")
     4. fingertipsR::indicators_unique(19)
     5. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
    
     -- 7. Error: the indicator_order function works (@test-indicators.R#52) -------
     The API is currently unavailable
     Backtrace:
     1. testthat::expect_is(...)
     4. fingertipsR::indicator_order(...)
     5. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
    
     -- 8. Error: (unknown) (@test-metadata.R#8) -----------------------------------
     The API is currently unavailable
     Backtrace:
     1. fingertipsR::indicator_metadata(IndicatorID = 10101)
     2. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
    
     == testthat results ===========================================================
     [ OK: 2 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 8 ]
     1. Failure: profile warnings work (@test-indicators.R#8)
     2. Failure: profile warnings work (@test-indicators.R#11)
     3. Error: the profiles function works (@test-indicators.R#18)
     4. Error: profile indicators work (@test-indicators.R#30)
     5. Error: the indicators function works (@test-indicators.R#37)
     6. Error: the indicators_unique function works (@test-indicators.R#46)
     7. Error: the indicator_order function works (@test-indicators.R#52)
     8. Error: (unknown) (@test-metadata.R#8)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-release-windows-ix86+x86_64

Version: 1.0.3
Check: re-building of vignette outputs
Result: WARN
    Error(s) in re-building vignettes:
    --- re-building 'lifeExpectancy.Rmd' using rmarkdown
    Quitting from lines 54-56 (lifeExpectancy.Rmd)
    Error: processing vignette 'lifeExpectancy.Rmd' failed with diagnostics:
    The API is currently unavailable
    --- failed re-building 'lifeExpectancy.Rmd'
    
    --- re-building 'selectIndicatorsRedRed.Rmd' using rmarkdown
    Quitting from lines 43-44 (selectIndicatorsRedRed.Rmd)
    Error: processing vignette 'selectIndicatorsRedRed.Rmd' failed with diagnostics:
    The API is currently unavailable
    --- failed re-building 'selectIndicatorsRedRed.Rmd'
    
    SUMMARY: processing the following files failed:
     'lifeExpectancy.Rmd' 'selectIndicatorsRedRed.Rmd'
    
    Error: Vignette re-building failed.
    Execution halted
Flavor: r-release-windows-ix86+x86_64

Version: 1.0.3
Check: re-building of vignette outputs
Result: WARN
    Error(s) in re-building vignettes:
     ...
    --- re-building ‘lifeExpectancy.Rmd’ using rmarkdown
    Warning in engine$weave(file, quiet = quiet, encoding = enc) :
     Pandoc (>= 1.12.3) and/or pandoc-citeproc not available. Falling back to R Markdown v1.
    Quitting from lines 76-77 (lifeExpectancy.Rmd)
    Error: processing vignette 'lifeExpectancy.Rmd' failed with diagnostics:
    cannot open the connection
    --- failed re-building ‘lifeExpectancy.Rmd’
    
    --- re-building ‘selectIndicatorsRedRed.Rmd’ using rmarkdown
    Warning in engine$weave(file, quiet = quiet, encoding = enc) :
     Pandoc (>= 1.12.3) and/or pandoc-citeproc not available. Falling back to R Markdown v1.
    --- finished re-building ‘selectIndicatorsRedRed.Rmd’
    
    SUMMARY: processing the following file failed:
     ‘lifeExpectancy.Rmd’
    
    Error: Vignette re-building failed.
    Execution halted
Flavor: r-oldrel-osx-x86_64