Resistance, resistivity and Ohm's law

A resistor's resistance is its resistivity times its length over its cross-section, integrated along it when the resistivity varies, and an ohmic resistor carries a current proportional to the potential difference across it, so the slope of I against V is one over R.

From AP Physics C: Electricity and Magnetism.