$${B = \int dB = \int_0^{\phi} \frac{\mu_0}{4 \pi} \frac{i R d \phi}{R^2} = \frac{\mu_0 i}{4 \pi R} \int_0^{\phi} d \phi}$$