README.md

r2notion

r2notion wraps the primary functions of the Notion API, allowing you to create pages and send content to Notion from R.

This package is under development and this readme may not accurately reflect its current state. To see a current list of working features, click here.

Installation

You can install the development version of r2notion from GitHub with:

# install.packages("devtools")
devtools::install_github("burrowsdt/r2notion")

Initial Setup

Using the Notion API requires a bit of setup on your part. Follow these steps:

  1. Set up a Notion integration for your workspace following “Step 1: Create an Integration” on this page. Name the integration anything you want - “r2notion integration” is fine - and then copy the “Internal Integration Token” to an accessible but safe location.

  2. Save your token as an environment variable by calling r2notion::set_notion_key(). A separate window will open asking you to enter your key. Enter the token that was given to you when you set up your integration.

  3. Set permissions to allow access to the page/database you want to post to. Follow step 2 of this guide for an example and copy/save the URL for the destination page. Note that when creating or posting a page using r2notion, you can use the full URL or just the id – the package will extract the id from the URL if necessary.

Current Working Functions



burrowsdt/r2notion documentation built on Jan. 5, 2022, 4:10 p.m.