backup
This commit is contained in:
parent
2b89cc114f
commit
128de33ff7
@ -34,13 +34,20 @@ calibMuso <- function(settings=setupMuso(), calibrationPar=NULL,
|
|||||||
skipSpinup = TRUE, modifyOriginal = FALSE, prettyOut = FALSE,
|
skipSpinup = TRUE, modifyOriginal = FALSE, prettyOut = FALSE,
|
||||||
postProcString = NULL,
|
postProcString = NULL,
|
||||||
doBackup=TRUE,
|
doBackup=TRUE,
|
||||||
|
backupDir="bck",
|
||||||
fixAlloc=FALSE
|
fixAlloc=FALSE
|
||||||
){ #
|
){ #
|
||||||
########################################################################
|
########################################################################
|
||||||
###########################Set local variables and places###############
|
###########################Set local variables and places###############
|
||||||
########################################################################
|
########################################################################
|
||||||
if(doBackup){
|
if(doBackup){
|
||||||
file.copy(eval(parse(text = sprintf("settings$%sInput[2]", fileToChange))),file.path(settings$inputLoc),overwrite=FALSE)
|
for(epc in settings$epcInput){
|
||||||
|
file.copy(epc, file.path(settings$inputLoc, backupDir), overwrite=FALSE)
|
||||||
|
}
|
||||||
|
|
||||||
|
for(soi in settings$soilFile){
|
||||||
|
file.copy(soi, file.path(settings$inputLoc, backupDir), overwrite=FALSE)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bck <- file.path(settings$inputLoc, "bck",
|
bck <- file.path(settings$inputLoc, "bck",
|
||||||
|
|||||||
@ -17,7 +17,7 @@ paramSweep <- function(inputDir="./",
|
|||||||
parameters=NULL,
|
parameters=NULL,
|
||||||
outputDir=NULL,
|
outputDir=NULL,
|
||||||
iterations=10,
|
iterations=10,
|
||||||
outVar="daily_gpp",
|
outVar="3009",
|
||||||
htmlOutName = "paramsweep.html",
|
htmlOutName = "paramsweep.html",
|
||||||
fixAlloc=FALSE){
|
fixAlloc=FALSE){
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user