toUrl {R.utils}R Documentation

Converts a pathname into a URL

Description

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

Usage

## Default S3 method:
toUrl(pathname, safe=TRUE, ...)

Arguments

pathname A character string of the pathname to be made into a URL.
safe If TRUE, certain "unsafe" characters are escaped.
... Not used.

Value

Returns a character string.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

URLencode.


[Package R.utils version 1.1.1 Index]