feOptions <-
function(year, make, model, ...) {
response <- feQuery(paste("vehicle/menu/options?year=", year,
"&make=", make,
"&model=", model,
sep = ""
))
if (is.null(response)) {
return(NULL)
}
out <- xpathApply(response, "//value", xmlValue)
names(out) <- xpathSApply(response, "//text", xmlValue)
# class(out) <- c('feOptions',class(out))
return(out)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.