Running examples in 'cde-Ex.R' failed
The error most likely occurred in:

> ### Name: get_status
> ### Title: Retrieve WFD Status Classification Data
> ### Aliases: get_status
> 
> ### ** Examples
> 
> # get Overall Water Body status classification for waterbody GB520804714300
> get_status(ea_name="GB520804714300", column="WBID")
trying URL 'http://environment.data.gov.uk/catchment-planning/data/classification.csv?waterBody=GB520804714300&_view=csv'
Content type 'text/csv' length 115753 bytes (113 KB)
==================================================
downloaded 113 KB

 river_basin_district management_catchment operational_catchment
           South West      South West TraC         Tamar Estuary
           South West      South West TraC         Tamar Estuary
           South West      South West TraC         Tamar Estuary
           South West      South West TraC         Tamar Estuary
           South West      South West TraC         Tamar Estuary
           South West      South West TraC         Tamar Estuary
           South West      South West TraC         Tamar Estuary
           South West      South West TraC         Tamar Estuary
With an additional 18 columns of data. 
Row values may be truncated to fit console. 
> 
> # get status class based on Priority substances for waterbody GB520804714300
> get_status(ea_name="GB520804714300", column="WBID", level="Priority substances")
trying URL 'http://environment.data.gov.uk/catchment-planning/data/classification.csv?waterBody=GB520804714300&_view=csv'
Content type 'text/csv' length 115753 bytes (113 KB)
==================================================
downloaded 113 KB

 river_basin_district management_catchment operational_catchment
           South West      South West TraC         Tamar Estuary
           South West      South West TraC         Tamar Estuary
           South West      South West TraC         Tamar Estuary
           South West      South West TraC         Tamar Estuary
           South West      South West TraC         Tamar Estuary
           South West      South West TraC         Tamar Estuary
           South West      South West TraC         Tamar Estuary
           South West      South West TraC         Tamar Estuary
With an additional 18 columns of data. 
Row values may be truncated to fit console. 
> 
> # get the Overall Water Body status of Lakes in the Humber RBD, between
> # 2012 and 2014
> get_status(ea_name="Humber", column="RBD", startyr=2012, endyr=2014, type="Lake")
trying URL 'http://environment.data.gov.uk/catchment-planning/RiverBasinDistrict/4/classification?item=all&status=all&format=csv'
Content type 'application/octet-stream' length 3188331 bytes (3.0 MB)
===============================================
downloaded 2.9 MB

Warning in utils::download.file(download_url, temp, mode = "wb", quiet = FALSE) :
  downloaded length 3055616 != reported length 3188331
Warning in utils::unzip(temp, junkpaths = TRUE) :
  error 1 in extracting from zip file
Processing data from zipfile...

Error in data.table::fread(csvfile, stringsAsFactors = FALSE, check.names = TRUE,  : 
  input= must be a single character string containing a file name, a system command containing at least one space, a URL starting 'http[s]://', 'ftp[s]://' or 'file://', or, the input data itself containing at least one \n or \r
Calls: get_status -> download_cde -> zip_download -> <Anonymous>
Execution halted