UnZip                 package:memisc                 R Documentation

_E_x_t_r_a_c_t _F_i_l_e_s _f_r_o_m _Z_i_p _F_i_l_e_s

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

     'Unzip' extracts a file from a zip archive and puts them into a
     directory specified by the user or into the temporary directory of
     the current session.

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

     UnZip(zipfile,item,
       dir=tempdir(),package=NULL)

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

 zipfile: a character string, the path to the zip file.

    item: a character string, full path (from the root of the zip file)
          to the file to extract.

     dir: path to the directory were to place the extracted file.

 package: optional package name, if given, the path to the zipfile
          starts in the packages' root directory.

_E_x_a_m_p_l_e_s:

     # Extract American National Election Study of 1948
     # It is item "NES1948.POR" in zip file "anes/NES1948.ZIP"
     # where this path is relative to the packages'
     # root directory.
     nes1948.por <- UnZip("anes/NES1948.ZIP","NES1948.POR",
                          package="memisc")
     nes1948.por

