Skip to content

Commit

Permalink
Update for c84765.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@84773 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
hornik committed Jul 28, 2023
1 parent 588474a commit 142fc31
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions src/library/tools/R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -991,21 +991,16 @@ function(con, n = 4L)
.get_internal_S3_generics <-
function(primitive = TRUE) # primitive means 'include primitives'
{
out <-
## Get the names of R internal S3 generics (via DispatchOrEval(),
## cf. ?InternalMethods).
c("[", "[[", "$", "[<-", "[[<-", "$<-", "@", "@<-",
## The above are actually primitive but not listed in
## base::.S3PrimitiveGenerics et al: not sure why?
"as.vector", "cbind", "rbind", "unlist",
"is.unsorted", "lengths", "nchar", "rep.int", "rep_len",
.get_S3_primitive_generics()
## ^^^^^^^ now contains the members of the group generics from
## groupGeneric.Rd.
)
if(!primitive)
out <- out[!vapply(out, .is_primitive_in_base, NA)]
out
c(.internalGenerics,
if(primitive)
c("[", "[[", "$", "[<-", "[[<-", "$<-", "@", "@<-",
## The above are actually primitive but not listed in
## base::.S3PrimitiveGenerics et al: not sure why?
.get_S3_primitive_generics()
## ^^^^^^^ now contains the members of the group generics
## from groupGeneric.Rd.
)
)
}

### ** .get_namespace_package_depends
Expand Down

0 comments on commit 142fc31

Please sign in to comment.