checkTnF                package:tools                R Documentation

_C_h_e_c_k _R _P_a_c_k_a_g_e_s _o_r _C_o_d_e _f_o_r _T/_F

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

     Checks the specified R package or code file for occurrences of `T'
     or `F', and gathers the expression containing these. This is
     useful as in R `T' and `F' are just variables which are set to the
     logicals `TRUE' and `FALSE' by default, but are not reserved words
     and hence can be overwritten by the user. Hence, one should always
     use `TRUE' and `FALSE' for the logicals.

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

     checkTnF(package, dir, file, lib.loc = NULL)

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

 package: a character string naming an installed package.  If given,
          the installed R code and the examples in the documentation
          files of the package are checked.  R code installed as an
          image file cannot be checked.

     dir: a character string specifying the path to a package's root
          source directory.  This must contain the subdirectory `R'
          (for R code), and should also contain `man' (for
          documentation). Only used if `package' is not given.  If
          used, the R code files and the examples in the documentation
          files are checked.

    file: the name of a file containing R code to be checked.  Used if
          neither `package' nor `dir' are given.

 lib.loc: a character vector of directory names of R libraries, or
          `NULL'.  The default value of `NULL' corresponds to all
          libraries currently known.  The specified library trees are
          used to to search for `package'.

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

     An object of class `"checkTnF"' which is a list containing, for
     each file where occurences of `T' or `F' were found, a list with
     the expressions containing these occurrences.  The names of the
     list are the corresponding file names.

     There is a `print' method for nicely displaying the information
     contained in such objects.

_W_a_r_n_i_n_g:

     This function is still experimental.  Both name and interface
     might change in future versions.

