You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#' These predicates check for a given type but only return `TRUE` for#' bare R objects. Bare objects have no class attributes. For example,#' a data frame is a list, but not a bare list.
Aside from what appears to be a minor typo ("attributes"), this appears to be technically accurate, but likely surprising to many in the case of matrices and arrays:
It would be helpful to mention this case in the documentation. It may also help to explicitly mention that other attributes may still be present. E.g., maybe something like:
#' These predicates check for a given type but only return `TRUE` for#' bare R objects. Bare objects have no class attribute. For example,#' a data frame is a list, but not a bare list. Bare objects include matrices#' and arrays unless they have been assigned a non-`"matrix"`, non-`"array"`#' class. They can also have non-class attributes such as names.
though it's a bit wordy. Or maybe something like
#' Bare objects include many matrices and arrays; see [`class`]."
The text was updated successfully, but these errors were encountered:
The current documentation for the bare type predicates includes:
Aside from what appears to be a minor typo ("attributes"), this appears to be technically accurate, but likely surprising to many in the case of matrices and arrays:
Created on 2025-02-04 with reprex v2.1.1
It would be helpful to mention this case in the documentation. It may also help to explicitly mention that other attributes may still be present. E.g., maybe something like:
though it's a bit wordy. Or maybe something like
#' Bare objects include many matrices and arrays; see [`class`]."
The text was updated successfully, but these errors were encountered: