The R Project SVN R

Rev

Rev 73925 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 73925 Rev 74507
Line 40... Line 40...
40
    returned instead of an object of class \code{"packageDescription"}.}
40
    returned instead of an object of class \code{"packageDescription"}.}
41
  \item{encoding}{If there is an \code{Encoding} field, to what encoding
41
  \item{encoding}{If there is an \code{Encoding} field, to what encoding
42
    should re-encoding be attempted?  If \code{NA}, no re-encoding.  The
42
    should re-encoding be attempted?  If \code{NA}, no re-encoding.  The
43
    other values are as used by \code{\link{iconv}}, so the default
43
    other values are as used by \code{\link{iconv}}, so the default
44
    \code{""} indicates the encoding of the current locale.}
44
    \code{""} indicates the encoding of the current locale.}
45
  \item{date.fields}{character vector field tags to be tried.  The
45
  \item{date.fields}{character vector of field tags to be tried.  The
46
    first for which \code{\link{as.Date}(.)} is not \code{\link{NA}}
46
    first for which \code{\link{as.Date}(.)} is not \code{\link{NA}}
47
    will be returned.}
47
    will be returned. (Partly experimental, see \emph{Note}.)}
48
  \item{tryFormats}{date formats to try, see \code{\link{as.Date.character}()}.}
48
  \item{tryFormats}{date formats to try, see \code{\link{as.Date.character}()}.}
49
  \item{desc}{optionally, a named \code{\link{list}} with components
49
  \item{desc}{optionally, a named \code{\link{list}} with components
50
    named from \code{date.fields};  where the default is fine, a
50
    named from \code{date.fields};  where the default is fine, a
51
    complete \code{packageDescription()} maybe specified as well.}
51
    complete \code{packageDescription()} maybe specified as well.}
52
  \item{built}{for \code{asDateBuilt()}, a \code{\link{character}}
52
  \item{built}{for \code{asDateBuilt()}, a \code{\link{character}}
Line 65... Line 65...
65
  like \code{if (packageVersion("MASS") < "7.3") { do.things } }.
65
  like \code{if (packageVersion("MASS") < "7.3") { do.things } }.
66
 
66
 
67
  For \code{packageDate()}, if \code{desc} is valid, both \code{pkg} and
67
  For \code{packageDate()}, if \code{desc} is valid, both \code{pkg} and
68
  \code{lib.loc} are not made use of.
68
  \code{lib.loc} are not made use of.
69
}
69
}
-
 
70
\note{The default behavior of \code{packageDate()}, notably for
-
 
71
  \code{date.fields}, is somewhat experimental and may change.  Using
-
 
72
  \code{date.fields = <string>}
-
 
73
  single
-
 
74
}
70
\value{
75
\value{
71
  If a \file{DESCRIPTION} file for the given package is found and can
76
  If a \file{DESCRIPTION} file for the given package is found and can
72
  successfully be read, \code{packageDescription} returns an object of
77
  successfully be read, \code{packageDescription} returns an object of
73
  class \code{"packageDescription"}, which is a named list with the
78
  class \code{"packageDescription"}, which is a named list with the
74
  values of the (given) fields as elements and the tags as names, unless
79
  values of the (given) fields as elements and the tags as names, unless