https://github.com/cran/XML
Raw File
Tip revision: dcf8ba16b3b0cb0e5edcdc3eb143a42a6b6c2b32 authored by Duncan Temple Lang on 11 September 2006, 00:00:00 UTC
version 0.99-92
Tip revision: dcf8ba1
writeExamples.S
foo <- 
function(x= 10, b="asd") { 
 if(x) 
  1 
 else if(T) 
        2 
      else 4
}

bar <- 
function(x)
{
 for(i in 1:length(x)) {
    print(x[[i]])
 }

 return(T)
}

single <-
function(x)
  T


While <-
function()
{
 while(f(x)) {
   print(f(x))
   break
 }

 repeat {
   x <- x + 1
   break
 }
}

Logic <-
function()
{
  if(x < 1 && y > 10) {
     x | y & z
  }
}
back to top