open.maybe.gzip: Open a connection that transparently handles gzip...

View source: R/read_dti_tcktsf.R

open.maybe.gzipR Documentation

Open a connection that transparently handles gzip compression.

Description

Open a connection that transparently handles gzip compression.

Usage

## S3 method for class 'maybe.gzip'
open(filepath, gzipped, mode = "rb")

Arguments

filepath

character string, path to the file.

gzipped

logical, whether the file is gzip-compressed (see is.gzip.file).

mode

character string, 'r' for text or 'rb' for binary.

Value

a connection, call close() on it when done.


freesurferformats documentation built on Sept. 25, 2026, 1:07 a.m.