#' fullValidation
#'
#' Function that produces the complete validation data set used for evaluation of MAgPIE outputs
#'
#' @param rev data revision which should be used as input (positive numeric).
#' \code{\link{setConfig}} (e.g. for setting the mainfolder if not already set
#' properly).
#' @author Jan Philipp Dietrich, Kristine Karstens
#' @seealso
#' \code{\link{readSource}},\code{\link{getCalculations}},\code{\link{calcOutput}},\code{\link{setConfig}}
#' @examples
#'
#' \dontrun{
#' retrieveData("VALIDATION")
#' }
#' @importFrom madrat getConfig
#' @importFrom lucode path
fullVALIDATION <- function(rev=0.1) {
# all validation data regional aggregations happens here
# exitsting "validation.mif" file is loaded if all functions are set to append=TRUE
# Please put the validation.mif into your output folder.
# Use retrieveData("VALIDATION") to create a .tgz
file.copy(lucode::path(paste0(getConfig("mainfolder"), "/output/"),"validation.mif"),
lucode::path(getConfig("outputfolder"),"validation.mif"))
valfile <- "validation.mif"
# Add your validation scripts here
calcOutput(type="ValidPopulation", datasource="WDI", aggregate="REG+GLO", file=valfile, append=TRUE, na_warning=FALSE, try=TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.