initialize R