Re: [Rd] Segmentation fault early in compilation of revision 85514

2023-11-14 Thread Joshua Ulrich
of R from Subversion. > Regardless, the issue resolved itself. > > Thanks, > > Avi > > ______ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrad

Re: [Rd] S3 dispatch does not work for generics defined inside an environment

2021-06-30 Thread Joshua Ulrich
using at the time. I was slow to upgrade to 4.0, so it was probably the latest 3.x version. env <- new.env() local({ # define the generic function and the method myfun <- function(x) { UseMethod("myfun", x) } # register the method registerS3method(&quo

Re: [Rd] Demo for linking native routines between R packages

2021-01-09 Thread Joshua Ulrich
collaborating on it. > Best regards, > David > > -- > Jitao David Zhang > > http://jdzhang.me/ > m...@jdzhang.me > > Schützengasse 20 > 4125 Riehen, Switzerland > > [[alternative HTML version deleted]] > > __

Re: [Rd] R-Forge > GitHub?

2019-06-30 Thread Joshua Ulrich
On Sat, Jun 29, 2019 at 9:46 PM Joshua Ulrich wrote: > > On Sat, Jun 29, 2019 at 6:06 PM Spencer Graves > wrote: > > > > Hi, Henrik et al.: > > > > > >What's your favorite documentation on how to make two GitHub > > projects from one con

Re: [Rd] R-Forge > GitHub?

2019-06-29 Thread Joshua Ulrich
rd" here, and this "Authentication failed" message > >>> reported the GitHub password I used here.] > >>> > >>> > >>> Thanks, > >>> Spencer > >>> > >>> > >>>

Re: [Rd] rbind has confusing result for custom sub-class (possible bug?)

2019-06-02 Thread Joshua Ulrich
there is no `[<-.IDate` method to ensure the replacement value is converted to integer. And, in fact, `[<-.Date` calls as.Date() and data.table::as.Date.IDate() calls as.numeric() on the IDate object. So the problem exists, and can be fixed, in data.table. Best, Josh On Mon, May 27, 2019 at 9:34

Re: [Rd] survival changes

2019-06-01 Thread Joshua Ulrich
ges. > > I plan to have 3.0-x on github before userR so that users can begin to play > with it (and > to get feeback before pushing to CRAN), so need to make a decision. > > Terry T. > > > > [[alternative HTML version deleted]] > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com R/Finance 2019 | www.rinfinance.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] rbind has confusing result for custom sub-class (possible bug?)

2019-05-27 Thread Joshua Ulrich
Date, and that method > (ours) has as.numeric(); earlier I had recognized that if we commented that > line, the issue was "fixed" but I still wasn't understanding the root cause. > > My last curiosity on this issue will be in my follow-up thread. > > Mike C > > On

Re: [Rd] rbind has confusing result for custom sub-class (possible bug?)

2019-05-27 Thread Joshua Ulrich
On Sun, May 26, 2019 at 6:47 AM Joshua Ulrich wrote: > > On Sun, May 26, 2019 at 4:06 AM Michael Chirico > wrote: > > > > Have finally managed to come up with a fix after checking out sys.calls() > > from within the as.Date.IDate debugger, which shows something like:

Re: [Rd] rbind has confusing result for custom sub-class (possible bug?)

2019-05-26 Thread Joshua Ulrich
quot; <-- singleton, so apparently applied to DF$date, not > > c(DF$date, DF$date) > > undebug(data.table:::as.Date.IDate) > > > > I can't really wrap my head around why as.Date is being called here, and > > even allowing that, why the end result is still the original class [ > > class(rbind(DF, DF)$date) == c('IDate', 'Date') ] > > > > So, I'm beginning to think this might be a bug. Am I missing something? > > > > [[alternative HTML version deleted]] > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com R/Finance 2019 | www.rinfinance.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] anyNA() performance on vectors of POSIXct

2019-05-21 Thread Joshua Ulrich
return TRUE; > }); > break; > } > I'm interested in this as well, because it causes performance degradation in xts subsetting: https://github.com/joshuaulrich/xts/issues/296 Would it be possible to special-case POSIXct, and perhaps other types defined in base+re

