knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of Rnotion is to bridge R to Notion's beta API through R-friendly functions. Behind the scene, Rnotion has utilized the power of packages like httr and jsonlite for connectivity, and simulated json-API object using vctrs.
Disclaimers: I've nothing to do with notion team at all. The packages has been built just for the sake of learning.
I aim to do things step by step:
| Nope | Under Construction | Somewhat finish | Wrapper fn available | |------|--------------------|---------------------------------------------------------------------|----------------------| | | | Retrieve a user | | | | | | | | | | | |
You can install the released version of Rnotion from CRAN with:
# Not Yet # install.packages("Rnotion")
And the development version from GitHub with:
# install.packages("devtools") devtools::install_github("Songyosr/Rnotion")
This is a basic example which shows you how to solve a common problem:
library(Rnotion) ## basic example code set_notion_token(token = ....YOUR_TOKEN_HERE...)
notion_get_user() notion_get_database()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.