[R] Add detect remove and set interval

[R] Add detect remove and set interval
nothing

nothing
Merge remote-tracking branch 'origin/R-detectandsetting'