Running ‘testthat.R’ [8s/59s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(thunder)
  > 
  > test_check("thunder")
  [1] "http://weather.uwyo.edu/cgi-bin/sounding?TYPE=TEXT%3ALIST&YEAR=2010&MONTH=08&FROM=2012&TO=2012&STNM=12120"
  
   Downloaded 758 bytes...Service not working or wmo_id or date not correct. Check url:
  http://weather.uwyo.edu/cgi-bin/sounding?TYPE=TEXT%3ALIST&YEAR=2010&MONTH=08&FROM=2012&TO=2012&STNM=12120[1] "http://weather.uwyo.edu/cgi-bin/sounding?TYPE=TEXT%3ALIST&YEAR=2010&MONTH=08&FROM=2012&TO=2012&STNM=12120"
  Service not working or wmo_id or date not correct. Check url:
  http://weather.uwyo.edu/cgi-bin/sounding?TYPE=TEXT%3ALIST&YEAR=2010&MONTH=08&FROM=2012&TO=2012&STNM=12120[1] "http://weather.uwyo.edu/cgi-bin/sounding?TYPE=TEXT%3ALIST&YEAR=2010&MONTH=08&FROM=2012&TO=2012&STNM=12120"
  Service not working or wmo_id or date not correct. Check url:
  http://weather.uwyo.edu/cgi-bin/sounding?TYPE=TEXT%3ALIST&YEAR=2010&MONTH=08&FROM=2012&TO=2012&STNM=12120[1] "http://weather.uwyo.edu/cgi-bin/sounding?TYPE=TEXT%3ALIST&YEAR=2010&MONTH=08&FROM=2012&TO=2012&STNM=12120"
  Service not working or wmo_id or date not correct. Check url:
  http://weather.uwyo.edu/cgi-bin/sounding?TYPE=TEXT%3ALIST&YEAR=2010&MONTH=08&FROM=2012&TO=2012&STNM=12120[1] "http://weather.uwyo.edu/cgi-bin/sounding?TYPE=TEXT%3ALIST&YEAR=2010&MONTH=08&FROM=2012&TO=2012&STNM=12120"
  Service not working or wmo_id or date not correct. Check url:
  http://weather.uwyo.edu/cgi-bin/sounding?TYPE=TEXT%3ALIST&YEAR=2010&MONTH=08&FROM=2012&TO=2012&STNM=12120[1] "http://weather.uwyo.edu/cgi-bin/sounding?TYPE=TEXT%3ALIST&YEAR=2010&MONTH=08&FROM=2012&TO=2012&STNM=99999"
  
   Downloaded 752 bytes...Service not working or wmo_id or date not correct. Check url:
  http://weather.uwyo.edu/cgi-bin/sounding?TYPE=TEXT%3ALIST&YEAR=2010&MONTH=08&FROM=2012&TO=2012&STNM=99999[1] "http://weather.uwyo.edu/cgi-bin/sounding?TYPE=TEXT%3ALIST&YEAR=2010&MONTH=08&FROM=2012&TO=2012&STNM=99999"
  Service not working or wmo_id or date not correct. Check url:
  http://weather.uwyo.edu/cgi-bin/sounding?TYPE=TEXT%3ALIST&YEAR=2010&MONTH=08&FROM=2012&TO=2012&STNM=99999[1] "http://weather.uwyo.edu/cgi-bin/sounding?TYPE=TEXT%3ALIST&YEAR=2010&MONTH=08&FROM=2012&TO=2012&STNM=99999"
  Service not working or wmo_id or date not correct. Check url:
  http://weather.uwyo.edu/cgi-bin/sounding?TYPE=TEXT%3ALIST&YEAR=2010&MONTH=08&FROM=2012&TO=2012&STNM=99999[1] "http://weather.uwyo.edu/cgi-bin/sounding?TYPE=TEXT%3ALIST&YEAR=2010&MONTH=08&FROM=2012&TO=2012&STNM=99999"
  Service not working or wmo_id or date not correct. Check url:
  http://weather.uwyo.edu/cgi-bin/sounding?TYPE=TEXT%3ALIST&YEAR=2010&MONTH=08&FROM=2012&TO=2012&STNM=99999[1] "http://weather.uwyo.edu/cgi-bin/sounding?TYPE=TEXT%3ALIST&YEAR=2010&MONTH=08&FROM=2012&TO=2012&STNM=99999"
  Service not working or wmo_id or date not correct. Check url:
  http://weather.uwyo.edu/cgi-bin/sounding?TYPE=TEXT%3ALIST&YEAR=2010&MONTH=08&FROM=2012&TO=2012&STNM=99999[1] "Computation time for a single sounding: 0.0210000000000008 s"
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 9 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-get_sounding.R:3:3): Downloading sounding profile ───────────────
  Error in `if ((!is.null(sounding_data)) & (ncol(sounding_data[[1]]) > 0)) {
      colnames(sounding_data[[1]]) = c("pressure", "altitude", 
          "temp", "dpt", "rh", "mixr", "wd", "ws", "thta", "thte", 
          "thtv")
      sounding_data[[1]] = sounding_data[[1]][, c("pressure", "altitude", 
          "temp", "dpt", "wd", "ws")]
      sounding_data[[1]] = na.omit(sounding_data[[1]])
      if (!metadata) {
          sounding_data = sounding_data[[1]]
      }
  }`: argument is of length zero
  Backtrace:
      ▆
   1. └─thunder::get_sounding(...) at test-get_sounding.R:3:2
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 9 ]
  Error: Test failures
  Execution halted