knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  message = FALSE,
  warning = FALSE
)
library(openreviewr)
library(magrittr)

Start client

# Username and password can be saved as environment variables (e.g in ~/.bashrc in a linux OS)
# if using rstudio in a linux OS, starting rstudio from a bash shell might be necessary.
username = Sys.getenv("OPENREVIEW_USERNAME")
password = Sys.getenv("OPENREVIEW_PASSWORD")
client = getClient(username = username, password = password)

Get invitations

Examples from: https://openreview-py.readthedocs.io/en/latest/getting_data.html#notes

Using the client object:

invitations <- client$get_invitations(regex = "ICLR.cc/2019/Conference/.*") %>% 
  vapply(., function(x) x$id, character(1))
head(invitations)

Wrapper functions:

# Currently, only gets the first 1000
invitations_2 <-  getInvitationId(client = client, regex = 'ICLR.cc/2019/Conference/.*')
head(invitations_2)


waldronlab/openreviewr documentation built on Aug. 27, 2023, 4:59 p.m.