Queue Our Decomposition
Octave, 19 bytes



@(x)[[q,r]=qr(x),r]


Try it online!

My first Octave answer \o/

Octave’s qr has quite a few alternatives in other languages that return both Q and R: QRDecomposition (Mathematica), matqr (PARI/GP), 128!:0 - if I recall correctly - (J), qr (R)...