Just a slight correction, standard pressure = 1 atm not 0.
For the gas constant R= 8.314 J/mol K, the units are derived as such:
Rearrange the ideal gas law until you isolate R, R = PV/nT. If you're given the volume in m3 and the pressure in Pa, then the units would be (Pa x m3)/(mol x K) = the unit for R.
Now 1 pascal is = 1 N m-2 so then we have (1 N m-2 x m3)/(mol x K) = the unit for R
However, 1 N = 1 kg m s-2
So now we end up with (kg m s-2 x m-2 x m3)/(mol x K) = the unit for R
Simplifying, we get (kg m2 s-2)/(mol x K) = the unit for R
Conveniently, 1 J = 1 kg m2 s-2
So we have (J)/(mol x K) = the unit for R which is how they got R = 8.314 J/mol K