Hi ghetom
Thread is quite old but I had to do the same exercise so I would like to complete the thread.
The integral you was looking for is right and its solution is complicate. For such beasts i use
this page. Only in the limit R→\infty the integral has a elegant solution.
\int^{R}_{0}...