I'm trying to build a project directory organization structure which follows best-practices. Adapting this structure, part of my project structure would look as follows:
myproject
myproject/code/r/main.r
myproject/report/main.tex
Q: Where should I tell my R output to go though? Is there a generally acceptable best practice which is the least breakable, most modular, most intuitive, etc.?
I see a few options:
myproject/code/r/. In this casemain.texwill include statements like\includgraphics{../code/r/output.pdf}. This seems clunky though. Shouldmain.texreally "know" about../code/r/?myproject/code-output. In this casemain.texwill include something like\includgraphics{../code-output/output.pdf}.main.rwould include statements likepdf("../../code-output/output.pdf"). Right now this is my preferred method. It seems logical formain.rto "put" it's output in a directory that is reasonable formain.texto "see".myproject/report/img. In this casemain.texwill include something like\includgraphics{./img/output.pdf}.main.rwould include statements likepdf("../../report/img/output.pdf"). I don't like this approach for the same reasons as "1." above: in this case, it doesn't seem likemain.rshould "know" about\report\img.
I'm not a programmer but may be doing a lot of this. So, I'm very curious how programmers think about this sort of stuff. All thoughts are welcome!
\includegraphics. – lowndrul Mar 03 '11 at 02:38mklinksfrom the command line in Windows and making sure that the link had a.pdfextension (since I'm using PdfLaTeX) was the trick. Everything works now. – lowndrul Mar 03 '11 at 15:06