[Rd] Proposal: Internal as.Date.POSIXct()

2018-10-31 Thread Joshua Ulrich
your consideration! Best, Josh -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com R/Finance 2018 | www.rinfinance.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Bug in POSIXct string representation?

2018-08-10 Thread Joshua Ulrich
ional seconds rather than rounding combined with the floating point representation error you noticed. And truncation is the behavior for printing whole seconds: format(as.POSIXct("2018-08-31 14:15:16.9")) # 16s, not 17s [1] "2018-08-31 14:15:16" So it would not be consis

Re: [Rd] Memory leakage from large lists

2018-07-17 Thread Joshua Ulrich
LC_ADDRESS=C LC_TELEPHONE=C > LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C > > attached base packages: > [1] stats graphics grDevices utils datasets methods base > > loaded via a namespace (and not attached): > [1] compiler_3.4.4 tools_3.4.4yaml_

Re: [Rd] install.packages doesn't produce warnings unless qualified with utils::

2018-03-03 Thread Joshua Ulrich
s::install.packages("clipr", repos = "bullshit"), warning = > function (w) cat("got a warning")) > got a warning > My guess is that something (a package, console, etc) is masking utils::install.packages(). > Any ideas? > Cheers, > David >

[Rd] SIGSEGV during startup

2017-10-06 Thread Joshua Ulrich
** [R] Error 1 make[1]: Leaving directory '/home/josh/R/R-build/src' Makefile:60: recipe for target 'R' failed make: *** [R] Error 1 The context around memory.c:908 is below, and suggests the issue manifests with the combination of the ALTREP framework and valgrind instrumentati

