Skip to content

Commit

Permalink
A couple of fixes for R CMD check
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Aug 20, 2012
1 parent 5306cb5 commit 7d25ca4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 3 additions & 1 deletion R/create.r
Expand Up @@ -11,6 +11,7 @@
#' @seealso Text with \code{\link{package.skeleton}}
#' @export
#' @examples
#' \donttest{
#' # Create a package using all defaults:
#' path <- file.path(tempdir(), "myDefaultPackage")
#' create(path)
Expand All @@ -19,7 +20,8 @@
#' path <- file.path(tempdir(), "myCustomPackage")
#' my_description <- list("Maintainer" =
#' "'Yoni Ben-Meshulam' <yoni@@opower.com>")
#' create("../myCustomPackage", my_description)
#' create(path, my_description)
#' }
create <- function(path, description = list()) {
name <- basename(path)
message("Creating package ", name, " in ", dirname(path))
Expand Down
2 changes: 1 addition & 1 deletion R/help.r
Expand Up @@ -4,7 +4,7 @@
#' to other files within the package won't work.
#'
#' @param topic name of help to search for.
#' @param stage at which stage ("build"’, ‘"install", or "render") should
#' @param stage at which stage ("build", "install", or "render") should
#' \\Sexpr macros be executed? This is only important if you're using
#' \\Sexpr macro's in your Rd files.
#' @param type of html to produce: \code{"html"} or \code{"text"}. Defaults to
Expand Down
4 changes: 3 additions & 1 deletion man/create.Rd
Expand Up @@ -18,6 +18,7 @@
inspecting the global environment.
}
\examples{
\donttest{
# Create a package using all defaults:
path <- file.path(tempdir(), "myDefaultPackage")
create(path)
Expand All @@ -26,7 +27,8 @@ create(path)
path <- file.path(tempdir(), "myCustomPackage")
my_description <- list("Maintainer" =
"'Yoni Ben-Meshulam' <yoni@opower.com>")
create("../myCustomPackage", my_description)
create(path, my_description)
}
}
\seealso{
Text with \code{\link{package.skeleton}}
Expand Down
6 changes: 3 additions & 3 deletions man/dev_help.Rd
Expand Up @@ -8,9 +8,9 @@
\arguments{
\item{topic}{name of help to search for.}

\item{stage}{at which stage ("build"’, ‘"install", or
"render") should \\Sexpr macros be executed? This is
only important if you're using \\Sexpr macro's in your Rd
\item{stage}{at which stage ("build", "install", or
"render") should \\Sexpr macros be executed? This is only
important if you're using \\Sexpr macro's in your Rd
files.}

\item{type}{of html to produce: \code{"html"} or
Expand Down

0 comments on commit 7d25ca4

Please sign in to comment.