finch (version 0.4.0)

as.location: Convert a path or URL to a location object

Description

Convert a path or URL to a location object

Usage

as.location(x, ...)

# S3 method for character as.location(x, ...)

# S3 method for location as.location(x, ...)

# S3 method for location print(x, ...)

Arguments

x

Input, a path or URL

...

Ignored.

Examples

Run this code
# NOT RUN {
# 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")
# }

Run the code above in your browser using DataCamp Workspace