Re: [Rd] Why is as.function() slower than eval(call("function"())?

2017-08-04 Thread Joshua Ulrich
expr min lq mean medianuq max neval make_fn_1(a, b) 1.615 1.7595 12.78339 1.9115 2.145 1077.657 100 make_fn_2(a, b) 3.077 3.3390 19.89423 3.5215 3.862 1589.505 100 make_fn_3(a, b) 1.629 1.7975 15.40389 1.9505 2.227 1335.306 100 Now the difference

Re: [Rd] bug in rbind?

2017-01-21 Thread Joshua Ulrich
t; > Important: This email is confidential and may be privileged. If you are not > the intended recipient, please delete it and notify us immediately; you > should not copy or use it for any purpose, nor disclose its contents to any > other person. Thank you. > > [[alte

Re: [Rd] wish list: generalized apply

2016-12-09 Thread Joshua Ulrich
faster is not going to improve the performance of this code by a significant amount. I.e., dropping to compiled code will only help if you avoid the R function call, but then that's not a general solution... > -- > > David Winsemius > Alameda, CA, USA > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com R/Finance 2016 | www.rinfinance.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] segfault with POSIXlt zone=NULL zone=""

2016-12-06 Thread Joshua Ulrich
#x27;s not the only way to create a malformed POSIXlt object. Reordering *any* of the elements results in a segfault, and there are probably other things you could do to the internal structure of POSIXlt objects to cause segfaults. Maybe update the documentation to say, "If you update the i

Re: [Rd] segfault with POSIXlt zone=NULL zone=""

2016-12-06 Thread Joshua Ulrich
ed by comparing it's unclass()'d output. d <- as.POSIXlt(Sys.time()) unclass(d) # valid POSIXlt object d$zone <- NULL d$zone <- "" unclass(d) # your malformed POSIXlt object > Thanks, > > Frederick > > _

Re: [Rd] Calling C implementations of rnorm and friends

2016-07-01 Thread Joshua Ulrich
sa, sb, norm, REALSXP); I understand that is a >>> version >>> of the random2 function that returns a real S expression taking sn, sa and >>> sb as parameters. But how does find the actual functional form for the >>> normal distribution? >>> >>>

Re: [Rd] RODBC on Mac & _R_CHECK_FORCE_SUGGESTS_

2016-06-20 Thread Joshua Ulrich
E_SUGGESTS_=FALSE R CMD check sos_1.3-9.tar.gz > >Suggestions? >Thanks, >Spencer Graves > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com R/Finance 2016 | www.rinfinance.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] [R-SIG-Finance] [VC++ calling R] How to create a real-time interactive ticking time-series chart using dygraph via RInside?

2016-04-11 Thread Joshua Ulrich
> > > > > > > [[alternative HTML version deleted]] > > > ___ > r-sig-fina...@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-sig-finance > -- Subscriber-posting only. If you wan

Re: [Rd] %OS on output

2016-02-24 Thread Joshua Ulrich
getOption("digits.secs") > NULL >> z <- strptime("20/2/06 11:16:16.683", "%d/%m/%y %H:%M:%OS") >> format(z, "%OS") > [1] "16" > > __ > R-devel@r-project.

Re: [Rd] should `data` respect default.stringsAsFactors()?

2016-02-18 Thread Joshua Ulrich
cumented to NOT respect > > default.stringsAsFactors. > > > > > > Else? > > > > > > ~Malcolm Cook > > > > > > __________ > > > R-devel@r-project.org mailing list > > > https://stat.ethz.ch/mailman/listinfo/r-devel > > >

Re: [Rd] Confusing print method for Inf dates

2015-10-21 Thread Joshua Ulrich
hould return - NA? > But they're not integers in the strict sense. > Hadley > > -- > http://had.co.nz/ > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Weird issue when iterating through dates

2015-08-12 Thread Joshua Ulrich
t; > Is it supposed to be the method for accessing the value right? >>>> >>>> For Dates and atomic vectors in general they are the same, but in >>>> general they are two different operators that behave differently on >>>> some data t

Re: [Rd] R CMD build failure

2015-07-09 Thread Joshua Ulrich
7; file; otherwise, files '~/.R/check.Renviron' or '~/.R/build.Renviron' or sub-architecture-specific versions are employed." Maybe one of those options could work for you? > PS, I can't use RHOME:/etc/Rprofile.site since the biostat group is not the > only set of

Re: [Rd] R CMD check: Uses the superseded package: ‘doSNOW’

2015-02-11 Thread Joshua Ulrich
I could get it to work >>> there. doMC is apparently still available for Unix only. I couldn't get >>> doRNG to work on either platforms. >>> >>> So what is R CMD check noticing me about? >>> Should I ignore the notice, or take an action? If so, which one? >>> >

Re: [Rd] [PATCH] Makefile: add support for git svn clones

2015-01-19 Thread Joshua Ulrich
had already encountered > this same compilation issue and considered it was a bug, I am > astounded to learn that it is instead desired and intentional > behavior. > > --nate > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Problem with build and check

2014-11-12 Thread Joshua Ulrich
gt;> >> locale: >>[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C >>[3] LC_TIME=en_US.UTF-8LC_COLLATE=C >>[5] LC_MONETARY=en_US.UTF-8LC_MESSAGES=en_US.UTF-8 >>[7] LC_PAPER=en_US.UTF-8 LC_NAME=C >>[9] LC_ADDRESS=C LC_TELEPHONE=C >> [11] LC_MEASURE

Re: [Rd] subscripting a data.frame (without changing row order) changes internal row.names

2014-11-10 Thread Joshua Ulrich
dioapi_0.1XML_3.98-1.1 > yaml_2.1.13 > > -- > Gregory Jefferis, PhD > Division of Neurobiology > MRC Laboratory of Molecular Biology > Francis Crick Avenue > Cambridge Biomedical Campus > Cambridge, CB2 OQH, UK > > http://www2.mrc-lmb.cam.ac.uk/group-leaders/h-to-m/g-jefferis > http://jefferislab.org > http://flybrain.stanford.edu > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Unexpected behavior of identical() with language objects

2014-10-29 Thread Joshua Ulrich
___ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] "Fastest" way to merge 300+ .5MB dataframes?

2014-08-10 Thread Joshua Ulrich
The same comment Jeroen Ooms made about your last email also applies to this one: it is better suited to R-help. -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com On Sun, Aug 10, 2014 at 1:18 PM, Grant Rettke wrote: > Good afternoon, > > Today I was wor

Re: [Rd] Typeof for character vector in dataframe returns integer

2014-04-01 Thread Joshua Ulrich
storage type of an object. Factors are integer vectors with a levels attribute. See ?typeof and ?factor. As I said, it's not a character column. data.frame coerced it to factor. > Thanks > > > > > On Tue, Apr 1, 2014 at 5:56 PM, Joshua Ulrich wrote: >> >> &g

Re: [Rd] Typeof for character vector in dataframe returns integer

2014-04-01 Thread Joshua Ulrich
On Apr 1, 2014 7:48 PM, "Sandip Nandi" wrote: > > Hi , > > I want to know is this behavior expected and why is that ? Need some help > > gender <- c("F", "M", "M", "F", "F", "M", "F", "F") > > age<- c(23, 25, 27, 29, 31, 33, 35, 37) > > df<- data.frame(gender,age) > > typeof(df[[1]]) > [1] "i

Re: [Rd] [RFC] A case for freezing CRAN

2014-03-19 Thread Joshua Ulrich
On Wed, Mar 19, 2014 at 5:16 PM, Jeroen Ooms wrote: > On Wed, Mar 19, 2014 at 2:59 PM, Joshua Ulrich > wrote: >> >> So implementation isn't a problem. The problem is that you need a way >> to force people not to be able to use different package versions than >&g

Re: [Rd] [RFC] A case for freezing CRAN

2014-03-19 Thread Joshua Ulrich
On Wed, Mar 19, 2014 at 4:28 PM, Jeroen Ooms wrote: > On Wed, Mar 19, 2014 at 11:50 AM, Joshua Ulrich > wrote: >> >> The suggested solution is not described in the referenced article. It >> was not suggested that it be the operating system's responsibility to >&g

Re: [Rd] [RFC] A case for freezing CRAN

2014-03-19 Thread Joshua Ulrich
, I think this could only be > accomplished with a cran release cycle (i.e. "universal snapshots") > accompanying the already existing r releases. > This could be done by a public third-party repository, independent of CRAN. However,

Re: [Rd] [RFC] A case for freezing CRAN

2014-03-19 Thread Joshua Ulrich
your idea, they will use your new repositories instead of CRAN. There is no reason to impose this change on all world-wide CRAN users. Best, -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com __ R-devel@r-project.org mail

Re: [Rd] Regarding: stat.math.ethz.ch mailing list memberships reminder

2014-03-07 Thread Joshua Ulrich
rtext." -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com On Fri, Mar 7, 2014 at 11:17 AM, Sachko Honda wrote: > Please never ever send the password in clear text, never!!! > > Sachko Honda > > Phone: 425.284.7200 > Fax: 425.284.7201 > sachko

Re: [Rd] Possible POSIXlt / wday glitch & bugs.r-project.org status

2013-10-15 Thread Joshua Ulrich
In an effort to redeem myself, I have found and submitted a patch for what seems to be causing this issue. Best, -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com On Sat, Oct 5, 2013 at 1:18 PM, Simon Urbanek wrote: > On Oct 5, 2013, at 4:51 PM, Sean O'

Re: [Rd] Possible POSIXlt / wday glitch & bugs.r-project.org status

2013-10-04 Thread Joshua Ulrich
On Fri, Oct 4, 2013 at 8:02 PM, Imanuel Costigan wrote: > Thanks for the responses and quoting the timezone help file. > > I am assuming that in order to determine the wday element of POSIXlt, R does > the necessary calculations in Julian time (via POSIXct). Based on this > excerpt from ?DateTim

Re: [Rd] Possible POSIXlt / wday glitch & bugs.r-project.org status

2013-10-04 Thread Joshua Ulrich
you have the courtesy not to blame R for them. Best, -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com On Fri, Oct 4, 2013 at 5:11 AM, Imanuel Costigan wrote: > Wanted to raise two questions: > > 1. Is bugs.r-project.org down? I haven't been able t

Re: [Rd] read.table() with quoted integers

2013-10-04 Thread Joshua Ulrich
} > if (!missing(col.names)) > names(d) <- col.names > d > } > df <- read.table.ffdf(file=file.path(path,file), first.rows = 10, > FUN="customengine") > df > > # 5 use a parsing engine that can apply colClasses to quoted i

