Doesn't RStudio run ~/.bashrc when started directly?
No, it doesn't. Whatever environment variables are being set in vars.sh need to get forwarded to RStudio when you open it "directly". I'm not sure what OS you're on, but I'm guessing Linux, so the answer is different depending on your specific distribution and launcher. Here's one for Ubuntu that has the shape of the solution you'll need: