By drawing it like that you've already given yourself the right answer.
The line from the circle to the rectangle is given by [ x2 - x1, y2 - y1 ]
The direction is then this quantity normalized to unity so [x2-x1, y2-y1] / ( (x2-x1)^2 + (y2-y1)^2 ). In other words a vector in the right direction with length 1.
Since we have to stay on the circle we have to go R into the direction of the rectangle so
[ x1 + R * ( (x2-x1) / ( (x2-x1)^2 + (y2-y1)^2 ) ), y1 + R * ( (y2-y1) / ( (x2-x1)^2 + (y2-y1)^2 ) ) ]
You can probably simplify the equation but I have to be off now xD. This assumes that the rectangle is always perpendicular to the line mentioned before (the way you've drawn it). If it's not, you will need a vector defining it's angle and it's width as well.