R is the initial risk, the planned loss if the stop fills. A fixed R-multiple target is an exit placed 1R, 2R, or some other multiple of that distance beyond the entry.
On a long, the stop distance in price is entry minus stop. A 2R target sits twice that distance above the entry. If the whole position exits there, the gain before fees and funding is twice the planned loss. The multiple is written before the trade. It does not change because the last few candles looked strong.
The stop comes first. Where to place a stop-loss is how that price is chosen. The risk/reward calculator turns an entry, a stop, and one take-profit into the ratio, the position size, and the dollar risk.