For windows you can do: Sys.getenv("NUMBER_OF_PROCESSORS")
On Mon, Aug 24, 2009 at 3:16 PM, Håvard Rue <havard....@math.ntnu.no> wrote: > Any way to get access to the number of CPU's, optionally their type, > from within R? In linux I can just read /proc/cpuinfo but for > win/mac ? > > Thanks! > Håvard > > -- > Håvard Rue > Department of Mathematical Sciences > Norwegian University of Science and Technology > N-7491 Trondheim, Norway > Voice: +47-7359-3533 URL : > http://www.math.ntnu.no/~hrue<http://www.math.ntnu.no/%7Ehrue> > Fax : +47-7359-3524 Email: havard....@math.ntnu.no > > This message was created in a Microsoft-free computing environment. > > ______________________________________________ > R-help@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. > -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O [[alternative HTML version deleted]]
______________________________________________ R-help@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.