machine {base} | R Documentation |
This function returns a character string which specifies what kind of environment R is being run in.
machine()
.Platform
which provides more than machine()
;
Machine
for the computer's characteristics in arithmetics;
machine()# to see yours
tolower(machine()) == .Platform $ OS ## --> often TRUE
if (machine() == "Macintosh")
cat("You are using a Macintosh computer\n")