Re: [Rd] read.table() with quoted integers

2013-10-04 Thread Joshua Ulrich
On Tue, Oct 1, 2013 at 11:29 AM, David Winsemius wrote: > > On Sep 30, 2013, at 6:38 AM, Joshua Ulrich wrote: > >> On Mon, Sep 30, 2013 at 7:33 AM, Milan Bouchet-Valat >> wrote: >>> Hi! >>> >>> >>> It seems that read.table() in R 3.0.1 (

Re: [Rd] read.table() with quoted integers

2013-09-30 Thread Joshua Ulrich
On Mon, Sep 30, 2013 at 9:45 AM, Milan Bouchet-Valat wrote: > Le lundi 30 septembre 2013 à 08:38 -0500, Joshua Ulrich a écrit : >> On Mon, Sep 30, 2013 at 7:33 AM, Milan Bouchet-Valat >> wrote: >> > Hi! >> > >> > >> > It seems that read.

Re: [Rd] read.table() with quoted integers

2013-09-30 Thread Joshua Ulrich
ly stored on disk (via as.is=TRUE), not how read.table might convert them once they're read into R. > > Regards > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Vignette problem and CRAN policies

2013-09-23 Thread Joshua Ulrich
man/listinfo/r-devel -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com On Mon, Sep 23, 2013 at 4:57 PM, Eric Malitz wrote: > take me off here > > > On Mon, Sep 23, 2013 at 4:44 PM, Marc Schwartz wrote: > >> Spencer, >> >> FYI. I

[Rd] Mailing Lists page, turning off HTML mail

2013-09-22 Thread Joshua Ulrich
following sentence: "For more details and instructions on turning off HTML for your e-mail software, see here." Best, -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com __ R-devel@r-project.org mailing list https://st

Re: [Rd] What algorithm is R using to calculate mean?

2013-07-26 Thread Joshua Ulrich
n.cfm?doid=359146.359153 [2] https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=1228 Best, -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com On Thu, Jul 25, 2013 at 2:44 PM, Zach Harrington wrote: > I am curious to know what algorithm R's mean function uses. Is ther

[Rd] as.Date.POSIXct

2013-03-26 Thread Joshua Ulrich
;POSIXt"))) [1] "2004-07-22 01:00:00 CEST" > as.Date(d) [1] "2004-07-21" > as.Date(as.POSIXlt(d)) [1] "2004-07-22" > as.Date(d, tz=attr(d,'tzone')) [1] "2004-07-22" Best, -- Joshua Ulrich | about.me/joshua

Re: [Rd] Matrix does not build with R trunk since Oct.

2013-02-16 Thread Joshua Ulrich
failed >>>>> * removing ‘/svn-loc/R/library/Matrix’ >>>>> * restoring previous ‘/svn-loc/R/library/Matrix’ >>>>> make[2]: *** [Matrix.ts] Error 1 >>>>> make[2]: Leaving directory >>>> `/svn-loc/R/src/library/Recommended' >>>>> make[1]: *** [recommended-packages] Error 2 >>>>> make[1]: Leaving directory >>>> `/svn-loc/R/src/library/Recommended' >>>>> make: *** [stamp-recommended] Error 2 >>>>> >>>>> >>>>> If it matters, here is what r trunk built with: >>>>> ./configure --enable-memory-profiling >>>> --enable-strict-barrier --enable-byte-compiled-packages >>>> --with-valgrind-instrumentation=2 --enable-lto >>>>> >>>>> __ >>>>> 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 > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com R/Finance 2013: Applied Finance with R | www.RinFinance.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Who does develop the R core and libs, and how / where is it hosted?

2013-01-14 Thread Joshua Ulrich
On Mon, Jan 14, 2013 at 2:29 PM, oliver wrote: > Hello, > > I saw Binaries, stable release-souzrces and daily snapshots of R, but > not something like a repository, visible for the public (like on githb for > example). > Go to http://www.r-project.org and click the "Developer Page" link in the le

Re: [Rd] scientific notation and comparison with character variable

2013-01-02 Thread Joshua Ulrich
1e-2) < 0.05 [1] TRUE > as.character(1e-4) < 0.05 [1] FALSE Best, -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com On Wed, Jan 2, 2013 at 12:38 PM, Tobias Verbeke wrote: > L.S. > > Is the following expected and/or documented? > >> 1e-2 < "0.05&

