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 376, Mon Jan 28 01:08:01 2013 UTC revision 389, Tue Sep 3 04:33:09 2013 UTC
# Line 508  Line 508 
508        ## Look for a generic function (known by the system or defined        ## Look for a generic function (known by the system or defined
509        ## in the package) that matches that part of the function name        ## in the package) that matches that part of the function name
510        generic <- paste(parts[1:i], collapse = ".")        generic <- paste(parts[1:i], collapse = ".")
511        if (any(generic %in% utils:::getKnownS3generics()) ||        if (any(generic %in% getKnownS3generics()) ||
512            utils:::findGeneric(generic, env) != "") {            findGeneric(generic, env) != "") {
513          object <- paste(parts[(i + 1):l], collapse = ".")          object <- paste(parts[(i + 1):l], collapse = ".")
514          ##details<< Assumes that the first name which matches any known          ##details<< Assumes that the first name which matches any known
515          ## generics is the target generic function, so if both x and x.y          ## generics is the target generic function, so if both x and x.y
# Line 823  Line 823 
823                                  parent=parent,                                  parent=parent,
824                                  code=paste(chunks[[k]],sep=""),                                  code=paste(chunks[[k]],sep=""),
825                                  description=default.description)                                  description=default.description)
826      } else if ( expr.type == "setMethodS3" ){      } else if ( expr.type == "setMethodS3" || expr.type ==  "R.methodsS3::setMethodS3"){
827        ##details<< The \code{setMethodS3} calls introduce additional        ##details<< The \code{setMethodS3} calls introduce additional
828        ## complexity: they will define an additional S3 generic (which        ## complexity: they will define an additional S3 generic (which
829        ## needs documentation to avoid warnings at package build time)        ## needs documentation to avoid warnings at package build time)

Legend:
Removed from v.376  
changed lines
  Added in v.389

root@r-forge.r-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business Powered By FusionForge