parseURI                 package:XML                 R Documentation

_P_a_r_s_e _a _U_R_I _s_t_r_i_n_g _i_n_t_o _i_t_s _e_l_e_m_e_n_t_s

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

     This breaks a URI given as a string into its different elements
     such as protocol/scheme, host, port, file name, query. This
     information can be used, for example, when constructing URIs
     relative to a base URI.

     The return value is an S3-style object of class 'URI'.

     This function uses libxml routines to perform the parsing.

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

     parseURI(uri)

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

     uri: a single string

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

     A list with 8 elements 

  scheme: the name of the protocol being used, http, ftp as a string.

authority: a string represeting a rarely used aspect of URIs

  server: a string identifying the host, e.g. www.omegahat.org

    user: a string giving the name of the user, e.g. in FTP
          "ftp://duncan@www.omegahat.org", this would yield "duncan"

    path: a string identifying the path of the target file

   query: the CGI query part of the string, e.g. the bit after '?' of
          the form 'name=value&name=value'

fragment: a string giving the coo

    port: an integer identifying the port number on which the
          connection is to be made

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

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

       parseURI("http://www.omegahat.org:8080/RCurl/index.html")
       parseURI("ftp://duncan@www.omegahat.org:8080/RCurl/index.html") 

