getClient | R Documentation |
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.
getClient(username, password)
username |
A character vector of length 1. |
password |
A character vector of length 1. |
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.
An instance of the openreview client. Class: 'openreview.openreview.Client', 'python.builtin.object'
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.