[Rd] Installation using iconv from glibc

2015-05-14 Thread Smith, Virgil
The R Installation and Administration manual section A.1 states that glibc should provide a suitable iconv function, but I can't get R's configure script to accept/validate iconv on a Linux platform I need to support using glibc 2.20. Is glibc is actually compatible (and/or is gnu libiconv essen

Re: [Rd] Creating a vignette which depends on a non-distributable file

2015-05-14 Thread Martin Morgan
On 05/14/2015 04:33 PM, Henrik Bengtsson wrote: On May 14, 2015 15:04, "January Weiner" wrote: Dear all, I am writing a vignette that requires a file which I am not allowed to distribute, but which the user can easily download manually. Moreover, it is not possible to download this file autom

Re: [Rd] Creating a vignette which depends on a non-distributable file

2015-05-14 Thread Henrik Bengtsson
On May 14, 2015 15:04, "January Weiner" wrote: > > Dear all, > > I am writing a vignette that requires a file which I am not allowed to > distribute, but which the user can easily download manually. Moreover, it > is not possible to download this file automatically from R: downloading > requires a

[Rd] Creating a vignette which depends on a non-distributable file

2015-05-14 Thread January Weiner
Dear all, I am writing a vignette that requires a file which I am not allowed to distribute, but which the user can easily download manually. Moreover, it is not possible to download this file automatically from R: downloading requires a (free) registration that seems to work only through a browse

Re: [Rd] Reading exit code of pipe()

2015-05-14 Thread Jeroen Ooms
On Thu, May 14, 2015 at 7:30 AM, William Dunlap wrote: > The difference in the return value of close(pipeConnectionObject) seems to > depend on whether the pipe connection was opened via the pipe() or open() > functions (close() returns NULL) or via something like readLines() or scan() > (close

Re: [Rd] Reading exit code of pipe()

2015-05-14 Thread Tim Keitt
Not sure if it helps for your use case, but I have an experimental package for controlling bidirectional pipe streams from R. Just thought I'd mention it. Its at https://github.com/thk686/pipestreamr THK On Thu, May 14, 2015 at 9:30 AM, William Dunlap wrote: > The difference in the return valu

Re: [Rd] Reading exit code of pipe()

2015-05-14 Thread William Dunlap
The difference in the return value of close(pipeConnectionObject) seems to depend on whether the pipe connection was opened via the pipe() or open() functions (close() returns NULL) > con <- pipe("ls") > open(con, "r") > readLines(con, n=1) [1] "1032.R" > print(close(con)) NULL

Re: [Rd] Reading exit code of pipe()

2015-05-14 Thread Gábor Csárdi
On Thu, May 14, 2015 at 1:27 AM, Kevin Ushey wrote: [...] > So maybe `cat` just doesn't set a status code, and so there's nothing > for R to forward back (ergo -- NULL)? > cat definitely sets the status. IMHO every command sets the exit status, by definition, at least on Unix/Linux. /tmp$ touch

Re: [Rd] Why is the diag function so slow (for extraction)?

2015-05-14 Thread peter dalgaard
> On 13 May 2015, at 19:31 , Radford Neal wrote: > >> From: Martin Maechler > >> diag() should not work only for pure matrices, but for all >> "matrix-like" objects for which ``the usual methods'' work, such >> as >> as.vector(.), c(.) >> >> That's why there has been the c(.) in there. >>