R: Building Liberator

Requirements

The R API depends on arrow>=0.15.1, curl, and jsonlite. It is available for Windows 10, MacOS, and Linux.

install.packages(“devtools”)
devtools::install_git('https://dev.azure.com/cloudquant/Public/_git/Public',subdir='liberator/r')
install.packages(“arrow”)
install.packages(“jsonlite”)
install.packages(“curl”)
install.packages('usethis')
usethis::edit_r_environ()

This will create a file called .Renviron in your documents folder in Windows, which should open automatically, if not, navigate to your Windows Documents folder, open that file and add the following line:

CURL_SSL_BACKEND="openssl"

Restart the R session.

You will either need to pass your username and token in as arguments to the functions, add them as environment variables “LIBERATOR_USER” and “LIBERATOR_TOKEN”, or include them in a liberator.json file. Your PFX and liberator.json files need to be in the same directory as liberator.R.