mergeURI | R Documentation |
This function allows the caller to combine one URI specification relative to another base URI and expand it. This handles resolving relative links, etc. relative to the URI in which they are defined.
mergeURI(u, url, reduce = FALSE)
u |
the (partial) URI of class |
url |
the base URI (of class |
reduce |
a logical value indicating whether to simplify the path specification to remove the . and .. directory elements. |
An object of class URI
.
See URI
.
Duncan Temple Lang <duncan@wald.ucdavis.edu>
URI
## Not run:
u = URI("http://www.omegahat.org/index.html")
# Merge at the same top-level of the path
mergeURI(URI("foo.html"), u)
u = URI("http://www.omegahat.org/download/R/packages")
mergeURI(URI("xml"), u)
u = URI("http://www.omegahat.org/download/R/packages/index.html")
mergeURI(URI("../xml/index.html"), u)
# not a relative URI so remains unaltered.
mergeURI(URI("http://www.ggobi.org/index.html"), u)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.