| as.location | R Documentation |
Convert a path or URL to a location object
as.location(x, ...) ## S3 method for class 'character' as.location(x, ...) ## S3 method for class 'location' as.location(x, ...) ## S3 method for class 'location' print(x, ...)
x |
Input, a path or URL |
... |
Ignored. |
# A zip file
file <- system.file("examples/0000154-150116162929234.zip",
package = "finch")
as.location(file)
# A directory
dir <- system.file("examples/0000154-150116162929234",
package = "finch")
as.location(dir)
# A URL
as.location("https://httpbin.org/get")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.