checkVers             package:reposTools             R Documentation

_A _f_u_n_c_t_i_o_n _t_o _c_o_m_p_a_r_e _v_e_r_s_i_o_n_s _w/ _o_p_e_r_a_t_i_o_n _s_t_r_i_n_g

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

     Handles comparisons of VersionNumber objects when the operator is
     in string form (e.g. ">=", "==", etc).

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

     checkVers(x, op, y)

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

       x: The left side object

      op: The operator to use for comparison, in string format

       y: The right object to compare

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

     Will handle the situation 'x op y' for any op that is a valid
     comparitor in the VersionNumber class.  The string 'op' is
     converted into the proper comparitor and then applied to the
     values x and y.

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

     TRUE or FALSE as appropriate

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

     Jeff Gentry

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

        a <- buildVersionNumber("1.2.3")
        b <- buildVersionNumber("2.0")
        checkVers(a,"<=",b)    ## will see if a <= b
        checkVers(a,"==",b)
        checkVers(a,">",b)

