R notebook examples and API