zip.file.extract            package:base            R Documentation

_E_x_t_r_a_c_t _F_i_l_e _f_r_o_m _a _Z_i_p _A_r_c_h_i_v_e

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

     This will extract the file named 'file' from the zip archive, if
     possible, and write it in a temporary location.

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

     zip.file.extract(file, zipname = "R.zip")

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

    file: A file name.

 zipname: The file name of a 'zip' archive, including the '".zip"'
          extension if required.

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

     The method used is selected by 'options(unzip=)'. All platforms
     support an '"internal"' unzip: this is the default under Windows
     and the fall-back under Unix if no 'unzip' program was found
     during configuration and 'R_UNZIPCMD' is not set.

     The file will be extracted if it is in the archive and any
     required 'unzip' utility is available.  It will probably be
     extracted to the directory given by 'tempdir', overwriting an
     existing file of that name.

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

     The name of the original or extracted file.  Success is indicated
     by returning a different name.

_N_o_t_e:

     The '"internal"' method is very simple, and will not set file
     dates.

