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.
So here’s what worked for me… No argument for R CMD Sweave but still a workaround.
the use of basename and dirname helped a lot 🙂