inst/reports/region2/mlra-comparison-dynamic/setup.R

##
## setup.R file for soilReports report
## 
## required fields: .report.name, .report.version, .report.description, .paths.to.copy (vector), .update.paths.to.copy,
## optional fields: .packages.to.get, .gh.packages.to.get, .has.shiny.interface
##

## note: this will not update installed packages... could lead to dependency-related errors
## packages + deps from CRAN
## version number

.report.name <- 'mlra-comparison-dynamic'
.report.version <- '0.1'
.report.description <- 'compare MLRA/LRU-scale delineations, based on mu-comparison report'

.paths.to.copy <- c('report.Rmd','custom.R','config.R','categorical_definitions.R','README.md','changes.txt')
.update.paths.to.copy <- c('report.Rmd','custom.R', 'categorical_definitions.R','README.md','changes.txt')

.packages.to.get <- c('knitr', 'rmarkdown', 'rgdal', 'reshape2', 'raster', 'plyr', 'randomForest', 'Hmisc', 'aqp', 'soilDB', 'sharpshootR', 'latticeExtra', 'clhs', 'devtools', 'rgeos', 'vegan', 'spdep', 'scales', 'e1071')

## packages from GH
# dependencies should be satisfied by installing CRAN version first
.gh.packages.to.get <- c('ncss-tech/sharpshootR', 'ncss-tech/aqp')

# flag to indicate that shiny.Rmd and not report.Rmd is the primary markdown file; convention should probably be that shiny.Rmd has option to generate a static report.Rmd-type output. 
# currently the pedon summary demo using Shiny supports this option and uses a file called report.Rmd as the template for the static output
.has.shiny.interface <- FALSE

## fixes, usually due to an older version of R

# get an older version of knitr,  work-around, until we get R 3.3.0
# http://stackoverflow.com/questions/37241578/getting-a-parser-all-error-in-r-when-using-knitr-for-converting-a-basic-rmd-file
# .fixes <- list('install.packages("http://cran.r-project.org/src/contrib/Archive/knitr/knitr_1.12.tar.gz", repos=NULL, type="source")')
ncss-tech/soilReports documentation built on April 25, 2024, 1:03 a.m.