The question title says it all. Using R CMD Sweave my .tex file is always generated in my HOME directory. Is it possible to change this? I mean i could mv it with a shell script, but I guess there`s some better trick to do it :)
@Dirk: I used the script that I posted here and pdflatex does not find the file because it's always written to the HOME directory of my user.