Skip to content

dim(a <- ...) sets invisible flag erronously (PR#587)

1 message · Martin Maechler

#
{Nothing really harmful;  R 1.1.0}

dim(.) sets (or doesn't clear) the  ``invisible flag'' for printing in
certain circumstances:

  > dim(a <- cbind(1))
  >

does *not* print as it should :

  > dim(a)
  [1] 1 1

---

Question to the real "hackers" :

How can I check this using R code alone (not using files),
i.e. (how) can I ask an R expression if its ``invisible flag'' is set or not ?

{help(invisible) doesn't help here}.

Maybe one would want an

      is.invisible(.)

function?