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 307, Fri Oct 21 11:37:19 2011 UTC revision 308, Fri Oct 21 12:08:39 2011 UTC
# Line 27  Line 27 
27  ### A function.  ### A function.
28   ) {   ) {
29        srcref <- attr(fun.obj, "srcref")        srcref <- attr(fun.obj, "srcref")
30        if (!is.null(srcref)) unlist(strsplit(as.character(srcref), "\n"))        if (!is.null(srcref)) {
31            ##unlist(strsplit(as.character(srcref), "\n"))
32            as.character(srcref)
33          }
34        else attr(fun.obj, "source")        else attr(fun.obj, "source")
35  ### Source code lines as a character vector.  ### Source code lines as a character vector.
36  }  }
# Line 256  Line 259 
259      }      }
260    while ( k <= length(src) ){    while ( k <= length(src) ){
261      line <- src[k]      line <- src[k]
262        ##print(line)
263        ##if(grepl("^$",line))browser()
264      if ( grepl(extra.regexp,line,perl=TRUE) ){      if ( grepl(extra.regexp,line,perl=TRUE) ){
265        ## we have a new extra chunk - first get field name and any payload        ## we have a new extra chunk - first get field name and any payload
266        new.field <- gsub(extra.regexp,"\\1",line,perl=TRUE)        new.field <- gsub(extra.regexp,"\\1",line,perl=TRUE)
267        new.contents <- gsub(extra.regexp,"\\2",line,perl=TRUE)        new.contents <- gsub(extra.regexp,"\\2",line,perl=TRUE)
268          ##cat(new.field,"\n-----\n",new.contents,"\n\n")
269        ##details<< As a special case, the construct \code{##describe<<} causes        ##details<< As a special case, the construct \code{##describe<<} causes
270        ## similar processing to the main function arguments to be        ## similar processing to the main function arguments to be
271        ## applied in order to construct a describe block within the        ## applied in order to construct a describe block within the
# Line 479  Line 484 
484  forall.parsers <-  forall.parsers <-
485    list(## Fill in author from DESCRIPTION and titles.    list(## Fill in author from DESCRIPTION and titles.
486         author.from.description=function(desc,...){         author.from.description=function(desc,...){
487           list(author=desc[,"Maintainer"])           list(author=desc[,"Author"])
488         },         },
489         ## The format section sometimes causes problems, so erase it.         ## The format section sometimes causes problems, so erase it.
490         erase.format=function(...){         erase.format=function(...){

Legend:
Removed from v.307  
changed lines
  Added in v.308

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