Thank you, got the answer
Installation of Ensembl Rest API on R:
Install latest Rtools in base R from: https://cran.r-project.org/bin/windows/Rtools/
install.packages("githubinstall")
library(githubinstall)
library(devtools)
devtools::install_github("timyates/EnsemblRest")
library(EnsemblRest)
R code for Ensembl Rest API:
library(httr)
library(jsonlite)
library(xml2)
server <- "https://rest.ensembl.org"
ext <- "/variation/human/rs56116432?pops=1"
r <- GET(paste(server, ext, sep = ""), content_type("application/json"))
stop_for_status(r)
# use this if you get a simple nested list back, otherwise inspect its structure
# head(data.frame(t(sapply(content(r),c))))
head(fromJSON(toJSON(content(r))))