From: Gorjanc G. <Gre...@bf...> - 2009-10-20 15:33:56
|
> 1. Brian and I tried hard (in January-February 2009, see the svn logs) > to make BRugs and R2WinBUGS not write into the working.directory unless > a file with full path is given explicitly. A software should not write > files into the current directory without being explicitly specified. > The working.directory shopuld be used to read files from, not to write > intermediate files to. If you want files to be created there: Can we > have an additional argument that tells it? Ups. I was not aware of this efforts. I agree that messing up with "temporary files" is not nice. However, one does not specify working.directory in such cases. Let me clarify my intention. If we define working.directory argument in bugs(), then this function saves data and inits file in that place, while the model file is saved in some temporary place. This surely is not consistent. And if you need to do some testing it is hard to find a model file in the temp. folders. I often prepair data, inits and model files using bugs() function, because it is handy. This way one can create a complete set of files for someone that would like to try to run BUGS, but does not use R, say AT ;) Therefore, I thought that consistency could not do any harm. Anyway, the model file is being removed by deafult leaving the working.directory clean at the end. > 2. Does path.expand() work on S-PLUS? Good point! Do we have contact with S-PLUS developer (Brian?) to check this out? gg |