| as.character.file {assertive.files} | R Documentation |
as.character method for file connections.
## S3 method for class 'file' as.character(x, ...)
x |
A file connection. |
... |
Not currently used. |
A string containing the target location of the file connection.
file, summary.connection,
as.character
rprofile <- file.path(R.home("etc"), "Rprofile.site")
fcon <- file(rprofile)
assertive.base::assert_all_are_true(identical(as.character(fcon), rprofile))
close(fcon)