---
title: "Model development notebook"
author: "`r Sys.info()['user']`"
date: "`r Sys.time()`"
output:
  html_document:
    df_print: paged
  html_notebook: default
  pdf_document: default
---

<!-- Instructions: -->
<!--  1. Run this as a notebook -->
<!--  2. make sure you already have data in DerivedData directory -->
<!--  3. Use the code_library() to import code -->
<!--  4. Adapt code below to create a control file suitable for your problem -->
<!--  5. Use the RStudio 'Addins' to help you -->
<!--  6. There are R markdown templates to help you get started with diagnostics -->
<!--  7. Write your thoughts and decision making in the document as you go -->
<!--  8. Keep the script self contained - any R objects your need in other scripts, save them with saveRDS() and use readRDS() to load them in other scripts -->
<!--  9. Rerun chunks whenever you need to restart R and periodically to ensure the reproducibility chain is unbroken -->
<!--  10. after running everything check everything is update with "run all" and then knit the document to have a record of your model development log -->


```{r setup, include=F}
## DO NOT MODIFY THIS BLOCK (unless you know what you're doing)
library(knitr)
library(rprojroot)
opts_knit$set(root.dir = find_root(
  has_file(".Rprofile") | 
    is_rstudio_project | 
    is_r_package | 
    is_git_root
))
opts_chunk$set(echo = TRUE)
opts_chunk$set(message = TRUE)
```

```{r echo=FALSE,message=FALSE}
## LOAD PACKAGES HERE
library(NMproject)

# devtools::load_all()  ## to load any R functions in R/

set.seed(1234)

```

## Introduction

This is a reproducible notebook showing model development code blocks with notes documenting modeller decision making.  It functions as a lab notebook developed interactively interactively in RStudio.  The final step should be `Knit` to produce an html version of this model development notebook.

## Model development

```{r}

## TIP: First object
##  Type "m1 <- new_nm" and hit TAB for code completion
##  Note: requires model file and dataset



```


