ge.splitPoly <- function(line,poly){
x <- gIntersection(line, poly)
bx <- gBuffer(x, width = 0.000001)
dx <- gDifference(poly, bx)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.