You need not care of the R handle. It is already handled in the r.h header and not intended to be accessed by the user. For initializing R, just call RStart() in the INITRUN.