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_v_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 zip 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
          extracting.  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'

