[R] add test and release build configurations