Commit cf8c6c55 authored by matbuoro's avatar matbuoro
Browse files

cleaning bugs folder before analysis

parent 91af6997
rm(list=ls()) # Clear memory
##------------------ R PACKAGES ------------------------------##
library(R2OpenBUGS)
library(rjags) # require to use "read.bugsdata" function
......@@ -21,6 +22,9 @@ stade <- "STADE"
work.dir<-paste("Rep",site,stade,sep="/")
setwd(work.dir)
# cleaning
system("rm bugs/*")
##-----------------------------DATA ----------------------------------##
source(paste('data/data_',stade,'.R',sep="")) # creation du fichier Rdata
......
......@@ -32,7 +32,7 @@ cd $REPbase/$SITE
sed 's|ITER|'"$ITER"'|g' -i $STADE/analyse_"$STADE".R
sed 's|THIN|'"$THIN"'|g' -i $STADE/analyse_"$STADE".R
R CMD BATCH --no-save --no-restore $STADE/analyse_"$STADE".R #& # analyse dans R
# R CMD BATCH --no-save --no-restore $STADE/analyse_"$STADE".R #& # analyse dans R
#rm -f $STADE/CODAindex.txt
#rm -f analyse_"$STADE".R
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment