Non-Hermitian oscillator and R-deformed Heisenberg algebra