QuantumR matrix for the generalized Toda system