toggle R interactive mode.