architecture {R.devices} | R Documentation |
Get the architecture of an object or coerce it into another
Description
Get the architecture of an object or coerce it into another
Usage
architecture(x, ...)
as.architecture(
x,
ostype = .Platform$OS.type,
arch = R.version$arch,
ptrsize = .Machine$sizeof.pointer,
endian = .Platform$endian,
...
)
Arguments
x |
The object to be coerced. |
... |
(optional) Additional arguments passed to the underlying method. |
ostype |
A character string, e.g. |
arch |
A character string, e.g. |
ptrsize |
The target pointer size - either |
endian |
The target endianess - either |
Value
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.
[Package R.devices version 2.17.2 Index]