as.character.file

0th

Percentile

Convert file connections to strings

as.character method for file connections.

Usage
"as.character"(x, ...)
Arguments
x
A file connection.
...
Not currently used.
Value

A string containing the target location of the file connection.

See Also

file, summary.connection, as.character

Aliases
  • as.character.file
Examples
library(assertive.files) rprofile <- file.path(R.home("etc"), "Rprofile.site") fcon <- file(rprofile) assertive.base::assert_all_are_true(identical(as.character(fcon), rprofile)) close(fcon)
Documentation reproduced from package assertive.files, version 0.0-2, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.