The goal of smarterapi is to collect data from SMARTER REST API
You can install the development version of smarterapi from GitHub with:
# install.packages("devtools") devtools::install_github("cnr-ibba/r-smarter-api")
This is a basic example which shows you how to collect data from SMARTER REST API for the Italian goats belonging to the Adaptmap dataset:
library(smarterapi) datasets <- get_smarter_datasets( query = list(species = "Goat", search = "adaptmap", type = "genotypes")) adatpmap_id <- datasets["_id.$oid"] adaptmap_goats <- get_smarter_samples( species = "Goat", query = list(dataset=adatpmap_id, country="Italy"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.