GithubHelp home page GithubHelp logo

advicetemplate's Introduction

# AdviceTemplate
A simple R package to draft ICES advice sheets

## Purpose
ICES provides advice on over 260 fish stocks. In 2017, ICES will provide new advice for 170 of these stocks. Providing uniform and quality controled products is paramount to ICES's mission, however, the number of fish stocks (many with slight variations in data and format) and the practical consideration of having a large network of persons responsible throughout the process can make a consistent product difficult. The impetus, here, is to provide a starting point that reduces Secretariat work load, provides a consistent product, requires no additional software (everything remains a word .docx file!), is mostly hidden from view outside the Secretariat, and is flexible enough for the challenges mentioned above.

Notes:
With the implementation of more standardized model output with the ICES Transparent Assessment Framework, some of the limitations mentioned below will be mitigated. 


### Stages
1. The [ReporteRs](https://cran.r-project.org/web/packages/ReporteRs/index.html) package can add relevant information from the SD (via the [icesSD](https://github.com/ices-tools-prod/icesSD) package) to a generic advice sheet template to create a draft advice sheet for each stock. Each draft advice sheet will have updated stock names, section numbers, advice heading, and caption labels saved to a output folder with a specific file name (e.g., O:/<book_number>/<STOCK.CODE>.docx).

  * Outstanding issues: Header right align published date. Stock name heading hanging tab.

2. Building on the above, the [docxtractr](https://cran.r-project.org/web/packages/docxtractr/index.html) package can harvest tables from year-1 advice sheets and the ReporteRs package can format and add standard tables to the proper location in the draft advice sheets. Splitting the stocks into data categories (Category 1-6) and stock type (e.g., crustacean, elasmobranch, or fish) will be necessary to format and add the different standard tables for each unique type.

3. *update* Now for 2018, the [officer](https://cran.r-project.org/web/packages/officer/index.html) package provides much of the text support that was missing from last year. Now, the effort will be to take year-1 advice, clean out the tables and update as a new draft for 2018.


4. Currently, we create draft advice sheets before the Working Group. If we create draft advice sheets after the final assessment is accepted and uploaded to Stock Assessment Graphs, the icesSAG package can be used to add figures and tables directly into the draft advice sheet.
  * Advantages: Nearly a complete draft advice sheet with full provenance to ICES databases (SLD, SAG, and potentially Historical Catch and Rec-12 databases).
  * Limitations: We would be changing how we work.
  * Completion: 0% (~ 2 days, plus additional time to train supporting staff to generate advice sheets)


Tables that should not be transferred from year-1:
  * History of catch and landings/ commercial catch
  * Summary of the assessment

advicetemplate's People

Contributors

slarge avatar odontaster avatar lucalamoni avatar

Watchers

James Cloos avatar  avatar

advicetemplate's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.