getClient: Get OpenReview Client

View source: R/client.R

getClientR Documentation

Get OpenReview Client

Description

getClient starts a client for openreview. The code is based on: https://github.com/kevinrue/openreview-r/blob/main/dev/test.R and following the instructions in the documentation of the basilisk package.

Usage

getClient(username, password)

Arguments

username

A character vector of length 1.

password

A character vector of length 1.

Details

Since user credentials are confidential, it's recommended to get the values from environment variables rather than directly typing in the console or script. Sys.getenv can be useful to get the credential values from environment variables.

Value

An instance of the openreview client. Class: 'openreview.openreview.Client', 'python.builtin.object'

Examples


## Not run: 
username = Sys.getenv("OPENREVIEW_USERNAME")
password = Sys.getenv("OPENREVIEW_PASSWORD")
client = getClient(username = username, password = password)
invitations = getInvitationId(client = client, regex = "Microbiome-VIF.org/.*")
invitations

## End(Not run)


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