is.gzip | R Documentation |
Check if a file is a gzip file
is.gzip(f)
f |
Path to file to test |
logical indicating whether f
is in gzip format (or NA
if the file cannot be accessed)
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.