Skip to content

Commit 1a6c979

Browse files
author
smeyer
committed
avoid spurious message about skipped .packageName
git-svn-id: https://svn.r-project.org/R/trunk@88246 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 86a25da commit 1a6c979

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/library/methods/R/trace.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ insertSource <- function(source, package = "",
748748
MPattern <- .TableMetaPattern()
749749
CPattern <- .ClassMetaPattern()
750750
allPlainObjects <- function()
751-
allObjects[!(grepl(MPattern, allObjects) | grepl(CPattern, allObjects) | ".cacheOnAssign" == allObjects)]
751+
allObjects[!(grepl(MPattern, allObjects) | grepl(CPattern, allObjects))]
752752
allMethodTables <- function()
753753
allObjects[grepl(MPattern, allObjects)]
754754
## allClassDefs <- function()
@@ -802,6 +802,7 @@ insertSource <- function(source, package = "",
802802
## at this point, envp is the target environment (package or other)
803803
## and envns is the corresponding namespace if any, or NULL
804804
allObjects <- names(env)
805+
allObjects <- allObjects[!(allObjects %in% c(".cacheOnAssign", ".packageName"))]
805806
## Figure out what to trace.
806807
if(!missing(functions)) {
807808
notThere <- is.na(match(functions, allObjects))

0 commit comments

Comments
 (0)