# Install dependencies install.packages("remotes") # Install SAM remotes::install_github("fishfollower/SAM/stockassessment") # Clone SAM github repository system("git clone https://github.com/fishfollower/SAM.git") # Go into nscodcovar test setwd("SAM/testmore/herringVar") # Run demo source("script.R") # Print results print(fit$opt$objective) plot(fit)