stub in rEnvironmentForNextSession function