SCM

SCM Repository

[inlinedocs] View of /pkg/inlinedocs/inst/testfiles/returnlist.R
ViewVC logotype

View of /pkg/inlinedocs/inst/testfiles/returnlist.R

Parent Directory Parent Directory | Revision Log Revision Log


Revision 154 - (download) (annotate)
Fri Oct 29 12:11:52 2010 UTC (6 years, 4 months ago) by tdhock
File size: 721 byte(s)
parsefun and extract.docs.fun consolidated into extract.xxx.chunks in ongoing effort to make parser functions more readable and modular
f <- function # title
### description
(x, ##<< arg x
 y
### arg y
 ){
  ##value<< a list with elements
  list(x=x, ##<< original x value
       y=y, ##<< original y value
       sum=x+y) ##<< their sum
  ##end<<
}

.result <- 
 list(f = list(definition = "f <- function # title\n### description\n(x, ##<< arg x\n y\n### arg y\n ){\n  ##value<< a list with elements\n  list(x=x, ##<< original x value\n       y=y, ##<< original y value\n       sum=x+y) ##<< their sum\n  ##end<<\n}",  
     description = "description", `item{y}` = "arg y", `item{x}` = "arg x",  
     value = "a list with elements\n\\item{x}{original x value}\n\\item{y}{original y value}\n\\item{sum}{their sum}",  
     title = "title", format = "")) 

R-Forge@R-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business University of Wisconsin - Madison Powered By FusionForge