## Not run:
# # Using the rgbif package and the source argument
# if (requireNamespace("rgbif", quietly=TRUE)) {
# d <- rgbif::occ_data(scientificName="Apis mellifera", limit=50, minimal=FALSE)
# d <- d$data
# d <- format_gq(d, source="rgbif")
#
# # Using a configuration object (matches 'rinat' schema)
# conf <- list(decimalLatitude="latitude",
# decimalLongitude="longitude",
# countryCode=NULL,
# scientificName="scientific_name")
# d <- format_gq(d, config=conf)
#
# # Passing individual parameters, all optional
# d <- format_gq(d,
# decimalLatitude="lat",
# decimalLongitude="lng",
# countryCode="ccode",
# scientificName="sciname")
# }
# ## End(Not run)
Run the code above in your browser using DataLab