initial R API