I've seen both Nǎ'er
and Nǎr
.
The first form looks more like a literal transcription of each character, while the second one might be the way it's pronounced (assuming there is a difference)
I do understand pinyin is just a learning / transliteration tool; I'm more interested in the explanation of the cases where this conversion is applied and why.