added R resource for functions