I am wondering what can R know about the hardware/system it runs on.
For example, I know that using "sessionInfo()" will uncover a few things. But is it also possible to check what CPU/mem the computer has? Is it possible to have some unique identifier to the computer used?
The motivation is for 开发者_开发问答using R when sending a batch command to the cloud, and wondering how to access the configurations of the computers running the code.
Thanks.
Quite a lot, see the following help pages.
?.Machine
?.Platform
?Sys.info
?R.version
?memory.limit
For the available RAM, use memory.limit
, though this will be artificially smaller than the physical RAM for 32-bit R on a 64-bit system (for example, I'm not clear on details here so please treat this with caution):
memory.limit(size = NA)
精彩评论