SCM

SCM Repository

[inlinedocs] Diff of /pkg/inlinedocs/inst/testfiles/description-before.R
ViewVC logotype

Diff of /pkg/inlinedocs/inst/testfiles/description-before.R

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 258, Sun May 1 19:12:41 2011 UTC revision 259, Sun May 1 19:15:09 2011 UTC
# Line 12  Line 12 
12                cbind(m,sapply(norms,function(norm)apply(m,1,norm)))                cbind(m,sapply(norms,function(norm)apply(m,1,norm)))
13              })              })
14  .result <-  .result <-
15   list(norms = list(definition = "norms <- list(l0=function(x)sum(x!=0),\n              l1=function(x)sum(abs(x)),\n              l2=function(x)sqrt(sum(x^2)),\n              linfty=function(x)max(abs(x)))",   list(norms = list(definition = "norms <-\n  structure(list(l0=function(x)sum(x!=0),\n                 l1=function(x)sum(abs(x)),\n                 l2=function(x)sqrt(sum(x^2)),\n                 linfty=function(x)max(abs(x))),\n            ex=function(){\n              m <- replicate(2,rnorm(10))\n              cbind(m,sapply(norms,function(norm)apply(m,1,norm)))\n            })",
16       description = "A multi-line comment before a data item goes into the description\nsection of its Rd file. The items of this list are all norms,\nwhich are functions that take a vector of N elements and return a\nnon-negative real number.",       description = "A multi-line comment before a data item goes into the description\nsection of its Rd file. The items of this list are all norms,\nwhich are functions that take a vector of N elements and return a\nnon-negative real number.",
17       format = "", title = "norms",       format = "", title = "norms", examples = "\nm <- replicate(2,rnorm(10))\ncbind(m,sapply(norms,function(norm)apply(m,1,norm)))\n"))
      examples="\nm <- replicate(2,rnorm(10))\ncbind(m,sapply(norms,function(norm)apply(m,1,norm)))\n"))  
   

Legend:
Removed from v.258  
changed lines
  Added in v.259

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