openCompressedFile: Open a Compressed File

Description Usage Arguments Details Value

Description

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

Usage

1
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 Dec. 7, 2018, 8:02 a.m.