knitr::opts_chunk$set(echo = FALSE, message = FALSE, warning = FALSE, fig.width = 12, fig.height = 10, results = 'asis') options(scipen = 1, digits = 4)
devtools::load_all() required_pkg <- c( "devtools", "here", "reshape", "ggplot2", "reshape2", "RColorBrewer", "scales", "fmsb", "PBSadmb" ) pkg_to_install <- required_pkg[!(required_pkg %in% installed.packages()[, "Package"])] if (length(pkg_to_install)) install.packages(pkg_to_install, repos = "http://cran.us.r-project.org") invisible(lapply(required_pkg, library, character.only = TRUE)) devtools::install_github("r4ss/r4ss", ref = "c53f82fcfb3f54296d79ba3a4163990150981285" ) library(r4ss)
scenario_filename <- "_lowCV" terminal_year <- 2012 fishery_CV_input <- 0.05 survey_CV_input <- 0.1 add_environmental_effects <- FALSE add_fleet_dynamics <- FALSE cat(knitr::knit_child('_OM3_data_rich_stock_assessment_template.Rmd', envir = environment(), quiet = TRUE))
scenario_filename <- "_lowCV" terminal_year <- 2012 fishery_CV_input <- 0.05 survey_CV_input <- 0.1 add_environmental_effects <- TRUE add_fleet_dynamics <- FALSE cat(knitr::knit_child('_OM3_data_rich_stock_assessment_template.Rmd', envir = environment(), quiet = TRUE))
scenario_filename <- "_lowCV" terminal_year <- 2012 fishery_CV_input <- 0.05 survey_CV_input <- 0.1 add_environmental_effects <- TRUE add_fleet_dynamics <- TRUE cat(knitr::knit_child('_OM3_data_rich_stock_assessment_template.Rmd', envir = environment(), quiet = TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.