Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

is.gzip

Check if a file is a gzip file


Description

Check if a file is a gzip file

Usage

is.gzip(f)

Arguments

f

Path to file to test

Value

logical indicating whether f is in gzip format (or NA if the file cannot be accessed)

Examples

notgzipfile=tempfile()
writeLines('not a gzip', notgzipfile)
is.gzip(notgzipfile)
con=gzfile(gzipfile<-tempfile(),open='wt')
writeLines('This one is gzipped', con)
close(con)
is.gzip(gzipfile)
unlink(c(notgzipfile,gzipfile))

nat.utils

File System Utility Functions for 'NeuroAnatomy Toolbox'

v0.5.1
GPL-3
Authors
Gregory Jefferis
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.