Stock Assessment Graphs Database Web Services

R interface to access the web services of the ICES Stock Assessment Graphs database <>.


icesSAG 1.3-6 (2019-03-13)

o Fixed bug in parsing of XML tables. Function now reads the WSDL data that is included as an internal data set (list of variable names) o Set all examples to dontrun o code now checked against lintr for consistent style

icesSAG 1.3-5 (2018-06-08)

o added function getStockSourceData() to download the XML file that was origionally uploaded.

icesSAG 1.3-4 (2018-05-01)

o added function getLatestStockAdviceList() o export print methods for sag.list and for fishdata and fishinfo objects used to upload data. o improved personal access token logic o improved help documentation o Added StockCategory, Purpose, ModelType, ModelName to upload functions o Added filter for assessment Purpose in getSAG() o fixed bugs arising from changes to xml2 package o fixed bug arsing from change in ICES Datsu web service

icesSAG 1.3-2 (2017-05-06)

o User sets SAG database access token in a ~/.Renviron_SG file. o Addressed non CRAN compliant behaviour: user must create .Renviron file themselves.

icesSAG 1.3-1 (2017-05-04)

o Improved createSAGxml() internal data validation.

icesSAG 1.3-0 (2017-04-05)

o Added function uploadStock() to upload data to SAG database via uploadXMLFile(). The functions readSAGxml() and createSAGxml() convert data to and from SAG XML upload format.

o Added functions stockInfo() and stockFishdata() to prepare data for upload. Uploads require user access tokens, available from the main SAG website.

o Added function getStockStatusValues() to get stock status table, and getYSBRSummaryTable() to get yield and SSB per recruit.

o Added functions getSAGSettings() and setSAGSettings() to get and set graph settings. The function getSAGTypeGraphs() lists the SAG graph types.

o Renamed findKey() to findAssessmentKey().

icesSAG 1.2-1 (2017-03-24)

o Hotfix release to match changes in the underlying web service, regarding assessment keys.

icesSAG 1.2-0 (2016-12-05)

o Added functions get*Graph() to fetch standard graph images, with a corresponding plot() method. The convenience function getSAGGraphs() fetches four commonly used graphs.

o Added argument 'regex' to findKey().

o Fixed bug in getSAG() when different column names appear in stock summaries and combine = TRUE.

o Removed dependency on RCurl and XML by using base functions to download and parse data.

icesSAG 1.1-0 (2016-10-29)

o Added function findKey() to look up a unique stock list key.

o Added function getSAG() to import summary results and reference points, without finding a lookup key first.

o Changed argument in functions getSummaryTable() and getFishStockReferencepoints() from 'year' to 'key'.

o Improved XML parsing, so both leading and trailing white space is removed.

o Improved XML parsing, so "" and "NA" is converted to NA.

o Improved XML parsing, so data frame columns are automatically coerced to the appropriate storage mode (character, numeric, integer).

icesSAG 1.0-0 (2016-08-09)

o Initial release, with functions getListStocks(), getSummaryTable(), and getFishStockReferencePoints().

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


1.3-6 by Colin Millar, 6 months ago

Browse source code at

Authors: Colin Millar [aut, cre] , Scott Large [aut] , Arni Magnusson [aut] , Carlos Pinto [aut]

Documentation:   PDF Manual  

GPL (>= 2) license

Imports png, httr, xml2, openssl, icesVocab

Suggests testthat

See at CRAN