My version output is:
> version _ platform x86_64-w64-mingw32 arch x86_64 os mingw32 system x86_64, mingw32 status major 2 minor 15.2 year 2012 month 10 day 26 svn rev 61015 language R version.string R version 2.15.2 (2012-10-26) nickname Trick or Treat
where os is mingw32. Does that mean I'm using only 32 bits? How can I change that?
If you do not know whether you have a 32- or 64-bit system: Type “system information” in the “Search Windows” box on the lower left part of the screen/ “Start” menu area. Select the “system information” app. If you have see “x64” under “System type” in the list, you have a 64-bit system.
RStudio requires a 64-bit operating system. If you are on a 32 bit system, you can use an older version of RStudio.
If your computer has a 64-bit operating system then both the 32-bit and 64-bit versions of R will be installed and two shortcuts, R i386 3.5. 1 and Rx64 3.5. 1, can be moved to your Desktop. It is good to have both versions of R because sometimes the 32-bit version is faster to run, but it is limited to 3Gb of RAM.
Simply put, a 64-bit processor is more capable than a 32-bit processor because it can handle more data at once. A 64-bit processor can store more computational values, including memory addresses, which means it can access over 4 billion times the physical memory of a 32-bit processor. That's just as big as it sounds.
Here are a few ways:
Sys.getenv("R_ARCH")
returns either "/i386"
or "/x64"
at least on my Windows system (but not on my Ubuntu system where it returns an empty string)
Sys.info()[["machine"]]
returns "x86_32"
or "x86_64"
on my Windows and Ubuntu systems.
Updated: With additional method.
Rather than needing to remember the designations of various OS's, the canonical cross-platform method is to look at:
> .Machine$sizeof.pointer [1] 8 # 8 bytes for address is 64 bits.
This is the address space for R objects. (It's not the address space for the OS.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With