Running ‘testthat.R’ [5s/17s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(cde)
  > 
  > test_check("cde")
  trying URL 'http://environment.data.gov.uk/catchment-planning/RiverBasinDistrict/6/Action?format=csv'
  Content type 'application/octet-stream' length 6819 bytes
  ==================================================
  downloaded 6819 bytes
  
  trying URL 'http://environment.data.gov.uk/catchment-planning/so/WaterBody/GB112071065700/objective-outcomes.csv?_view=csv'
  Content type 'text/csv' length 7557 bytes
  ==================================================
  downloaded 7557 bytes
  
  trying URL 'http://environment.data.gov.uk/catchment-planning/ManagementCatchment/3007/outcome?item=all&status=all&format=csv'
  Content type 'application/octet-stream' length 61851 bytes (60 KB)
  ==================================================
  downloaded 60 KB
  
  trying URL 'http://environment.data.gov.uk/catchment-planning/so/WaterBody/GB520804714300/objective-outcomes.csv?_view=csv'
  downloaded 8500 bytes
  
  trying URL 'http://environment.data.gov.uk/catchment-planning/OperationalCatchment/3108/outcome?item=all&status=all&format=csv'
  Content type 'application/octet-stream' length 43096 bytes (42 KB)
  ==================================================
  downloaded 42 KB
  
  trying URL 'http://environment.data.gov.uk/catchment-planning/WaterBody/GB112071065700/pa/csv'
  Content type 'application/octet-stream' length 361 bytes
  ==================================================
  downloaded 361 bytes
  
  trying URL 'http://environment.data.gov.uk/catchment-planning/WaterBody/GB112071065700/pa/csv'
  Content type 'application/octet-stream' length 361 bytes
  ==================================================
  downloaded 361 bytes
  
  trying URL 'http://environment.data.gov.uk/catchment-planning/data/reason-for-failure.csv?waterBody=GB112071065700&_view=csv'
  Content type 'text/csv' length 1290 bytes
  ==================================================
  downloaded 1290 bytes
  
  trying URL 'http://environment.data.gov.uk/catchment-planning/ManagementCatchment/3006/ReasonsForNotAchievingGood?item=all&format=csv'
  Content type 'application/octet-stream' length 4464 bytes
  ==================================================
  downloaded 4464 bytes
  
  trying URL 'http://environment.data.gov.uk/catchment-planning/ManagementCatchment/3006/ReasonsForNotAchievingGood?item=all&format=csv'
  Content type 'application/octet-stream' length 4464 bytes
  ==================================================
  downloaded 4464 bytes
  
  trying URL 'http://environment.data.gov.uk/catchment-planning/data/reason-for-failure.csv?waterBody=GB112071065700&_view=csv'
  Content type 'text/csv' length 1290 bytes
  ==================================================
  downloaded 1290 bytes
  
  trying URL 'http://environment.data.gov.uk/catchment-planning/OperationalCatchment/3108/ReasonsForNotAchievingGood?item=all&format=csv'
  Content type 'application/octet-stream' length 455 bytes
  ==================================================
  downloaded 455 bytes
  
  trying URL 'http://environment.data.gov.uk/catchment-planning/data/classification.csv?waterBody=GB520804714300&_view=csv'
  Content type 'text/csv' length 127711 bytes (124 KB)
  ==================================================
  downloaded 124 KB
  
  trying URL 'http://environment.data.gov.uk/catchment-planning/ManagementCatchment/3007/classification?item=all&status=all&format=csv'
  Content type 'application/octet-stream' length 360525 bytes (352 KB)
  ==================================================
  downloaded 352 KB
  
  ── 1. Failure: dimensions of dataframe are as expected (@test-get_status.r#15)  
  all(dim(test_mc_avon) == c(594, 18)) isn't true.
  
  trying URL 'http://environment.data.gov.uk/catchment-planning/OperationalCatchment/3249/classification?item=all&status=all&format=csv'
  Content type 'application/octet-stream' length 1010678 bytes (986 KB)
  ==================================================
  downloaded 986 KB
  
  trying URL 'http://environment.data.gov.uk/catchment-planning/ManagementCatchment/3006/classification?item=all&status=all&format=csv'
  Content type 'application/octet-stream' length 237708 bytes (232 KB)
  ==================================================
  downloaded 232 KB
  
  trying URL 'http://environment.data.gov.uk/catchment-planning/ManagementCatchment/3006/classification?item=all&status=all&format=csv'
  Content type 'application/octet-stream' length 237708 bytes (232 KB)
  ==================================================
  downloaded 232 KB
  
  trying URL 'http://environment.data.gov.uk/catchment-planning/ManagementCatchment/3006/classification?item=all&status=all&format=csv'
  Content type 'application/octet-stream' length 237708 bytes (232 KB)
  ==================================================
  downloaded 232 KB
  
  trying URL 'http://environment.data.gov.uk/catchment-planning/data/classification.csv?waterBody=GB520804714300&_view=csv'
  Content type 'text/csv' length 127711 bytes (124 KB)
  ==================================================
  downloaded 124 KB
  
  trying URL 'http://environment.data.gov.uk/catchment-planning/ManagementCatchment/3007/classification?item=all&status=all&format=csv'
  Content type 'application/octet-stream' length 360525 bytes (352 KB)
  ==================================================
  downloaded 352 KB
  
  trying URL 'http://environment.data.gov.uk/catchment-planning/ManagementCatchment/3007/classification?item=all&status=all&format=csv'
  Content type 'application/octet-stream' length 360525 bytes (352 KB)
  ==================================================
  downloaded 352 KB
  
  ── 2. Failure: dimensions of dataframe for 'Supporting elements' level are as ex
  all(dim(test_mc_avon) == c(73, 18)) isn't true.
  
  trying URL 'http://environment.data.gov.uk/catchment-planning/data/reason-for-failure.csv?waterBody=GB112071065700&_view=csv'
  Content type 'text/csv' length 1290 bytes
  ==================================================
  downloaded 1290 bytes
  
  trying URL 'http://environment.data.gov.uk/catchment-planning/ManagementCatchment/3007/classification?item=all&status=all&format=csv'
  Content type 'application/octet-stream' length 360525 bytes (352 KB)
  ==================================================
  downloaded 352 KB
  
  trying URL 'http://environment.data.gov.uk/catchment-planning/ManagementCatchment/3007/classification?item=all&status=all&format=csv'
  Content type 'application/octet-stream' length 360525 bytes (352 KB)
  ==================================================
  downloaded 352 KB
  
  trying URL 'http://environment.data.gov.uk/catchment-planning/ManagementCatchment/3007/classification?item=all&status=all&format=csv'
  Content type 'application/octet-stream' length 360525 bytes (352 KB)
  ==================================================
  downloaded 352 KB
  
  trying URL 'http://environment.data.gov.uk/catchment-planning/ManagementCatchment/3007/outcome?item=all&status=all&format=csv'
  Content type 'application/octet-stream' length 61851 bytes (60 KB)
  ==================================================
  downloaded 60 KB
  
  trying URL 'http://environment.data.gov.uk/catchment-planning/ManagementCatchment/3007/outcome?item=all&status=all&format=csv'
  Content type 'application/octet-stream' length 61851 bytes (60 KB)
  ==================================================
  downloaded 60 KB
  
  trying URL 'http://environment.data.gov.uk/catchment-planning/ManagementCatchment/3007/ReasonsForNotAchievingGood?item=all&format=csv'
  Content type 'application/octet-stream' length 10713 bytes (10 KB)
  ==================================================
  downloaded 10 KB
  
  trying URL 'http://environment.data.gov.uk/catchment-planning/RiverBasinDistrict/6/pa/csv'
  Content type 'application/octet-stream' length 12728 bytes (12 KB)
  ==================================================
  downloaded 12 KB
  
  trying URL 'http://environment.data.gov.uk/catchment-planning/RiverBasinDistrict/6/pa/csv'
  Content type 'application/octet-stream' length 12728 bytes (12 KB)
  ==================================================
  downloaded 12 KB
  
   river_basin_district management_catchment operational_catchment
                 Thames      Loddon and Trib                Loddon
                 Thames      Loddon and Trib                Loddon
                 Thames      Loddon and Trib                Loddon
                 Thames      Loddon and Trib                Loddon
                 Thames      Loddon and Trib                Loddon
                 Thames      Loddon and Trib                Loddon
                 Thames      Loddon and Trib                Loddon
                 Thames      Loddon and Trib                Loddon
                 Thames      Loddon and Trib                Loddon
                 Thames      Loddon and Trib                Loddon
  With an additional 1322 rows and 5 columns of data. 
  Row values may be truncated to fit console. 
  trying URL 'http://environment.data.gov.uk/catchment-planning/WaterBody/GB105033042920/pa/csv'
  Content type 'application/octet-stream' length 382 bytes
  ==================================================
  downloaded 382 bytes
  
   river_basin_district management_catchment operational_catchment
                Anglian     Cam and Ely Ouse                  Lark
                Anglian     Cam and Ely Ouse                  Lark
  With an additional 5 columns of data. 
  Row values may be truncated to fit console. 
  trying URL 'http://environment.data.gov.uk/catchment-planning/data/classification.csv?waterBody=GB520804714300&_view=csv'
  Content type 'text/csv' length 127711 bytes (124 KB)
  ==================================================
  downloaded 124 KB
  
  trying URL 'http://environment.data.gov.uk/catchment-planning/RiverBasinDistrict/6/classification?item=all&status=all&format=csv'
  Content type 'application/octet-stream' length 2237526 bytes (2.1 MB)
  ==================================================
  downloaded 2.1 MB
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 64 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 2 ]
  1. Failure: dimensions of dataframe are as expected (@test-get_status.r#15) 
  2. Failure: dimensions of dataframe for 'Supporting elements' level are as expected (@test-get_status.r#105) 
  
  Error: testthat unit tests failed
  Execution halted