Gunpowder's burning rate increases with pressure, so it will burst containers but just burns in the open. Ignition of the powder packed behind a bullet must generate enough pressure to force it from the muzzle at high speed, but not enough to rupture the gun barrel.
The gas constant occurs in the ideal gas law, as follows: where P is the absolute pressure (SI unit pascals), V is the volume of gas (SI unit cubic metres), n is the amount of gas (SI unit moles), m is the mass (SI unit kilograms) contained in V, and T is the thermodynamic temperature (SI unit kelvins).
The ideal gas law can be viewed as arising from the kinetic pressure of gas molecules colliding with the walls of a container in accordance with Newton's laws. But there is also a statistical element in the determination of the average kinetic energy of those molecules. The temperature is taken to be proportional to this average kinetic energy; this invokes the idea of kinetic temperature. One mole of an ideal gas at STP occupies 22.4 liters.