开发者

What can R "know" about the computer it is run on?

开发者 https://www.devze.com 2023-02-27 18:20 出处:网络
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 compu

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)
0

精彩评论

暂无评论...
验证码 换一张
取 消