unzip                 package:utils                 R Documentation

_E_x_t_r_a_c_t _o_r _L_i_s_t _Z_i_p _a_r_c_h_i_n_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     Extract files from or list a zip archive.

_U_s_a_g_e:

     unzip(zipfile, files = NULL, list = FALSE, overwrite = TRUE,
            junkpaths = FALSE, exdir = ".")

_A_r_g_u_m_e_n_t_s:

 zipfile: The pathname of the xip file: tilde expansion (see
          'path.expand' will be performed.

   files: A character vector of recorded filepaths to be extracted: the
          default is to extract all files.

    list: If 'TRUE', list the files and extract none.  The equivalent
          of 'unzip -l'.

overwrite: If 'TRUE', overwrite existing files, otherwise ignore such
          files.  The equivalent of 'unzip -o'.

junkpaths: If 'TRUE', use only the basename of the stored filepath when
          extraxting.  The equivalent of 'unzip -j'.

   exdir: The directory to extract files to (the equivalent of 'unzip
          -d').  It will be created if necessary.

_D_e_t_a_i_l_s:

     Extraction will overwrite any existing files.

_V_a_l_u_e:

     If 'list = TRUE', a data frame with columns 'Name', 'Length' (the
     size of the uncompressed file) and 'Date' (of class '"POSIXct"').

     Otherwise, a character vector of the filepaths extracted to,
     invisibly.

_S_o_u_r_c_e:

     The C code uses 'zlib' and is in particular based on the
     contributed 'minizip' application in the 'zlib' sources by Gilles
     Vollant.

_S_e_e _A_l_s_o:

     'zip.file.extract'

