Permalink
Browse files

A couple of fixes for R CMD check

  • Loading branch information...
1 parent 5306cb5 commit 7d25ca4d5e898fa0d4124a8e2469441a5590fc34 @hadley committed Aug 20, 2012
Showing with 10 additions and 6 deletions.
  1. +3 −1 R/create.r
  2. +1 −1 R/help.r
  3. +3 −1 man/create.Rd
  4. +3 −3 man/dev_help.Rd
View
@@ -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)
@@ -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))
View
@@ -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
View
@@ -18,6 +18,7 @@
inspecting the global environment.
}
\examples{
+\donttest{
# Create a package using all defaults:
path <- file.path(tempdir(), "myDefaultPackage")
create(path)
@@ -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}}
View
@@ -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

0 comments on commit 7d25ca4

Please sign in to comment.