[Roxygen-commits] r85 - pkg/tests/runit

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri Jul 25 06:38:59 CEST 2008


Author: pcd
Date: 2008-07-25 06:38:59 +0200 (Fri, 25 Jul 2008)
New Revision: 85

Modified:
   pkg/tests/runit/runit.Rd.R
Log:
parm, description, detail, split tests


Modified: pkg/tests/runit/runit.Rd.R
===================================================================
--- pkg/tests/runit/runit.Rd.R	2008-07-25 04:23:14 UTC (rev 84)
+++ pkg/tests/runit/runit.Rd.R	2008-07-25 04:38:59 UTC (rev 85)
@@ -49,3 +49,34 @@
                    a <- function(a=1) {}",
                   output=c("\\name{a}",
                     "\\usage{a(a=2)}"))
+
+test.params <- function()
+  check.Rd.output("#' @param a an incipit letter
+                   #' @param z a terminal letter
+                   a <- function(a=1, z=2) {}",
+                  output=c("\\name{a}",
+                    "\\usage{a(a=1, z=2)}",
+                    "\\arguments{\\item{a}{an incipit letter}",
+                    "\\item{z}{a terminal letter}}"))
+
+test.description <- function()
+  check.Rd.output("#' description
+                   roxygen()",
+                  output="\\description{description}")
+
+test.description.details <- function()
+  check.Rd.output("#' description
+                   #'
+                   #' details
+                   roxygen()",
+                  output=c("\\description{description}",
+                    "\\details{details}"))
+
+test.splitting.keys <- function()
+  check.Rd.output("#' @keywords a b
+                   #' @aliases a b
+                   roxygen()",
+                  output=c("\\keyword{a}",
+                    "\\keyword{b}",
+                    "\\alias{a}",
+                    "\\alias{b}"))



More information about the Roxygen-commits mailing list