Running ‘testthat.R’ [2s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > ## load dependencies
  > library(testthat)
  > library(icesSAG)
  > 
  > ## test package
  > test_check("icesSAG")
  ── 1. Error: SAG upload (@test-test.R#13)  ─────────────────────────────────────
  argument "StockCode" is missing, with no default
  1: expect_equal(list(info = info, fishdata = fishdata), readSAGxml(stkxml)) at testthat/test-test.R:13
  2: quasi_label(enquo(expected), expected.label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: readSAGxml(stkxml)
  5: sag_parse(out, type = "upload")
  6: sag_parseUpload(x)
  7: do.call(stockInfo, info)
  8: (function (StockCode, AssessmentYear, ContactPerson, ...) 
     {
         val <- c(list(StockCode = StockCode, AssessmentYear = AssessmentYear, ContactPerson = ContactPerson), 
             list(...))
         if (any(!names(val) %in% validNames("stockInfo"))) {
             warning("The following argument(s) are invalid and will be ignored:\n", utils::capture.output(noquote(names(val))[!names(val) %in% 
                 validNames("stockInfo")]), "\n")
         }
         val$NameSystemProducedFile <- paste("icesSAG R package version", utils::packageVersion("icesSAG"))
         val <- val[names(val) %in% validNames("stockInfo")]
         val[setdiff(validNames("stockInfo"), names(val))] <- NA
         class(val) <- c("sag.list", class(val))
         val
     })(Assessment.StockCode = "cod.27.47d20", Assessment.AssessmentYear = 2015L, Assessment.ContactPerson = "colin.millar@ices.dk", 
         Assessment.NameSystemProducedFile = "icesSAG R package version 1.3.2", Assessment.Fish_Data.Year = 2000L, 
         Assessment.Fish_Data.Year = 2001L, Assessment.Fish_Data.Year = 2002L, Assessment.Fish_Data.Year = 2003L, 
         Assessment.Fish_Data.Year = 2004L, Assessment.Fish_Data.Year = 2005L, Assessment.Fish_Data.Year = 2006L, 
         Assessment.Fish_Data.Year = 2007L, Assessment.Fish_Data.Year = 2008L, Assessment.Fish_Data.Year = 2009L, 
         Assessment.Fish_Data.Year = 2010L, Assessment.Fish_Data.Year = 2011L, Assessment.Fish_Data.Year = 2012L, 
         Assessment.Fish_Data.Year = 2013L, Assessment.Fish_Data.Year = 2014L, Assessment.Fish_Data.Year = 2015L)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 1147 SKIPPED: 0 FAILED: 1
  1. Error: SAG upload (@test-test.R#13) 
  
  Error: testthat unit tests failed
  Execution halted