Re: [Rd] Issues with libcurl + HTTP status codes (eg. 403, 404)

2015-08-25 Thread Kevin Ushey
(final post, sorry to be spamming everyone all day...) As kindly pointed out by Martin off-list, I was in fact using an old version of R-devel (it looks like the binaries provided at http://r.research.att.com/ are currently stale -- although the page lists r69167 as the current version, the binari

Re: [Rd] Issues with libcurl + HTTP status codes (eg. 403, 404)

2015-08-25 Thread Kevin Ushey
In fact, this does reproduce on R-devel: > options(download.file.method = "libcurl") > options(repos = c(CRAN = "https://cran.rstudio.com/";, CRANextra = + "http://www.stats.ox.ac.uk/pub/RWin";)) > install.packages("lattice") ## could be any package Installing package into ‘/Us

Re: [Rd] Issues with libcurl + HTTP status codes (eg. 403, 404)

2015-08-25 Thread Martin Morgan
On 08/25/2015 01:30 PM, Kevin Ushey wrote: Hi Martin, Indeed it does (and I should have confirmed myself with R-patched and R-devel before posting...) actually I don't know that it does -- it addresses the symptom but I think there should be an error from libcurl on the 403 / 404 rather than

Re: [Rd] Issues with libcurl + HTTP status codes (eg. 403, 404)

2015-08-25 Thread Kevin Ushey
Hi Martin, Indeed it does (and I should have confirmed myself with R-patched and R-devel before posting...) Thanks, and sorry for the noise. Kevin On Tue, Aug 25, 2015, 13:11 Martin Morgan wrote: > On 08/25/2015 12:54 PM, Kevin Ushey wrote: > > Hi all, > > > > The following fails for me (on OS

Re: [Rd] Issues with libcurl + HTTP status codes (eg. 403, 404)

2015-08-25 Thread Martin Morgan
On 08/25/2015 12:54 PM, Kevin Ushey wrote: Hi all, The following fails for me (on OS X, although I imagine it's the same on other platforms using libcurl): options(download.file.method = "libcurl") options(repos = c(CRAN = "https://cran.rstudio.com/";, CRANextra = "http://www.stats.ox

[Rd] Issues with libcurl + HTTP status codes (eg. 403, 404)

2015-08-25 Thread Kevin Ushey
Hi all, The following fails for me (on OS X, although I imagine it's the same on other platforms using libcurl): options(download.file.method = "libcurl") options(repos = c(CRAN = "https://cran.rstudio.com/";, CRANextra = "http://www.stats.ox.ac.uk/pub/RWin";)) install.packages("latti

Re: [Rd] Child thread libR.so

2015-08-25 Thread Ryan C Metzger
Simon, Ah, thank you! quiet right. For anyone searching for this in the future, I changed my init fuction to: -- SNIP void init_r() { SEXP aperm_function; /* this is our version of Rf_initEmbeddedR where we disable stack checking */ const char *init_argv[] = {

Re: [Rd] match()/%in% with language objects?

2015-08-25 Thread William Dunlap
match(x,table) and x%in%table work when x and table are lists of language objects or expressions. E.g., expression(quote(1+2), quote(log2(16))) %in% expression(3, quote(1+2), c(4L,5L,6L,7L)) #[1] TRUE FALSE list(quote(1+2), quote(log2(16))) %in% list(3, quote(1+2), c(4L,5L,6L,7L)) #[1]

[Rd] match()/%in% with language objects?

2015-08-25 Thread Ben Bolker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I haven't yet dug into the internals of match() yet to see what's going on, but I'm wondering whether there's a design reason why I can't use %in% (which is a wrapper for match()) on language objects. I'd like to test whether a language object is i

Re: [Rd] sprintf error: "only 100 arguments allowed"

2015-08-25 Thread Prof Brian Ripley
From the sources: #define MAXNARGS 100 /* ^^^ not entirely arbitrary, but strongly linked to allowing %$1 to %$99 !*/ On 22/08/2015 04:21, Martin Bel wrote: I'm trying to apply a function defined in the VW R docs, that attemps to convert a data.table object to Vowpal Wabbit fo