Rev 54887 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/utils/man/PkgUtils.Rd% Part of the R package, http://www.R-project.org% Copyright 1995-2011 R Core Development Team% Distributed under GPL 2 or later\name{PkgUtils}\alias{build}\alias{check}\title{Utilities for Building and Checking Add-on Packages}\description{Utilities for checking whether the sources of an \R add-on packagework correctly, and for building a source package from them.}\usage{\special{R CMD check [options] pkgdirs}\special{R CMD build [options] pkgdirs}}\arguments{\item{pkgdirs}{a list of names of directories with sources of \Radd-on packages. For \code{check} these can also be the filenames ofcompressed \command{tar} archives with extension \file{.tar.gz},\file{.tgz}, \file{.tar.bz2} or \file{.tar.xz} (where supported by\command{tar}).}\item{options}{further options to control the processing, or forobtaining information about usage and version of the utility.}}\details{\command{R CMD check}checks \R add-on packages from their sources, performing a widevariety of diagnostic checks.\command{R CMD build} builds \R source tarballs. The name(s) of thepackages are taken from the \file{DESCRIPTION} files and not from thedirectory names. As from \R 2.13.0 this works entirely on a copy ofthe supplied source directories.Use \command{R CMD \var{foo} --help} to obtain usage information onutility \code{\var{foo}}.The defaults for some of the options to \command{R CMD build} can beset by environment variables \env{_R_BUILD_RESAVE_DATA_} and\env{_R_BUILD_COMPACT_VIGNETTES_}: see \sQuote{Writing \R Extensions}.Many of the checks in \command{R CMD check} can be turned off or on byenvironment variables: see Chapter 6 of the \sQuote{R Internals} manual.}#ifdef windows\note{They make use of a temporary directory specified by the environmentvariable \code{TMPDIR} and defaulting to \samp{c:/TEMP}. Do ensurethat if set forward slashes are used.}#endif\seealso{The sections on \dQuote{Checking and building packages} and\dQuote{Processing Rd format} in \dQuote{Writing \R Extensions}#ifdef unix(see the \file{doc/manual} subdirectory of the \R source tree).#endif#ifdef windows(see the Manuals sub-menu of the Help menu on the console).#endif}\keyword{utilities}