Take a gas sample, measure number of moles of gas, pressure, volume and temperature at the same time. Plug them all into the ideal gas equation - the only unknown is R.
That's not to say it is the only way, but the most obvious one in the context of Avogadro's law.