loadZip             package:Rcompression             R Documentation

_R_e_a_d _t_h_e _c_o_n_t_e_n_t_s _o_f _a _f_i_l_e _a_s _b_i_n_a_r_y  _i_n_t_o _a _r_a_w _v_e_c_t_o_r.

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

     We use this function to read the contents of a zip file into
     memory. This is a general function and can be used to read
     arbitrary files, including any binary file. It determines the
     length of the file and reads that many bytes and so removes the
     need for the caller of  'readBin' to know how many bytes are in
     the file.

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

     loadZip(filename)

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

filename: the full path identifying the file

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

     A raw vector with length corresponding to the number of bytes in
     the file.

_A_u_t_h_o_r(_s):

     Duncan Temple Lang

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

     'readBin'

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

       data = loadZip(system.file("sampleData", "Empty.docx", package = "Rcompression"))
       ar = zipArchive(data)
       names(ar)

