Skip to content

Commit 691f40e

Browse files
author
luke
committed
Have inspect show the GROWABLE flag if it is set.
git-svn-id: https://svn.r-project.org/R/trunk@89033 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent acd196b commit 691f40e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/inspect.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,10 @@ static void inspect_tree(int pre, SEXP v, int deep, int pvec) {
135135
switch (TYPEOF(v)) {
136136
case VECSXP: case STRSXP: case LGLSXP: case INTSXP: case RAWSXP:
137137
case REALSXP: case CPLXSXP: case EXPRSXP:
138-
Rprintf("(len=%lld, tl=%lld)", (long long)XLENGTH(v), (long long)XTRUELENGTH(v));
138+
if (GROWABLE_BIT_SET(v))
139+
Rprintf("(len=%lld, tl=%lld, gr)", (long long)XLENGTH(v), (long long)XTRUELENGTH(v));
140+
else
141+
Rprintf("(len=%lld, tl=%lld)", (long long)XLENGTH(v), (long long)XTRUELENGTH(v));
139142
}
140143
if (TYPEOF(v) == ENVSXP) /* NOTE: this is not a trivial OP since it involves looking up things
141144
in the environment, so for a low-level debugging we may want to

0 commit comments

Comments
 (0)