Automatic script start


My goal is to force RStudio to automatically run a code on the console after the session is loaded in an project.

I know that this would be done by inserting source in .profile, but my original problem is that a website allows me to scrape only if the session is loaded (scraping is banned if I simple run a script from cmd, but works if I start the script from Rstudio). Thats why it also doesn't work if I use .Rprofile, I would need something which is evaluated after .Rprofile.

(I would open the project with a batch file)

Thank in advance,