Re: [Rd] Anybody have a WABAC machine?

2012-08-24 Thread Joshua Ulrich
grep -E "packageStartupMessage|print0|sprintf" *NEWS You need *NEWS to ensure you search NEWS, ONEWS, and OONEWS. -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com On Fri, Aug 24, 2012 at 1:16 PM, Roebuck,Paul L wrote: > What version of R did

Re: [Rd] Suggestion for "Writing R Extensions"

2012-08-22 Thread Joshua Ulrich
On Wed, Aug 22, 2012 at 2:58 PM, Oliver Bandel wrote: > Hello, > > > Zitat von "Joshua Ulrich" (Wed, 22 Aug 2012 > 12:35:51 -0500) > > [...] > >> Would it make sense to add links and/or mention the relevant >> appendices (A and D) of "R Insta

[Rd] Suggestion for "Writing R Extensions"

2012-08-22 Thread Joshua Ulrich
require careful setup." Would it make sense to add links and/or mention the relevant appendices (A and D) of "R Installation and Administration"? Best, -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com __ R-de

Re: [Rd] Quiz: How to get a "named column" from a data frame

2012-08-22 Thread Joshua Ulrich
On Tue, Aug 21, 2012 at 2:34 PM, Duncan Murdoch wrote: > On 12-08-18 12:33 PM, Martin Maechler wrote: >>>>>>> >>>>>>> Joshua Ulrich >>>>>>> on Sat, 18 Aug 2012 10:16:09 -0500 writes: >> >> >> > I don

