isCurrent package:Biobase R Documentation _U_s_e _v_e_r_s_i_o_n _i_n_f_o_r_m_a_t_i_o_n _t_o _t_e_s_t _w_h_e_t_h_e_r _c_l_a_s_s _i_s _c_u_r_r_e_n_t _D_e_s_c_r_i_p_t_i_o_n: This generic function uses 'Versioned-class' information to ask whether an instance of a class (e.g., read from disk) has current version information. By default, 'isCurrent' has the following behaviors: '_i_s_C_u_r_r_e_n_t(_V_e_r_s_i_o_n_e_d-_i_n_s_t_a_n_c_e)' Returns a vector of logicals, indicating whether each version matches the current version from the class prototype. '_i_s_C_u_r_r_e_n_t(_A_N_Y)' Return 'NA', indicating that the version cannot be determined '_i_s_C_u_r_r_e_n_t(_V_e_r_s_i_o_n_e_d-_i_n_s_t_a_n_c_e, "_c_l_a_s_s")' Returns a logical vector indicating whether version identifiers shared between 'Versioned-instance' and '"class"' are current. _U_s_a_g_e: isCurrent(object, value) _A_r_g_u_m_e_n_t_s: object: Object whose version is to be determined, as described above. value: (Optional) character string identifying a class with which to compare versions. _V_a_l_u_e: 'isCurrent' returns a logical vector. _A_u_t_h_o_r(_s): Biocore team _S_e_e _A_l_s_o: 'Versions-class' _E_x_a_m_p_l_e_s: obj <- new("VersionedBiobase") isCurrent(obj) isCurrent(1:10) # NA setClass("A", contains="VersionedBiobase", prototype=prototype(new("VersionedBiobase", versions=c(A="1.0.0")))) a <- new("A") classVersion(a) isCurrent(a, "VersionedBiobase") # is the 'VersionedBiobase' portion current? classVersion(a)["A"] <- "1.0.1" classVersion(a) isCurrent(a, "VersionedBiobase") isCurrent(a) # more recent, so does not match 'current' defined by prototype removeClass("A")