Re: [Rd] Negative years with strptime?

2012-07-10 Thread Jeffrey Ryan
1)) >> # Error during wrapup: character string is not in a standard unambiguous >> format >> >> >> # as.Date.character uses strptime, so we can try using strptime directly >> strptime(as.character(x), "%Y-%m-%d") >> # "0001-01-24" "0500-01-24" >> >> strptime(as.character(x - 391), "%Y-%m-%d") >> # NA "0498-12-29" >> >> >> Thanks, >> -Winston >> >> [[alternative HTML version deleted]] >> >> __ >> R-devel@r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-devel >> > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Jeffrey Ryan jeffrey.r...@lemnica.com www.lemnica.com www.esotericR.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Capturing signals from within external libs

2012-05-23 Thread Jeffrey Ryan
ghts are very appreciated, and I now have further knowledge into making this work in other applications, but my hope for this one is dwindling. Best, Jeff On 5/23/12 11:49 AM, "Simon Urbanek" wrote: > >On May 23, 2012, at 12:40 PM, Jeffrey Ryan wrote: > >> Simon, &g

Re: [Rd] Capturing signals from within external libs

2012-05-23 Thread Jeffrey Ryan
wrote: >Jeff, > >On May 22, 2012, at 4:31 PM, Jeffrey Ryan wrote: > >> I have a continuous loop running in an external library that I am >>calling >> from C (R API). This loop is processing events in real time with the >> possibility of significant lag between ev

[Rd] Capturing signals from within external libs

2012-05-22 Thread Jeffrey Ryan
I have a continuous loop running in an external library that I am calling from C (R API). This loop is processing events in real time with the possibility of significant lag between events. When processing an event, I can make use of R_CheckUserInterrupt, but while the external library code is wa

Re: [Rd] Using other peoples packages from within C-based R-extension

2012-04-24 Thread Jeffrey Ryan
This link may be of help as well... https://stat.ethz.ch/pipermail/r-devel/2008-November/051262.html HTH Jeff On 4/24/12 12:35 PM, "oliver" wrote: >Hello, > >OK, thanks for the information... > > >On Tue, Apr 24, 2012 at 12:02:33PM -0500, Dirk Eddelbuettel wrote: >> >> On 24 April 2012 at 1

Re: [Rd] CRAN policies

2012-03-27 Thread Jeffrey Ryan
ion of how we can help, as well as a peek into what goes on 'behind the curtain' ;-) On 3/27/12 1:19 PM, "Uwe Ligges" wrote: > > >On 27.03.2012 19:10, Jeffrey Ryan wrote: >> Is there a distinction as to NOTE vs. WARNING that is documented? I've >> al

Re: [Rd] CRAN policies

2012-03-27 Thread Jeffrey Ryan
Is there a distinction as to NOTE vs. WARNING that is documented? I've always assumed (wrongly?) that NOTES weren't an issue with publishing on CRAN, but that they may change to WARNINGS at some point. Is the process by which this happens documented somewhere? Jeff On 3/27/12 11:09 AM, "Gabor G

Re: [Rd] Julia

2012-03-01 Thread Jeffrey Ryan
seminar about the design > of the language at Stanford yesterday, and the video is archived at > http://www.stanford.edu/class/ee380/.  You don't see John Chambers on > camera but I am reasonably certain that a couple of the questions and > comments came from him. > > _____

Re: [Rd] Identical copy of base function

2012-02-27 Thread Jeffrey Ryan
On Mon, Feb 27, 2012 at 9:19 AM, Martin Maechler wrote: >>>>>> Jeffrey Ryan >>>>>>     on Mon, 27 Feb 2012 07:39:32 -0600 writes: > >    > Doesn't this also mean that if Matrix is loaded first, >    > det() will be calling Matrix::deter

Re: [Rd] Identical copy of base function

2012-02-27 Thread Jeffrey Ryan
) inside det() will > correctly dispatch Matrix methods for determinant(), whereas > base::det() would not. > > Martin > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Jeffrey Ryan

Re: [Rd] which R package is used for browsing web pages through coding

2012-02-15 Thread Jeffrey Ryan
_ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Jeffrey Ryan jeffrey.r...@lemnica.com www.lemnica.com www.esotericR.com R/Finance 2012: Applied Finance with R www.RinFinance.com See you in Chicago __

Re: [Rd] seq.Date bug?

2012-01-31 Thread Jeffrey Ryan
t;%b-%y") to create 'pretty' names, > and the double entries screw that. > > Morale:  pick a mid-month date, and shift that. > > Dirk > > | Duncan Murdoch > | > | > | > > | > (And yes, I think I know that Hadley's lubridate has code for this too,

Re: [Rd] Efficiency of factor objects

2011-11-05 Thread Jeffrey Ryan
have to come up with a real use case to hope > convincing the developers a change is needed. There are probably many > more interesting areas where speedups can be gained than that. > > > Regards > > __ > R-devel@r-projec

Re: [Rd] readRDS and saveRDS

2011-10-18 Thread Jeffrey Ryan
er than the current > combo. > > Hadley > > -- > Assistant Professor / Dobelman Family Junior Chair > Department of Statistics / Rice University > http://had.co.nz/ > > __ > R-devel@r-project.org mailing list > http

Re: [Rd] readRDS and saveRDS

2011-10-18 Thread Jeffrey Ryan
ing list > https://stat.ethz.ch/mailman/listinfo/r-devel > -- Jeffrey Ryan jeffrey.r...@lemnica.com www.lemnica.com www.esotericR.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Issue with seek() on gzipped connections in R-devel