Re: [Rd] Quiz: How to get a "named column" from a data frame

2012-08-18 Thread Joshua Ulrich
I don't know if this is better, but it's the most obvious/shortest I could come up with. Transpose the data.frame column to a 'row' vector and drop the dimensions. R> identical(nv, drop(t(df))) [1] TRUE Best, -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | w

Re: [Rd] Reading many large files causes R to crash - Possible Bug in R 2.15.1 64-bit Ubuntu

2012-07-23 Thread Joshua Ulrich
the issue entirely. Your script will still "hang" on the BAC_0.csv file because as.character.POSIXt can take a long time. Better to just call format() directly (as I do in the attached file). If you have any follow-up questions, please send them to R-SIG-Finance. Best, -- Joshua Ulri

Re: [Rd] Reading many large files causes R to crash - Possible Bug in R 2.15.1 64-bit Ubuntu

2012-07-23 Thread Joshua Ulrich
Well, you still haven't convinced anyone but yourself that it's definitely an xts problem, since you have not provided any reproducible example... -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com On Mon, Jul 23, 2012 at 8:14 AM, David Terk wrote: >

Re: [Rd] Reading many large files causes R to crash - Possible Bug in R 2.15.1 64-bit Ubuntu

2012-07-23 Thread Joshua Ulrich
's truly an issue with xts/zoo. Best, -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com On Mon, Jul 23, 2012 at 12:41 AM, David Terk wrote: > Looks like the call to: > > dat.i <- to.period(dat.i, period=per, k=subper, name=NULL) > > If what is causi

Re: [Rd] Reading many large files causes R to crash - Possible Bug in R 2.15.1 64-bit Ubuntu

2012-07-22 Thread Joshua Ulrich
Cross-posted on Stack Overflow: http://stackoverflow.com/q/11596747/271616 -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com On Sun, Jul 22, 2012 at 2:54 PM, David Terk wrote: > I am reading several hundred files. Anywhere from 50k-400k in size. It > appear

Re: [Rd] problem in compililng c code using R CMD SHLIB

