-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand file tree
/
Copy pathreopen_connection.Rd
More file actions
26 lines (25 loc) · 954 Bytes
/
reopen_connection.Rd
File metadata and controls
26 lines (25 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
\name{reopen_connection}
\alias{reopen_connection}
\title{ Reopen a connection in binary mode }
\description{
S3 generic to reopen a connection in binary read mode. Used internally by \code{fread}. Exported so packages with custom connection classes can define methods.
}
\usage{
reopen_connection(con, description, ...)
}
\arguments{
\item{con}{ A connection object. }
\item{description}{ character string. A description of the connection. }
\item{...}{ Additional arguments for methods. }
}
\details{
Reopens a connection in binary read mode (\code{"rb"}). Methods are provided for \code{file}, \code{gzfile}, \code{bzfile}, \code{url}, \code{unz} and \code{pipe} connections.
To support custom connection types with \code{fread}, define a method for your connection class that returns a new connection opened in binary mode.
}
\value{
A connection object opened in binary read mode.
}
\seealso{
\code{\link{fread}}
}
\keyword{ data }