From PV=nRT,
R=nTPV
The dimensions of each quantity are:
- Pressure P is force/area: [L2][MLT−2]=[ML−1T−2]
- Volume V: [L3]
- Amount of substance n: [mol]
- Temperature T: [K]
[R]=[mol][K][ML−1T−2][L3]=[ML2T−2K−1mol−1]
(This is energy per kelvin per mole, which matches the SI unit of R, J K−1mol−1.)