SCM

SCM Repository

[inlinedocs] Diff of /pkg/inlinedocs/R/parsers.R
ViewVC logotype

Diff of /pkg/inlinedocs/R/parsers.R

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

revision 96, Mon May 3 15:57:03 2010 UTC revision 97, Mon May 3 16:07:46 2010 UTC
# Line 68  Line 68 
68           REP <- paste("\\1",SEP,"\\2",sep="")           REP <- paste("\\1",SEP,"\\2",sep="")
69           r <- strsplit(gsub(FIND,REP,after,perl=TRUE),split=SEP)[[1]]           r <- strsplit(gsub(FIND,REP,after,perl=TRUE),split=SEP)[[1]]
70           l <- strsplit(r,split="\n")           l <- strsplit(r,split="\n")
71           excode <- paste(l[[2]],"\n")           ##if(name=="dl.combine")browser()
72             excode <- c(l[[2]],"")
73           prefixes <- gsub("(\\s*).*","\\1",excode,perl=TRUE)[grep("\\w",excode)]           prefixes <- gsub("(\\s*).*","\\1",excode,perl=TRUE)[grep("\\w",excode)]
74           FIND <- prefixes[which.min(nchar(prefixes))]           FIND <- prefixes[which.min(nchar(prefixes))]
75           list(examples=paste(sub(FIND,"",excode),collapse=""),           list(examples=paste(sub(FIND,"",excode),collapse="\n"),
76                value=decomment(l[[1]]))                value=decomment(l[[1]][-1]))
77         }))         }))
78    
79  ### List of parser functions that operate on single objects. This list  ### List of parser functions that operate on single objects. This list

Legend:
Removed from v.96  
changed lines
  Added in v.97

root@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