openCompressedFile: Open a Compressed File

openCompressedFileR Documentation

Open a Compressed File

Description

Open a (possibly) compressed file, that was compressed by either 'gzip' or 'bzip2'

Usage

openCompressedFile(filename, open = "r")

Arguments

filename

character string, the full pathname to one existing file

open

mode for opening, passed on to 'gzopen' etc.

Details

A simple wrapper function to open a possibly compressed file, without regard for which compression tool had been used.

Value

a connection to the oped file. If an error, the error as returned by 'file', 'gzfile', etc.


robertdouglasmorrison/DuffyTools documentation built on April 13, 2025, 8:51 p.m.