Re: [Rd] should `data` respect default.stringsAsFactors()?

2016-02-19 Thread peter dalgaard
Aha... Hadn't noticed that stringsAsFactors only works via as.is in read.table. Yes, the doc should probably be fixed. The code probably not -- packages loading different data sets depending on user options is an even worse idea than havĂ­ng the option in the first place... (I don't mean having

Re: [Rd] R, AIX 64-bit builds - trying to understand root cause for message: "Error: Line starting 'Package: tools ...' is malformed!"

2016-02-19 Thread Michael Felt
Hi Simon, I have been busy with work, but I finally got around to repackaging libiconv for AIX - in a way that both adds GNU libiconv support (libiconv.so.2 member) and is both 32 and 64 bit without breaking support for IBM iconv applications. I concur that iconv is a pain as IBM and GNU mad

[Rd] Reading from an existing connection in compiled code

2016-02-19 Thread Jon Clayden
Dear all, I'd like to be able to read from an arbitrary R connection (in the sense of ?connections), which would be passed to an R function by the user and then down into some C code via .Call. The R API, in file R_ext/Connections.h, specifies a function, R_ReadConnection, which takes a pointer t

Re: [Rd] should `data` respect default.stringsAsFactors()?

2016-02-19 Thread Cook, Malcolm
Joshua, > On Thu, Feb 18, 2016 at 6:03 PM, Cook, Malcolm wrote: > > Hi Peter, > > > > Sorry if I was not clear. Perhaps an example will make my point: > > > >> data(iris) > >> class(iris$Species) > > [1] "factor" > >> write.table(iris,'data/myiris.tab') > >> data(myiris) > >> class(myi

Re: [Rd] should `data` respect default.stringsAsFactors()?

2016-02-19 Thread Cook, Malcolm
Hi, > Aha... Hadn't noticed that stringsAsFactors only works via as.is in > read.table. > > Yes, the doc should probably be fixed. The code probably not Agreed. Is someone on-list authorized and willing to make the documentation change? I suppose I could learn what it takes to be a "p

Re: [Rd] should `data` respect default.stringsAsFactors()?

2016-02-19 Thread peter dalgaard
On 19 Feb 2016, at 16:02 , Cook, Malcolm wrote: > Hi, > >> Aha... Hadn't noticed that stringsAsFactors only works via as.is in >> read.table. >> >> Yes, the doc should probably be fixed. The code probably not > > Agreed. > > Is someone on-list authorized and willing to make the documenta

Re: [Rd] default destfile in download.file()

2016-02-19 Thread Uwe Ligges
On 18.02.2016 12:01, Jeroen Ooms wrote: A nice default value for the `destfile` argument in download.file() would be `basename(url)` i.e. the name of the downloaded file. This would correspond to default behavior in many other web/ftp clients and makes code slightly more concise: download.f