glottosave | R Documentation |
If no filename is provided, the name of the glottodata object will be used.
glottosave(glottodata, filename = NULL)
glottodata |
User-provided glottodata |
filename |
Filename either with or without file extension |
If no file extension is provided, a sensible default file extension is chosen. Dynamic maps (tmap) are saved in .html format, static maps (tmap) are saved as .png. Spatial data (sf) are saved as geopackage (.GPKG) by default, but .shp is also possible.
No object is returned, it will be save locally at the specified location
glottoget_glottodata
Other <glottodata>:
glottoget()
glottodata <- glottoget("demodata", meta = FALSE)
# Saves as .xlsx
glottosave(glottodata, filename = file.path(tempdir(), "glottodata") )
glottospacedata <- glottospace(glottodata)
# Saves as .GPKG
glottosave(glottospacedata, filename = file.path(tempdir(), "glottodata") )
glottomap <- glottomap(glottodata)
# Saves as .png
glottosave(glottomap, filename = file.path(tempdir(), "glottomap") )
# Saves as .html
glottomap <- glottomap(glottodata, type = "dynamic",
filename = file.path(tempdir(), "glottomap") )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.