SCM

SCM Repository

[inlinedocs] View of /pkg/inlinedocs/inst/testfiles/paren-ex.R
ViewVC logotype

View of /pkg/inlinedocs/inst/testfiles/paren-ex.R

Parent Directory Parent Directory | Revision Log Revision Log


Revision 318 - (download) (annotate)
Fri Jan 13 20:49:00 2012 UTC (6 years, 8 months ago) by tdhock
File size: 501 byte(s)
make example executable
myFun <- structure(

function # My function
  ### Fun. description
(
  x ##<< an argument
)
{
  x * 2
},

ex=function()
{
  x <- 5
  myFun(x)
})

.result <- 
 list(myFun = list(definition = "myFun <- structure(\n\nfunction # My function\n  ### Fun. description\n(\n  x ##<< an argument\n)\n{\n  x * 2\n},\n\nex=function()\n{\n  x <- 5\n  myFun(x)\n})",  
     description = "Fun. description", `item{x}` = "an argument",  
     title = "My function", format = "", examples = "\nx <- 5\nmyFun(x)\n")) 

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