#' @title kml.start
#' @description unknown
#' @family abysmally documented
#' @author unknown, \email{<unknown>@@dfo-mpo.gc.ca}
#' @export
kml.start = function( outfile, document.name ) {
if ( file.exists(outfile) ) file.remove( outfile)
con = file( outfile, open="a")
writeLines( kml.document('header', document.name), con )
return(con)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.