You'll need the devtools
package in order to build the API.
Make sure you have a proper CRAN repository from which you can download packages.
Install the devtools
package with the following command.
if(!require(devtools)) { install.packages("devtools") }
Make sure you set the working directory to where the API code is located. Then execute
library(devtools)
install(".")