[Rd] Creating a Factor Object in C code?

2012-12-27 Thread Rory Winston
Hi guys I am currently working on a small bit of bridging code between a database system and R. The database system has the concept of varchars, a la factors in R, as distinct from plain character strings. What I would like to do is when I receive a list of character strings from the remote dat

Re: [Rd] reinterpreting externalptr in R

2012-12-27 Thread andre__
Thanks a lot ... -- View this message in context: http://r.789695.n4.nabble.com/reinterpreting-externalptr-in-R-tp4653908p4654033.html Sent from the R devel mailing list archive at Nabble.com. __ R-devel@r-project.org mailing list https://stat.eth

[Rd] Doc patch for Sys.time and system.time

2012-12-27 Thread Ken Williams
Here’s a patch that adds ‘seealso’ entries to Sys.time and system.time docs, to help people who forget what the distinction is between them. Patch was made against https://svn.r-project.org/R/trunk@61454 . -Ken __ R-devel@r-project.org mailing list htt

Re: [Rd] Creating a Factor Object in C code?

2012-12-27 Thread Simon Urbanek
Rory, On Dec 27, 2012, at 3:14 AM, Rory Winston wrote: > Hi guys > > I am currently working on a small bit of bridging code between a database > system and R. The database system has the concept of varchars, a la factors > in R, as distinct from plain character strings. varchars are character

Re: [Rd] How to ensure -O3 on Win64

2012-12-27 Thread Simon Urbanek
On Dec 23, 2012, at 9:22 PM, Matthew Dowle wrote: > > Hi, > > Similar questions have come up before on the list and elsewhere but I haven't > found a solution yet. > > winbuilder's install.out shows data.table's .c files compiled with -O3 on > Win32 but -O2 on Win64. The same happens on R-Fo

Re: [Rd] Doc patch for Sys.time and system.time

2012-12-27 Thread Ken Williams
Duncan noticed that either the sending server (Gmail - shouldn't be the case) or receiving server stripped out the attachment. Here it is again, inline. -Ken === >From 99766dd8f16804ecddc73f6169be3e42b916b8fa Mon Sep 17 00:00:00 2001 From: Ken Williams Date: Thu, 27 Dec

[Rd] Suggestion: 'method' slot for expand.grid() (incl. diffs)

2012-12-27 Thread Marius Hofert
Dear expeRts, The order in which the variables vary in expand.grid() is often unintuitive. I would like to suggest a 'method' slot for expand.grid() which requires only very little changes (100% backward compatible) and which allows one to control this order. Please find attached diffs against R-d

Re: [Rd] Creating a Factor Object in C code?

2012-12-27 Thread Rory Winston
Hi Simon Thanks for the clarification - makes sense and I now think youre right - probably better to avoid an automatic factor conversion and let the user explicitly convert if necessary. And you are right, I did abuse the term factor when referring to varchar - instead of factor, I really mean

Re: [Rd] How to ensure -O3 on Win64

2012-12-27 Thread Matthew Dowle
On 27.12.2012 17:53, Simon Urbanek wrote: On Dec 23, 2012, at 9:22 PM, Matthew Dowle wrote: Hi, Similar questions have come up before on the list and elsewhere but I haven't found a solution yet. winbuilder's install.out shows data.table's .c files compiled with -O3 on Win32 but -O2 on Wi

Re: [Rd] Doc patch for Sys.time and system.time

2012-12-27 Thread Duncan Murdoch
These are now in R-devel. Thanks! Duncan Murdoch On 12-12-27 1:34 PM, Ken Williams wrote: Duncan noticed that either the sending server (Gmail - shouldn't be the case) or receiving server stripped out the attachment. Here it is again, inline. -Ken === From 99766dd

Re: [Rd] How to ensure -O3 on Win64

2012-12-27 Thread Simon Urbanek
On Dec 27, 2012, at 6:08 PM, Matthew Dowle wrote: > On 27.12.2012 17:53, Simon Urbanek wrote: >> On Dec 23, 2012, at 9:22 PM, Matthew Dowle wrote: >> >>> >>> Hi, >>> >>> Similar questions have come up before on the list and elsewhere but I >>> haven't found a solution yet. >>> >>> winbuilder

Re: [Rd] Creating a Factor Object in C code?

2012-12-27 Thread Simon Urbanek
On Dec 27, 2012, at 5:43 PM, Rory Winston wrote: > Hi Simon > > Thanks for the clarification - makes sense and I now think youre right - > probably better to avoid an automatic factor conversion and let the user > explicitly convert if necessary. And you are right, I did abuse the term > facto