checkRVersion             package:gtools             R Documentation

_C_h_e_c_k _i_f _a _n_e_w_e_r _v_e_r_s_i_o_n _o_f _R _i_s _a_v_a_i_l_a_b_l_e

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

     Check if a newer version of R is available

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

     checkRVersion(quiet = FALSE)

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

   quiet: Logical indicating whether printed output should be
          supressed.

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

     This function accesses the R web site to discover the latest
     released version of R.  It then compares this version to the
     running version. If the running version is the same as the latest
     version, it prints the message, "The latest version of R is
     installed:" followed by the version number, and returns NULL.  If
     the running version is older than the current version, it displays
     the message, "A newer version of R is now available:" followed by
     the corresponding version number, and returns the version number.

     If 'quiet=TRUE', no printing is performed.

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

     Either the version number of the latest version of R, if the
     running version is less than the latest version, or NULL.

_N_o_t_e:

     This function utilizes the internet to access the R project web
     site.  If internet access is unavailable, the function will fail.

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

     Gregory R. Warnes gregory.warnes@rochester.edu>

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

     'R.Version'

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

     checkRVersion()

     ver <- checkRVersion()
     print(ver)

