toUrl

0th

Percentile

Converts a pathname into a URL

Converts a pathname into a URL starting with file://.

Keywords
programming, IO
Usage
# S3 method for default
toUrl(pathname, safe=TRUE, ...)
Arguments
pathname

A character vector of pathnames to be made into URLs.

safe

If TRUE, certain "unsafe" characters are escaped.

...

Not used.

Value

Returns a character vector.

See Also

URLencode.

Aliases
  • toUrl.default
  • toUrl
Documentation reproduced from package R.utils, version 2.8.0, License: LGPL (>= 2.1)

Community examples

Looks like there are no examples yet.