R package for accessing the ArcGIS API: https://developers.arcgis.com/rest/.
Install from GitHub using devtools.
if(!require(devtools)) {
install.packages("devtools")
}
devtools::install_github("NateByers/arcgisapi")
library(arcgisapi)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.