2012-06-06 Thread Joshua Ulrich
somebody knows >> what exactly the problem and its solution and favorable suggestions. > > There is no problem in what you posted - all you posted is merely a note from > cygwin that it prefers different path style, but it's perfectly ok and > doesn't affect anything

Re: [Rd] Patch to add Beta binomial distribution. Mentor needed!

2012-05-22 Thread Joshua Ulrich
On Tue, May 22, 2012 at 8:27 AM, Joan Maspons wrote: > Hello, > > 2012/5/22 Christophe Dutang > >> Dear Joan, >> >> If you want to contribute to R, you should write a package and submit it >> to CRAN. See http://cran.r-project.org/doc/manuals/R-exts.html >> > > It's necessary to develop a packag

[Rd] unlist crashes 32-bit R on WinXP when use.names=TRUE

2012-05-05 Thread Joshua Ulrich
forgot anything or if there's anything I can do to help. Best, -- Joshua Ulrich | FOSS Trading: www.fosstrading.com R/Finance 2012: Applied Finance with R www.RinFinance.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] url, readLines, source behind a proxy

2012-04-18 Thread Joshua Ulrich
", which describes how to use environment variables to set proxy information. Setting http_proxy='http://my.proxy.com/' was enough for me to get R CMD check to run successfully with the --as-cran flag. > Thanks. > Renaud > Best, -- Joshua Ulrich | FOSS Trading: www.fo

Re: [Rd] Smalltalk binding to R

2012-03-25 Thread Joshua Ulrich
uot;: http://rwiki.sciviews.org/doku.php?id=developers:projects:gsoc2012&s=gsoc which says you should have sent this email to the GSoC-R Google group. Please join and continue the discussion there. I have already cc'd the GSoC-R group. Best, -- Joshua Ulrich  |  FOSS Trading: www.fosstrad

Re: [Rd] How to install sqldf to R with version 2.10?

2012-03-17 Thread Joshua Ulrich
iting R Extensions" manual. http://cran.r-project.org/doc/manuals/R-exts.html HTH, -- Joshua Ulrich | FOSS Trading: www.fosstrading.com R/Finance 2012: Applied Finance with R www.RinFinance.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] problems with iconv

2011-12-14 Thread Joshua Ulrich
ext options.  I also > downloaded the more up-to-date cairo package. > I was referring to the instructions on the libiconv page: http://www.gnu.org/software/libiconv/ "On systems other than GNU/Linux, the iconv program will be internationalized only if GNU gettext has been built and i

Re: [Rd] problems with iconv

2011-12-13 Thread Joshua Ulrich
ryptic clue on how to get iconv to work or where to put it or it's > headers, also please let me know. > Did you take the steps required to resolve the circular dependency between libiconv and gettext? > One things for sure - you can't say I've not read the documentation! > > Roger > Best, -- Joshua Ulrich | FOSS Trading: www.fosstrading.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Please explain your workflow from R code -> package -> R code -> package

2011-09-10 Thread Joshua Ulrich
On Sat, Sep 10, 2011 at 11:23 AM, steven mosher wrote: > All I need now is a tool to go through the 4 packages I already > created without Roxygen and  spit out source files with the Roxygen > comments in them... > > really lazy. > > That's what Rd2roxygen does... Best,

Re: [Rd] Please explain your workflow from R code -> package -> R code -> package

2011-09-09 Thread Joshua Ulrich
Professor, Political Science > 1541 Lilac Lane, Room 504 > University of Kansas > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > Best, -- Joshua Ulrich | FOSS Trading: www.fosstrading.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Small bug in install.packages?

2011-06-28 Thread Joshua Ulrich
LC_COLLATE=English_United States.1252 [2] LC_CTYPE=English_United States.1252 [3] LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C [5] LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base -- Joshua Ulrich  |  FOSS Tr

Re: [Rd] median and data frames

2011-05-05 Thread Joshua Ulrich
sts makes people > think that median.data.frame() should too, > and then > >  var.data.frame() >   sd.data.frame() >  mad.data.frame() >  min.data.frame() >  max.data.frame() >  ... >  ... > > all just in order to *not* to have to know  sapply() > > > N

