as.location

0th

Percentile

Convert a path or URL to a location object

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.

Aliases
  • as.location
  • as.location.character
  • as.location.location
  • print.location
Examples
# 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")
# }
Documentation reproduced from package finch, version 0.4.0, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.