2011-09-23 Thread Jeffrey Ryan
native to using seek? If I > want to read something at (original, uncompressed) byte offset 352, as > here, do I have to read and discard everything that comes before it > first? That seems inelegant at best... > > Regards, > Jon > > > On 23 September 2011 16:54, Jeffrey R

Re: [Rd] Issue with seek() on gzipped connections in R-devel

2011-09-23 Thread Jeffrey Ryan
;. I see some zlib-related changes mentioned in the > NEWS, but I don't see any indication that this is expected. Could > anyone shed any light on it, please? > > Thanks and all the best, > Jon > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > -- Jeffrey Ryan jeffrey.r...@lemnica.com www.lemnica.com www.esotericR.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Is it possible to pass a function argument from R to compiled code in C?

2011-09-20 Thread Jeffrey Ryan
devel mailing list archive at Nabble.com. > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > -- Jeffrey Ryan jeffrey.r...@lemnica.com www.lemnica.com www.esotericR.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Is xtable still being maintained?

2011-09-10 Thread Jeffrey Ryan
chive at Nabble.com. >>> >>> __ >>> R-devel@r-project.org mailing list >>> https://stat.ethz.ch/mailman/listinfo/r-devel >> >> __ >> R-devel@r-project.org m

Re: [Rd] Non-GPL C (or R) inside of a package

2011-08-31 Thread Jeffrey Ryan
On Wed, Aug 31, 2011 at 10:40 AM, oliver wrote: > On Wed, Aug 31, 2011 at 10:34:38AM -0500, Jeffrey Ryan wrote: > [...] >> My case is a bit more subtle, as the code that I am writing makes no >> use of any GPL code, aside from the compilation and linking to allow >> G

Re: [Rd] Non-GPL C (or R) inside of a package

2011-08-31 Thread Jeffrey Ryan
On Tue, Aug 30, 2011 at 3:52 PM, Prof Brian Ripley wrote: > > On Tue, 30 Aug 2011, Duncan Murdoch wrote: > >> On 30/08/2011 1:50 PM, Jeffrey Ryan wrote: >>> >>> R-devel, >>> >>> I am interested in creating a package that requires non-GPL'

[Rd] Non-GPL C (or R) inside of a package

2011-08-30 Thread Jeffrey Ryan
and install process. Thanks, Jeff -- Jeffrey Ryan jeffrey.r...@lemnica.com www.lemnica.com www.esotericR.com [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] slightly speeding up readChar()

2011-08-05 Thread Jeffrey Ryan
hat once you mmap to a huge file, you do operations on it by > working on chunks at a time... are there packages for that, or do I have to > write my own code? > > Thanks! > > Michael > __ > R-devel@r-project.org mailing li

Re: [Rd] CRAN mirror size mushrooming; consider archiving some?

2011-07-26 Thread Jeffrey Ryan
t; > ______ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > -- Jeffrey Ryan jeffrey.r...@lemnica.com www.lemnica.com www.esotericR.com [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] "warning: assignment discards qualifiers from pointer target type"

2011-06-08 Thread Jeffrey Ryan
tself > > > (like strlen(3))? > > > > > > > No. > [...] > > OK, I looked at this now. > > LENGTH() checks the length of the vector. > > Good to know this. > > So the problem of a vector of length 0 can be with any arguments of type > SEXP, > hence I will need to check ANY arg on it's length. > > This is vital to stability under any situation. > > Thanks for this valuable hint! > > I will add checks for all my SEXP-args. > > > Ciao, > Oliver > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > -- Jeffrey Ryan jeffrey.r...@lemnica.com www.lemnica.com www.esotericR.com [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] help.request() for packages?

2011-04-26 Thread Jeffrey Ryan
; > Could a "Support" field (or better name) be added to DESCRIPTION, and a > 'package' argument added to help.request() which uses it? Then the > semantics of the Maintainer field can be closer to what the CRAN > maintainers seem to think of it; i.e., the package

Re: [Rd] hook for when R quits

2011-03-11 Thread Jeffrey Ryan
oad. > > Thanks, > Michael > >        [[alternative HTML version deleted]] > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > -- Jeffrey Ryan jeffrey.r...@lemnica.com www.lemnica.com

Re: [Rd] function call overhead

2011-02-16 Thread Jeffrey Ryan
;il contient par > une > personne autre que le ou les destinataires désignés est interdite. Si vous > recevez > ce courriel par erreur, veuillez le supprimer immédiatement et envoyer sans > délai à > l'expéditeur un message électroniqu

Re: [Rd] Request: Suggestions for "good teaching" packages, esp. with C code

2011-02-15 Thread Jeffrey Ryan
;> __ >> R-devel@r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-devel >> > >        [[alternative HTML version deleted]] > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > -- Jeffrey Ryan jeffrey.r...@lemnica.com www.lemnica.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Request: Suggestions for "good teaching" packages, esp. with C code

2011-02-15 Thread Jeffrey Ryan
'm only hesitant there > because I'm not entirely sure that a package's C code should introduce > its own functions for handling vectors and matrices, when some general > purpose library might be more desirable.  But that's a small point, > and clarity and completene

Re: [Rd] manipulating the Date & Time classes

2011-02-08 Thread Jeffrey Ryan
& Regards, >                                                    Mike > > > "Telescopes and bathyscaphes and sonar probes of Scottish lakes, > Tacoma Narrows bridge collapse explained with abstract phase-space maps, > Some x-ray slides, a music score, Minard's Napolean