Some possibilities include:

Sys.info()["machine"] == "x86-64"
.Platform$r_arch == "x64"
version$arch == "x86_64"

Is there any reason to prefer one method over another?

Related: detecting operating system in R (e.g. for adaptive .Rprofile files)

Edit
Report