[Rd] Writing UTF8 on Windows

2014-10-18 Thread Jeroen Ooms
Recent functionality in jsonlite allows for streaming json to a user supplied connection object, such as a file, pipe or socket. RFC7159 prescribes json must be encoded as unicode; ISO-8859 (including latin1) is invalid. Hence I would like R to write strings as utf8, irrespective of the type of con

Re: [Rd] Most efficient way to check the length of a variable mentioned in a formula.

2014-10-18 Thread Joris Meys
Thanks again William, I owe you one! Cheers Joris On Fri, Oct 17, 2014 at 11:36 PM, William Dunlap wrote: > In my example function I did not evaluate the formula either, just a part > of it. > > If you leave off the envir and enclos arguments to eval in your > function you can get surprising (wr

Re: [Rd] Making parent.env<- an error for package namespaces and package imports

2014-10-18 Thread Tierney, Luke
I'll look into it Sent from my iPhone > On Oct 17, 2014, at 1:13 AM, "Karl Millar" wrote: > > I'd like to propose a change to the R language so that calling > 'parent.env<-' on a package namespace or package imports is a runtime > error. > > Currently the documentation warns that it's dangerou