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

2015-08-26 Thread Martin Maechler
> William Dunlap > on Tue, 25 Aug 2015 09:47:23 -0700 writes: > 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]

[Rd] declaring dependencies of shiny app in inst/

2015-08-26 Thread Jombart, Thibaut
Dear all, I have a package implementing a shiny app, putting the R code of the app (server.R and ui.R) in inst/... and then having a simple function merely starting the app with something along the lines of: runApp(system.file("inst/...")) However, the app itself uses functions from packages w

Re: [Rd] declaring dependencies of shiny app in inst/

2015-08-26 Thread Duncan Murdoch
On 26/08/2015 6:43 AM, Jombart, Thibaut wrote: > Dear all, > > I have a package implementing a shiny app, putting the R code of the app > (server.R and ui.R) in inst/... and then having a simple function merely > starting the app with something along the lines of: > runApp(system.file("inst/...

Re: [Rd] declaring dependencies of shiny app in inst/

2015-08-26 Thread Jombart, Thibaut
Hi there thanks for the answer. >> But are their better ways / best practices? >You'll have to ask questions like these on a Shiny forum. Done. New thread there: https://goo.gl/17hsAa >> On a related topic: are there plans of formally incorporating shiny apps in >> the structure of a R packag

Re: [Rd] declaring dependencies of shiny app in inst/

2015-08-26 Thread Duncan Murdoch
On 26/08/2015 8:00 AM, Jombart, Thibaut wrote: > Hi there > > thanks for the answer. > >>> But are their better ways / best practices? >> You'll have to ask questions like these on a Shiny forum. > > Done. New thread there: https://goo.gl/17hsAa > >>> On a related topic: are there plans of for

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

2015-08-26 Thread William Dunlap
>Did you support Ben's wish to allow 'symbol' (aka 'name') objects as well, >or even more general language objects (as by the subject's wording) ? Do you mean should match treat match(quote(foo), list(as.name("bar"), as.name("foo"))) # error the same as match(list(quote(foo)), list(as.nam

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

2015-08-26 Thread Hervé Pagès
Wouldn't it make sense to have this in the man page? The 8192-byte limitation for 'fmt' is mentioned but not this one. Thanks, H. On 08/25/2015 02:08 AM, Prof Brian Ripley wrote: From the sources: #define MAXNARGS 100 /* ^^^ not entirely arbitrary, but strongly linked to allowi

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

2015-08-26 Thread Jeroen Ooms
On Tue, Aug 25, 2015 at 10:33 PM, Martin Morgan wrote: > > 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 from > read.dcf on error page... Indeed, the only correct behavior is to turn the protocol e

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

2015-08-26 Thread Martin Bel
Thanks for the help Hervé, sprintf2 does the job! Brillant! I see Brian, thanks. I imagined it was there for a reason, but had to check. I guess you don't pass more than 100 arguments to sprintf every day. ;) Best. Martín 2015-08-26 14:26 GMT-03:00 Hervé Pagès : > Wouldn't it make sense to have

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

2015-08-26 Thread Duncan Murdoch
On 26/08/2015 6:04 PM, Jeroen Ooms wrote: > On Tue, Aug 25, 2015 at 10:33 PM, Martin Morgan > wrote: >> >> 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 from >> read.dcf on error page... > > Inde