As others have already said, you go with the initial sound rather than the written letters. The written word is mostly built around conveying speech, so the rules fit what you would use if reading out loud. There are plenty of cases where writing conveys other cues than verbal, but the core of it still applies to sound.
That actually applies to most punctuation as well, depending on how one defines “most”.
Any initialism is going to be counted as the first letter being a word for the purpose of a/an usage, when said letters are pronounced as letters. In the case of RTS (an initialism), you wouldn’t ever say it as a word, unlike RAM, which is almost always pronounced as a word and is thus is an acronym. That’s the difference between those things, btw. We tend to call all of them acronyms, and that’s okay, but there is a difference.
At Bella’s Hacienda Ranch, a brothel on the outskirts of the rural Nevada truckstop town of Wells, a half-priced special for adult male virgins this May has gone off with a bang....
'Megalopolis': Francis Ford Coppola on the conspiracy of bad reviews (www.businessinsider.com)
Francis Ford Coppola believes that "Megalopolis" detractors have conspired against him because the film "doesn't play by Hollywood's current rules."
Is it "an RTS" or "a RTS" ?
R is a consonant (indicating "a") but also if you say the word R it starts with a vowel (indicating "an")...
‘More like therapists’: adult virgins turn to Nevada brothels for sex – and healing (www.theguardian.com)
At Bella’s Hacienda Ranch, a brothel on the outskirts of the rural Nevada truckstop town of Wells, a half-priced special for adult male virgins this May has gone off with a bang....
If one conjoined twin commits a murder without the consent of their twin, will both have to go to prison or nobody?
Can You Use Linux Without the Terminal? (How to Geek article) (www.howtogeek.com)