[Roxygen-commits] r79 - in pkg: sandbox tests/runit
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Thu Jul 24 00:24:19 CEST 2008
Author: pcd
Date: 2008-07-24 00:24:19 +0200 (Thu, 24 Jul 2008)
New Revision: 79
Modified:
pkg/sandbox/collate.R
pkg/tests/runit/Rd.R
pkg/tests/runit/runit.all.R
Log:
Rd test up to date
Modified: pkg/sandbox/collate.R
===================================================================
--- pkg/sandbox/collate.R 2008-07-23 22:24:07 UTC (rev 78)
+++ pkg/sandbox/collate.R 2008-07-23 22:24:19 UTC (rev 79)
@@ -15,7 +15,7 @@
'collate/undershorts.R',
'collate/watch.R')
-argv <- commandArgs(trailingOnly=T)
+argv <- commandArgs(trailingOnly=TRUE)
argc <- length(argv)
files <- if (argc > 0) as.list(argv) else FILES
Modified: pkg/tests/runit/Rd.R
===================================================================
--- pkg/tests/runit/Rd.R 2008-07-23 22:24:07 UTC (rev 78)
+++ pkg/tests/runit/Rd.R 2008-07-23 22:24:19 UTC (rev 79)
@@ -1,9 +1,7 @@
#' description
#'
#' details
-#' @name test
#' @title test
-#' @usage test
#' @return test
#' @references test
#' @note test
@@ -16,4 +14,4 @@
#' @param p1 first param
#' @param p2 second param
#' @param p3 third param
-roxygen()
+test <- function(a=1, b='test') {}
Modified: pkg/tests/runit/runit.all.R
===================================================================
--- pkg/tests/runit/runit.all.R 2008-07-23 22:24:07 UTC (rev 78)
+++ pkg/tests/runit/runit.all.R 2008-07-23 22:24:19 UTC (rev 79)
@@ -15,24 +15,24 @@
test.Rd <- function() {
roclet <- make.Rd.roclet()
checkEquals(capture.output(roclet$parse('runit/Rd.R')),
- c('\\description{description}',
- '\\details{details}',
- '\\name{test}',
- '\\title{test}',
- '\\usage{test}',
- '\\value{test}',
- '\\references{test}',
- '\\note{test}',
- '\\author{test at example.com}',
- '\\seealso{test}',
- '\\examples{test}',
- '\\concept{test}',
- '\\keyword{test1}',
- '\\keyword{test2}',
- '\\alias{test1}',
- '\\alias{test2}',
- '\\arguments{\\item{p1}{first param}',
- '\\item{p2}{second param}',
+ c('\\name{test}',
+ '\\usage{test(a=1, b=test)}',
+ '\\description{description}',
+ '\\details{details}',
+ '\\title{test}',
+ '\\value{test}',
+ '\\references{test}',
+ '\\note{test}',
+ '\\author{test at example.com}',
+ '\\seealso{test}',
+ '\\examples{test}',
+ '\\concept{test}',
+ '\\keyword{test1}',
+ '\\keyword{test2}',
+ '\\alias{test1}',
+ '\\alias{test2}',
+ '\\arguments{\\item{p1}{first param}',
+ '\\item{p2}{second param}',
'\\item{p3}{third param}}'))
}
More information about the Roxygen-commits
mailing list