Get the architecture of an object or coerce it into another
architecture(x, ...)as.architecture(
  x,
  ostype = .Platform$OS.type,
  arch = R.version$arch,
  ptrsize = .Machine$sizeof.pointer,
  endian = .Platform$endian,
  ...
)
architecture() returns a named list with
    character element ostype and arch,
    integer element ptrsize, and character element endian.
    These elements take a missing values if they could not be inferred.
as.architecture() returns a coerced version of x.
    If no coercion was needed, then x itself is returned.
The object to be coerced.
(optional) Additional arguments passed to the underlying method.
A character string, e.g. "unix" and "windows".
A character string, e.g. "i386", "i686" and "x86_64".
The target pointer size - either 4L or 8L.
The target endianess - either "little" or "big".