The R wrapper package for the Roam Backend API (beta)!!
You can install the development version of roamR
with:
# install.packages("devtools")
devtools::install_github("kleinlennart/roamR")
See https://roamresearch.com/#/app/developer-documentation/page/W4Po8pcHQ on how to get your API Key.
As of now, you have to sign in here to export it: https://relemma-git-feat-frontdesk.roamresearch.com/#/app
library(roamR)
# set credentials
Sys.setenv(ROAM_GRAPH = "<YOUR-GRAPH-NAME>")
Sys.setenv(ROAM_API_KEY = "<YOUR-API-KEY>")
# get all pages in the graph as a tibble
pages <- roam_q(query = "[:find ?p ?title :where [?p :node/title ?title]]",
set_names = FALSE)