Re: [Rd] slightly speeding up readChar()

2011-08-04 Thread Dirk Eddelbuettel
On 5 August 2011 at 00:15, Michael Lachmann wrote: | > I'm not sure it's really worth bothering with such optimizations, on my machine I get | | No it isn't worth it, you're right. Though 100MB is much smaller than my average file size. But you're right, readChar is quite efficient. When you k

Re: [Rd] slightly speeding up readChar()

2011-08-04 Thread Michael Lachmann
On 4 Aug 2011, at 11:50PM, Simon Urbanek wrote: > > On Aug 4, 2011, at 5:26 PM, Michael Lachmann wrote: > >> Hi, >> >> I was trying to have R read files faster with readChar(). That was before I >> noticed that readChar() is not that bad! In any case, below I suggest a few >> simple changes

Re: [Rd] slightly speeding up readChar()

2011-08-04 Thread Simon Urbanek
On Aug 4, 2011, at 5:26 PM, Michael Lachmann wrote: > Hi, > > I was trying to have R read files faster with readChar(). That was before I > noticed that readChar() is not that bad! In any case, below I suggest a few > simple changes that will make readChar slightly faster. > > I followed read

[Rd] slightly speeding up readChar()

2011-08-04 Thread Michael Lachmann
Hi, I was trying to have R read files faster with readChar(). That was before I noticed that readChar() is not that bad! In any case, below I suggest a few simple changes that will make readChar slightly faster. I followed readChar(useBytes=T), and tried to identify all O(N) operations, where

Re: [Rd] How to seed the R random number generator in C (standalone) with an instance of .Random.seed

2011-08-04 Thread Duncan Murdoch
On 04/08/2011 2:33 PM, oliver ratmann wrote: hello all, I use the R standalone math library in my own C program, and the default R random number generator can be seeded with set_seed(const unsigned int, const unsigned int). How could I seed the RNG with an instance of .Random.seed ? I would

[Rd] How to seed the R random number generator in C (standalone) with an instance of .Random.seed

2011-08-04 Thread oliver ratmann
hello all, I use the R standalone math library in my own C program, and the default R random number generator can be seeded with set_seed(const unsigned int, const unsigned int). How could I seed the RNG with an instance of .Random.seed ? I would need this or a similar workaround for debuggin

[Rd] Graphical option to update.packages in development version (build of the 2011-07-31 r56569) for Windows not working properly

2011-08-04 Thread Mark Difford
Dear R-core/development-team, The problem noted in the subject-line has been a problem in the last three development versions of R for Windows that I have downloaded and tested, the most recent of them being a version I downloaded this morning. Update.packages() using the graphical option, i.e. c