[R] use R to read/print the system hardware configuration

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Jul 30 17:39:38 CEST 2012


On 30/07/2012 16:08, Jie wrote:
> Dear All,
>
> I am curious if there is any why to use R to know the specification of the
> machine that runs on,
> i.e. read the cpu model, memory size, those hardware info, maybe even with
> thesoftware information.
> Thank you for your attention.

There are ways ... however, there are no remotely portable ways and you 
have not even told us your OS (as asked for in the posting guide).

This sort of thing depends not just on the OS but the precise version of 
the OS.  Look at paralllel::detectCores() for how hard one has to work 
to get the number of processors.


> Best wishes,
> Jie
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list