"Hi.. Thanks for the invite to T's, but probably not a good idea for me to go."
the first part was great, the second comes across as if you were baiting him to respond with questions as to why its not a good idea, which would open the door to you to jump into an R talk.
after pages of discussions, you couldnt just say thanks but no thanks and left it at that.
"In a ham and eggs breakfast, the hen is involved, but the pig is committed".