In file 
mains.r, modify the line :
 
	language=R, numbers=none, frame=none, breaklines=true, backgroundcolor=
, 
	keywordstyle=
, showstringspaces=false,
	basicstyle=,
	numberstyle=,
	framexleftmargin=13mm, xleftmargin=12mm  
 
And replace "/home/ebranlar/SpaceCharge", by any absolute path from which your work documents will be placed. This will define the global variable "ROOTDIR". Each time you call 
 
	language=R, numbers=none, frame=none, breaklines=true, backgroundcolor=
, 
	keywordstyle=
, showstringspaces=false,
	basicstyle=,
	numberstyle=,
	framexleftmargin=13mm, xleftmargin=12mm  
 
R will go in this directory.
If you call 
 
	language=R, numbers=none, frame=none, breaklines=true, backgroundcolor=
, 
	keywordstyle=
, showstringspaces=false,
	basicstyle=,
	numberstyle=,
	framexleftmargin=13mm, xleftmargin=12mm  
 
R will go in the sub directory "simulations" that is hopefully in the directory you gave for your path ("ROOTDIR").