Rev 15523 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{checkTnF}\alias{checkTnF}\title{Check R code for T/F}\description{Checks the specified R code for occurrences of \code{T} or \code{F},and reports the expression containing these. This is useful as in R\code{T} and \code{F} are just variables which are set to the logicals\code{TRUE} and \code{FALSE} by default, but are not reserved wordsand hence can be overwritten by the user. Hence, one should alwaysuse \code{TRUE} and \code{FALSE} for the logicals.}\usage{checkTnF(file, package, dir, lib.loc = .lib.loc)}\arguments{\item{file}{the name of a file containing R code to be checked.}\item{package}{a character string naming an installed package. Ifgiven and \code{file} is not given, the installed R code of thepackage is checked. R code installed as an image file cannot bechecked.}\item{dir}{a character string specifying the path to a package's rootsource directory. This should contain the subdirectory \code{R}(for R code). Used if neither \code{file} not \code{package} aregiven.}\item{lib.loc}{a character vector describing the location of \Rlibrary trees to search for \code{package}.}}\section{Warning}{This function is still experimental. Both name and interface mightchange in future versions.}\keyword{utilities}\keyword{documentation}