Re: [Rd] FW: [Rcpp-devel] Question on 5.6 Interfacing C++ code

2011-04-21 Thread Joshua Ulrich
Please, please, please read the documentation before sending more questions to the list. You also have the source code, so you can look at what "R CMD build" and "R CMD INSTALL" are doing. -- Joshua Ulrich  |  FOSS Trading: www.fosstrading.com On Thu, Apr 21, 2011 at 1

Re: [Rd] duplicates() function

2011-04-08 Thread Joshua Ulrich
On Fri, Apr 8, 2011 at 10:15 AM, Duncan Murdoch wrote: > On 08/04/2011 11:08 AM, Joshua Ulrich wrote: >> >> How about: >> >> y<- rep(NA,length(x)) >> y[duplicated(x)]<- match(x[duplicated(x)] ,x) > > That's a nice solution for vectors.  Unfortu

Re: [Rd] duplicates() function

2011-04-08 Thread Joshua Ulrich
How about: y <- rep(NA,length(x)) y[duplicated(x)] <- match(x[duplicated(x)] ,x) -- Joshua Ulrich  |  FOSS Trading: www.fosstrading.com On Fri, Apr 8, 2011 at 9:59 AM, Duncan Murdoch wrote: > I need a function which is similar to duplicated(), but instead of returning > TRUE/FA

[Rd] as.POSIXlt.factor and '...'

2010-12-29 Thread Joshua Ulrich
OSIXct(factor(myDateStr), format=myFormat) It seems to be caused by '...' not being passed in as.POSIXlt.factor. Would it make sense to change the function to pass '...'? I.e. from: as.POSIXlt.factor <- function(x, ...) as.POSIXlt(as.character(x)) to: as.POSIXlt.factor <

Re: [Rd] calling browser on error

2010-10-15 Thread Joshua Ulrich
I believe options(error=recover) will do what you want. -- Joshua Ulrich  |  FOSS Trading: www.fosstrading.com On Fri, Oct 15, 2010 at 1:27 PM, Vadim Ogranovich wrote: > Dear R-developers, > > I am trying to figure out a way to call browser() when an error occur, and > naturall

Re: [Rd] R-2.10.1 : There is no make file. (PR#14192)

2010-01-22 Thread Joshua Ulrich
On Fri, Jan 22, 2010 at 8:35 AM, wrote: > Full_Name: N. Srinivasan > Version: R-2.10.1 > OS: Ubuntu 9.10, 64 bits > Submission from: (NULL) (68.110.238.141) > > > ,/configure runs fine. > > But there is no make file mentioned in the INSTALL file. > > Usually this kind of information is provided i

Re: [Rd] Embed R, and provide a function to user scripts

2009-08-13 Thread Joshua Ulrich
Hi Saptarshi, See ?SHLIB and ?dyn.load. HTH, Josh -- http://www.fosstrading.com On Thu, Aug 13, 2009 at 9:01 PM, Saptarshi Guha wrote: > Essentially I'd like to load the C function into  the load table > After that, I can create an R function > rboo=function(x) .Call("boo",x) > > then user scr

Re: [Rd] rJava fails compilation on R-2.9.1 but not R-2.7.1 on Debian Lenny

2009-07-15 Thread Joshua Ulrich
Hi Mark, The first thing that jumps out to me is that 2.7.1 compiles JRI, while 2.9.1 does not (for some reason, autodetect decides not to compile). HTH, Josh -- http://www.fosstrading.com On Wed, Jul 15, 2009 at 1:46 PM, Mark Kimpel wrote: > I have been futzing around for days tying to get rJ

Re: [Rd] simple add error (PR#13699)

2009-05-13 Thread Joshua Ulrich
Gostan, This is not a bug. You're asking for 20 decimal digits of precision, which is impossible with double-precision floating point arithmetic. http://fr.wikipedia.org/wiki/Virgule_flottante Best, Josh -- http://www.fosstrading.com On Wed, May 13, 2009 at 7:35 AM, wrote: > Full_Name: Gos