Re: [Rd] [External] Possible ALTREP bug

2021-06-17 Thread luke-tierney
;>      package >>>>> that demonstrates this: >>>      https://github.com/gaborcsardi/redfish >>>>> >>>>> The R callback in this package calls >>>      `loadNamespace("Matrix")`, but >&

Re: [Rd] [External] SET_COMPLEX_ELT and SET_RAW_ELT missing from Rinternals.h

2021-06-28 Thread luke-tierney
these functions to be obscured in the first place? Best regards, Konrad, [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Luke Tierney Ralph E. Wareham Professor of Mathema

Re: [Rd] [External] ALTREP ALTINTEGER_SUM/MIN/MAX Return Value and Behavior

2021-06-29 Thread luke-tierney
R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Luke Tierney Ralph E. Wareham Professor of Mathematical Sciences University of Iowa Phone: 319-335-3386 Department of Statistics andFax: 319-335-3017 Actuari

Re: [Rd] [External] Re: ALTREP ALTINTEGER_SUM/MIN/MAX Return Value and Behavior

2021-06-29 Thread luke-tierney
___ 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 -- Luke Tierney Ral

Re: [Rd] [External] Re: ALTREP ALTINTEGER_SUM/MIN/MAX Return Value and Behavior

2021-06-29 Thread luke-tierney
___ 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 -- Luke Tierney Ralph E.

Re: [Rd] [External] SET_COMPLEX_ELT and SET_RAW_ELT missing from Rinternals.h

2021-07-02 Thread luke-tierney
__ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > -- Luke Tierney Ralph E. Wareham Professor of Mathematical Sciences University of Iowa                  Phon

Re: [Rd] [External] Clearing attributes returns ALTREP, serialize still saves them

2021-07-03 Thread luke-tierney
ing along. Is there a plan to resolve this? Any suggestions for maybe a C++ workaround until then? Or an alternative performant serialization solution? Best, -- Zafer [[alternative HTML version deleted]] ______ R-devel@r-project.org mailing

[Rd] changes in some header files

2021-07-20 Thread luke-tierney
review what you are doing and to try to revise your code to work within the API. If you feel there are features missing in the API then you can suggest additions on this mailing list or bugzilla. Best, luke -- Luke Tierney Ralph E. Wareham Professor of Mathematical Sciences University of Iowa

Re: [Rd] [External] Re: [R-pkg-devel] Tracking down inconsistent errors and notes across operating systems

2021-07-22 Thread luke-tierney
Iñaki Úcar ______ r-package-de...@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel -- Luke Tierney Ralph E. Wareham Professor of Mathematical Sciences University of Iowa Phone:

Re: [Rd] [External] problem with pipes, textConnection and read.dcf

2021-08-10 Thread luke-tierney
ct' must deparse to a single character string That is this works: L |> # gsub(pattern = " ", replacement = "") |> gsub(pattern = " ", replacement = "") |> textConnection() |> read.dcf() ## Variable Length ## [1,] &quo

Re: [Rd] [External] difference of m1 <- lm(f, data) and update(m1, formula=f)

2021-08-11 Thread luke-tierney
ault put the expression that would produce the formula into the call (i.e. stripped out the two attributes). But I do not know if there is logic in base R code, never mind package code, that takes advantage of the attributes on the formula expression in if they are found. formula() looks in

Re: [Rd] [External] svd For Large Matrix

2021-08-13 Thread luke-tierney
iling list https://stat.ethz.ch/mailman/listinfo/r-devel -- Luke Tierney Ralph E. Wareham Professor of Mathematical Sciences University of Iowa Phone: 319-335-3386 Department of Statistics andFax: 319-335-3017 Actuarial Science 24

Re: [Rd] [External] Re: JIT compiler does not compile closures with custom environments

2021-08-18 Thread luke-tierney
the default is to byte compile on source install, or explicitly calling compiler::cmpfun are options. Best, luke Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Luke Tierney Ralph

Re: [Rd] [External] Re: Update on rtools4 and ucrt support

2021-08-23 Thread luke-tierney
based tool chain may be a better investment of time. Best, luke __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Luke Tierney Ralph E. Wareham Professor of Mathematical Sciences University of Iowa

Re: [Rd] [External] Re: Is it a good choice to increase the NCONNECTION value?

2021-08-24 Thread luke-tierney
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 -- Luke Tierney Ralph E. Wareham Professor of Mathematical Sciences University

Re: [Rd] [External] Re: Workaround very slow NAN/Infinities arithmetic?

2021-09-30 Thread luke-tierney
ailman/listinfo/r-devel __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Luke Tierney Ralph E. Wareham Professor of Mathematical Sciences University of Iowa Phone: 319-335-3386 Departmen

Re: [Rd] [External] GC: improving the marking performance for STRSXPs

2021-10-18 Thread luke-tierney
nd I am not sure if there might be situations in which the assumptions are violated, even though SET_STRING_ELT() and installAttrib() do enforce them. Best regards, Andreas -- Luke Tierney Ralph E. Wareham Professor of Mathematical Sciences University of Iowa Phone:

Re: [Rd] [External] Re: Wrong number of names?

2021-11-02 Thread luke-tierney
cases, and / or do such validity checks already during serialization { <-> saveRDS() here } ? .. Such questions then really are for those who understand more than me about (de)serialization in R, its performance bottlenecks etc. Given the speed impact we should probably have such checks *optional*

Re: [Rd] [External] GC: speeding-up the CHARSXP cache maintenance, 2nd try

2021-11-04 Thread luke-tierney
s, Andreas P.S. I had a hard time to get the indentation right in the patch due the mix of tabs and spaces. Sorry, if I screwed this up. -- Luke Tierney Ralph E. Wareham Professor of Mathematical Sciences University of Iowa Phone: 319-335-3386 Department of Statis

Re: [Rd] [External] DOCS: Exactly when, in the signaling process, is option 'warn' applied?

2021-11-18 Thread luke-tierney
b.com/wch/r-source/blob/0a31ab2d1df247a4289efca5a235dc45b511d04a/src/library/utils/R/objects.R#L402-L405 [3] https://cran.r-project.org/doc/manuals/R-lang.html#warning __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] [External] Status of '=>'

2021-12-20 Thread luke-tierney
able but not really documented or enabled? Clarifications welcome, otherwise 'time will tell' as usual. Thanks, Dirk -- Luke Tierney Ralph E. Wareham Professor of Mathematical Sciences University of Iowa Phone: 319-335-3386 Department of Statistics and

Re: [Rd] [External] Re: hashtab address arg

2021-12-22 Thread luke-tierney
stly through dependencies on a few packages). (Perhaps this topic could be a better fit for R-help.) R-devel is the right place for this. Best, luke -- Luke Tierney Ralph E. Wareham Professor of Mathematical Sciences University of Iowa Phone: 319-335-3386 Departm

Re: [Rd] [External] assignment

2021-12-27 Thread luke-tierney
in https://bugs.r-project.org/show_bug.cgi?id=18269 Best, luke -- Luke Tierney Ralph E. Wareham Professor of Mathematical Sciences University of Iowa Phone: 319-335-3386 Department of Statistics andFax: 319-335-3017 Actuarial Science 241 Schaef

Re: [Rd] [External] Time to drop globalenv() from searches in package code?

2022-09-17 Thread luke-tierney
On Sat, 17 Sep 2022, Kurt Hornik wrote: luke-tierney writes: On Thu, 15 Sep 2022, Duncan Murdoch wrote: The author of this Stackoverflow question https://stackoverflow.com/q/73722496/2554330 got confused because a typo in his code didn't trigger an error in normal circumstances, but i

Re: [Rd] [External] Re: Calling a replacement function in a custom environment

2023-08-27 Thread luke-tierney
nction by `$`-subsetting the defining environment, as shown above? Cheers, Konrad __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Luke Tierney Ralph E. Wareham Professor of Mathematical Sciences University of

Re: [Rd] [External] On PRINTNAME() encoding, EncodeChar(), and being painted into a corner

2023-09-22 Thread luke-tierney
names while constructing error messages? Other languages (like Lua or SQLite) provide a special printf specifier (typically %q) to create quoted/escaped string representations, but we're not yet at the point of providing a C-level printf implementation. Not clear it is worth it. But the si

[Rd] UseMethod forwarding of local variables

2023-10-20 Thread luke-tierney
ese fail with the environment set to 'error' but not to 'none', so they are getting a value from somewhere else that may or may not be right. Affected as revdeps of optmatch: - cobalt - htetree - jointVIP - MatchIt - PCAmatchR - rcbalance - rcbsubset - RItools - stratamat

Re: [Rd] Odd behavior of symbol objects with classes/attributes

2013-06-17 Thread luke-tierney
;bar" str(y) # length 1 foo # - attr(*, "a")= chr "bar" str(y) # length 1 foo # - attr(*, "a")= chr "bar" str(quote(foo)) # length 1 foo # - attr(*, "a")= chr "bar" -Winston __ R-devel@r-project.o

Re: [Rd] missing PROTECT() in src/main/arithmetic.c

2013-07-13 Thread luke-tierney
s, H. -- Luke Tierney Chair, Statistics and Actuarial Science Ralph E. Wareham Professor of Mathematical Sciences University of Iowa Phone: 319-335-3386 Department of Statistics andFax: 319-335-3017 Actuarial Science 241 Schaeffer

Re: [Rd] Multiple return values / bug in rpart?

2013-08-13 Thread luke-tierney
nstruction with some students that can use this approach to identify which lines are never seen while profiling the test code. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Luke Tierney

Re: [Rd] Assigning empty symbol to variable.

2013-10-21 Thread luke-tierney
R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Luke Tierney Chair, Statistics and Actuarial Science Ralph E. Wareham Professor of Mathematical Sciences University of Iowa Phone: 319-335-3386 Department of S

Re: [Rd] getting environment from "top" promise

2014-02-14 Thread luke-tierney
rsion 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 -- Luke Tierney Chair

Re: [Rd] Historical NA question

2014-05-03 Thread luke-tierney
Hint: Ross will be 60 this year. luke On Sat, 3 May 2014, Hadley Wickham wrote: Can anyone tell me what the significance of 1954 is in R's NA? Thanks! Hadley -- Luke Tierney Chair, Statistics and Actuarial Science Ralph E. Wareham Professor of Mathematical Sciences University of

Re: [Rd] precedence (was 'historical NA question')

2014-05-07 Thread luke-tierney
did lead to some head scratching after plotting exp(-x^2) :-) luke Terry Therneau __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Luke Tierney Chair, Statistics and Actuarial Science Ralph E. Wareham Professor of

Re: [Rd] `*tmp*`

2014-08-14 Thread luke-tierney
42 +`*tmp*`[1]<-7 # I would expect this one to fail + })() Error in cmpfun(function() { : object '*tmp*' not found luke Confused greetings, Michael -- Luke Tierney Chair, Statistics and Actuarial Science Ralph E. Wareham Professor of Mathematical Sciences University of Iowa

Re: [Rd] Is using devtools::release no longer allowed?

2014-08-21 Thread luke-tierney
tools guarantee: "if because of a bug in devtools a member of R-core gets angry with you, I will send you a handwritten apology note. Just forward me the email and your address, and I'll get a card in the mail." Hadley I think I'm seeing the Rcaptcha package on the horiz

Re: [Rd] `*tmp*`

2014-08-26 Thread luke-tierney
e evaluation). Addressing this is hard given the lazy evaluation/nonstandard eval combination, but it would be nice to see if we can do better. I keep meaning to write up notes on my current understanding of the assignment mechanism. I may get to it in a month or two; if i do it will appear i

Re: [Rd] RFC: getifexists() {was [Bug 16065] "exists" ...}

2015-01-08 Thread luke-tierney
; Examples: > > ## Define a substitute function if necessary: > if(!exists("some.fun", mode = "function")) >some.fun <- function(x) { cat("some.fun(x)\n"); x } > search() > exists("ls", 2) # true even though ls is in

Re: [Rd] Cost of garbage collection seems excessive

2015-01-11 Thread luke-tierney
er than from the command line? Thanks! --nate __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Luke Tierney Ralph E. Wareham Professor of Mathematical Sciences University of Iowa Phone: 319-335-3386 Department of Statis

Re: [Rd] Closing over Garbage

2015-01-15 Thread luke-tierney
} } Best, luke Thanks, Christian __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Luke Tierney Ralph E. Wareham Professor of Mathematical Sciences University of Iowa Phone: 319-335-3386 Department of Statistics and

Re: [Rd] default min-v/nsize parameters

2015-01-17 Thread luke-tierney
user would want 900 MB of N and 100 MB of V as the trigger (corresponding to --min-vsize=100M --min-nsize=16M). Thoughts? [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-d

Re: [Rd] :: and ::: as .Primitives?

2015-01-22 Thread luke-tierney
the matter. Regards, Pete Peter M. Haverty, Ph.D. Genentech, Inc. phave...@gene.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Luke Tierney Ralph E. Wareham Professor of Mathematical Sc

Re: [Rd] :: and ::: as .Primitives?

2015-01-23 Thread luke-tierney
I'd be very interested to hear your thoughts on the matter. Regards, Pete Peter M. Haverty, Ph.D. Genentech, Inc. phave...@gene.com ______ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -

Re: [Rd] :: and ::: as .Primitives?

2015-01-23 Thread luke-tierney
tter. Regards, Pete Peter M. Haverty, Ph.D. Genentech, Inc. phave...@gene.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Luke Tierney Ralph E. Wareham Professor of Mathematical Sciences Universi

Re: [Rd] Different serialization of functions in interactive vs. batch mode

2015-02-18 Thread luke-tierney
R version 3.1.0 (2014-04-10) Platform: x86_64-unknown-linux-gnu (64-bit) locale: [1] C attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] digest_0.6.4 __ R-devel@r-project.org mailing list https://stat.ethz.

Re: [Rd] Different serialization of functions in interactive vs. batch mode

2015-02-18 Thread luke-tierney
00 fe 00 [726] 00 00 fe 00 00 00 fe sessionInfo() R version 3.1.0 (2014-04-10) Platform: x86_64-unknown-linux-gnu (64-bit) locale: [1] C attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] digest_0.6.4 ___

Re: [Rd] Recycling memory with a small free list

2015-02-19 Thread luke-tierney
;d like to explore before going live. Releasing large (malloc'ed) objects with reference counts that hit zero back to the malloc system is probably not to hard to get right. Holding onto these objects in a free list might be worth looking into, but as Radford suggests a good malloc may be goo

Re: [Rd] iterated lapply

2015-02-24 Thread luke-tierney
is certainly not desired behaviour, except in so far as it allows a slight savings in time (which is minor, given the time that the function call itself will take). Radford Neal __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinf

Re: [Rd] iterated lapply

2015-02-26 Thread luke-tierney
ly not desired behaviour, except in so far as it allows a slight savings in time (which is minor, given the time that the function call itself will take).   Radford Neal _______

Re: [Rd] iterated lapply

2015-03-01 Thread luke-tierney
Radford Neal ______ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Luke Tierney Ralph E. Wareham Professor of Mathematical Sciences University of Iowa Phone: 319-335-3386 Department of Statis

Re: [Rd] iterated lapply

2015-03-01 Thread luke-tierney
the MoreArgs argument that would be nice to sort out at the same time if possible, as there are also a few more instances of this in several places. I will try to look into this more in the next week or so. Best, luke Radford Neal -- Luke Tierney Ralph E. Wareham Professor of Math

Re: [Rd] iterated lapply

2015-03-01 Thread luke-tierney
- this takes local() out of the issue: f <- function(x, ...) { + g <- function() + log(x, ...) + g() + } f(1) Error in log(x, ...) : non-numeric argument to mathematical function It's not following the ... properly for some reason. Best, luke -- Luke Tierney

Re: [Rd] iterated lapply

2015-03-01 Thread luke-tierney
for some reason. But no longer a problem in R-devel -- maybe there is a change worth back-porting to R-patched. Best, luke luke -- Luke Tierney Ralph E. Wareham Professor of Mathematical Sciences University of Iowa Phone: 319-335-3386 Department of Statistics

Re: [Rd] Segfault with match()

2015-03-30 Thread luke-tierney
ample, but... data(housing, package ="MASS") x <- housing$Type + housing$Sat match(x, unique(x)) Hadley -- http://had.co.nz/ ______ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Luke Tierney Ralph E. Wareham Pro

Re: [Rd] RObjectTables freezes in R 3.2.0 RC on 32bit systems

2015-04-21 Thread luke-tierney
? __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Luke Tierney Ralph E. Wareham Professor of Mathematical Sciences University of Iowa Phone: 319-335-3386 Department of Statistics and

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

2015-05-05 Thread luke-tierney
ere such attributes could cause trouble. -pd -- Luke Tierney Ralph E. Wareham Professor of Mathematical Sciences University of Iowa Phone: 319-335-3386 Department of Statistics andFax: 319-335-3017 Actuarial Science 241 Schaeffer Hall

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

2015-05-16 Thread luke-tierney
here has been the c(.) in there. You can always make code faster if you write the code so it only has to work in one special case .. and work there very fast. > Example below > > > library(microbenchmark) __________ R-devel@r-project.org mailing list https://stat.eth

Re: [Rd] Confused about NAMED

2011-11-24 Thread luke-tierney
14920 09 CHARSXP g0c1 [gp=0x20] "bar" Matthew -- Peter Dalgaard, Professor Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Email: pd@cbs.dk Priv: pda...@gmail.com __

Re: [Rd] serialize/unserialize vector improvement

2011-12-05 Thread luke-tierney
) for(i in 1:10) { print(system.time(serialize(input, NULL))) } for(i in 1:10) { print(system.time(unserialize(output))) } __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Luke Tierney Chair, Statistics and Actuarial S

Re: [Rd] Ignore user interrupts

2012-01-27 Thread luke-tierney
te-- Environmental Resources Engineering Humboldt State University -- View this message in context: http://r.789695.n4.nabble.com/Ignore-user-interrupts-tp4321252p4331653.html Sent from the R devel mailing list archive at Nabble.com. __ R-devel@r-pr

Re: [Rd] hash table clean-up

2012-03-04 Thread luke-tierney
c myself, but C is not my area of expertise. So if you beat me to it, please let me know. Thank you, Florent. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Luke Tierney Chair, Statistics and Actuarial Scie

Re: [Rd] enableJIT(3) with Primitives

2012-03-20 Thread luke-tierney
lman/listinfo/r-devel -- Luke Tierney Chair, Statistics and Actuarial Science Ralph E. Wareham Professor of Mathematical Sciences University of Iowa Phone: 319-335-3386 Department of Statistics andFax: 319-335-3017 Actuarial Science 241

Re: [Rd] enableJIT() prohibits usual R debugging

2012-03-21 Thread luke-tierney
aphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] tools_2.14.2 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Luke Tierney Chair, Statistics and Actuarial S

Re: [Rd] enableJIT() prohibits usual R debugging

2012-03-21 Thread luke-tierney
inux-gnu status Under development (unstable) major 2 minor 16.0 year 2012 month 03 day20 svn rev58793 language R version.string R Under development (unstable) (2012-03-20 r58793) -- Luke Tierney Chair, Statistics and Actuarial Sci

Re: [Rd] enableJIT() and internal R completions (was: [ESS-bugs] ess-mode 12.03; ess hangs emacs)

2012-03-21 Thread luke-tierney
e/sds/src/emacs/trunk/src/keyboard.c:822 > #49 0x0040fbad in main (argc=1, argv=) at /home/sds/src/emacs/trunk/src/emacs.c:1715 > Lisp Backtrace: > "process-get" (0xb0b8) > "ess-wait-for-process" (0xb278) > "ess-command" (0xb448)

Re: [Rd] [R] how to remove the 'promise' attribute of an R object (.Random.seed)?

2012-05-23 Thread luke-tierney
luke Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA __ r-h...@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read th

Re: [Rd] 7 arguments passed to .Internal(identical) which requires 6

2012-06-06 Thread luke-tierney
-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Luke Tierney Chair, Statistics and Actuarial Science Ralph E. Wareham Professor of Mathematical Sciences University of Iowa Phone: 319-335-3386 Department of Statistics and

Re: [Rd] On RObjectTables

2012-07-20 Thread luke-tierney
ually unsupported and might be removed at some point, I should probably not invest in it. [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Luke Tierney Chair, Statistic

Re: [Rd] On RObjectTables

2012-07-24 Thread luke-tierney
vest in it. [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Luke Tierney Chair, Statistics and Actuarial Science Ralph E. Wareham Professor of Mathematical Sciences

Re: [Rd] Capturing environment associated with a promise

2012-10-08 Thread luke-tierney
tally evaluating it? Thanks! Hadley -- Luke Tierney Chair, Statistics and Actuarial Science Ralph E. Wareham Professor of Mathematical Sciences University of Iowa Phone: 319-335-3386 Department of Statistics andFax: 319-335-3017 Actu

Re: [Rd] suppress *specific* warnings?

2012-10-22 Thread luke-tierney
} }) } suppressWarnings2(sqrt(-1)) suppressWarnings2(sqrt(-1),"abc") It seems to me I'd like to have a restart option that just returns to the point where the warning was caught, *without* muffling warnings ... ? But I don't quite understand how to set one up ...

Re: [Rd] Bug in list subset assignment due to NAMED optimization

2013-01-09 Thread luke-tierney
ix but I want to think it thorugh a bit more before committing. Best, luke Justin [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Luke Tierney Chair, Stati

Re: [Rd] Bug in list subset assignment due to NAMED optimization

2013-01-17 Thread luke-tierney
d do_subassign3_dflt that creates a duplicate of the LHS if the LHS & RHS are the same object? Justin [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Luke Tierney

Re: [Rd] stopping finalizers

2013-02-14 Thread luke-tierney
be able to prevent finalizers from running during a particular code block, but I can't see any way to do it. Suggestions? -thomas -- Luke Tierney Chair, Statistics and Actuarial Science Ralph E. Wareham Professor of Mathematical Sciences University of Iowa Phone:

Re: [Rd] quote() vs quote(expr=)

2013-02-18 Thread luke-tierney
arguments passed to 'quote' which requires 1 str(quote(expr = )) # symbol I bring this up because this seems like the most natural way of capturing the "missing" symbol with pure R code, compared to substitute() or bquote() or formals(plot)$x Hadley -- Luke Tierney Chair,

Re: [Rd] quote() vs quote(expr=)

2013-02-18 Thread luke-tierney
ms like the most natural way of capturing the "missing" symbol with pure R code, compared to substitute() or bquote() or formals(plot)$x Hadley -- Luke Tierney Chair, Statistics and Actuarial Science Ralph E. Wareham Professor of Mathematical Sciences University of Iowa P

Re: [Rd] Missing PROTECT in mkPRIMSXP ?

2013-03-03 Thread luke-tierney
t, result); } else if (TYPEOF(result) != type) error("requested primitive type is not consistent with cached value"); Martin -- Luke Tierney Chair, Statistics and Actuarial Science Ralph E. Wareham Professor of Mathematical Sciences University of Iowa Phone

Re: [Rd] Bugs due to naive copying of list elements

2013-03-12 Thread luke-tierney
Similar bugs exist in eapply, rapply, and vapply. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Luke Tierney Chair, Statistics and Actuarial Science Ralph E. Wareham Professor of Mathematical Scienc

Re: [Rd] R 3.0.0 memory use

2013-04-14 Thread luke-tierney
ry-profiling --with-readline=no make make install __________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Luke Tierney Chair, Statistics and Actuarial Science Ralph E. Wareham Professor of Mathematical Sciences University

Re: [Rd] Lubuntu 13.04 raring ringtail: Problems installing pnmath_0.0-4

2013-04-27 Thread luke-tierney
istinfo/r-devel -- Luke Tierney Chair, Statistics and Actuarial Science Ralph E. Wareham Professor of Mathematical Sciences University of Iowa Phone: 319-335-3386 Department of Statistics andFax: 319-335-3017 Actuarial Science 241

Re: [Rd] serialize() takes too long when serializing to a raw vector

2007-01-25 Thread Luke Tierney
using Rmpi and tracked it down > to .mpi.serialize, which in turn calls base::serialize. From Rmpi: > > .mpi.serialize <- function (obj) > { >trans_obj = serialize(obj, NULL) >if (getRversion() >= "2.4.0") > return(trans_obj) >else return(cha

Re: [Rd] "try"ing to understand condition handling

2007-02-20 Thread Luke Tierney
fy any of this? >>> >>> P.S. Is there any mechanism that would allow one to trap an interrupt, >>> like a ctl-C, so that if the user hit ctl-C some state would be >>> changed but execution would then continue where it was? I have in >>> mind the ctl-C handler setting a "time to finish

Re: [Rd] "try"ing to understand condition handling

2007-02-20 Thread Luke Tierney
he ctl-C handler setting a "time to finish up" flag which the > maini code checks from time to time. > > Thanks. > > Ross Boylan > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo

Re: [Rd] "try"ing to understand condition handling

2007-02-20 Thread Luke Tierney
Perhaps you could provide a more explicit reference? > > Hadley > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > -- Luke Tierney Chair, Statistics and Actuarial Science Ralph E. Wareh

Re: [Rd] "try"ing to understand condition handling

2007-02-20 Thread Luke Tierney
d Brian). The note is entitled "A Prototype of a > Condition System for R" - can we assume the actual implementation is > as described? > > Thanks, > > Hadley > -- Luke Tierney Chair, Statistics and Actuarial Science Ralph E. Wareham Professor of Mathematical Scienc

Re: [Rd] "try"ing to understand condition handling (interrupts)

2007-02-20 Thread Luke Tierney
On Tue, 20 Feb 2007, Ross Boylan wrote: > [resequencing and deleting for clarity] > On Tue, Feb 20, 2007 at 01:15:25PM -0600, Luke Tierney wrote: >> On Tue, 20 Feb 2007, Ross Boylan wrote: >>>>> P.S. Is there any mechanism that would allow one to trap an interrupt, >

Re: [Rd] "try"ing to understand condition handling

2007-02-20 Thread Luke Tierney
; > On Tue, Feb 20, 2007 at 01:40:11PM -0600, Luke Tierney wrote: >> On Mon, 19 Feb 2007, Ross Boylan wrote: >> >>> I'm confused by the page documenting tryCatch and friends. >>> >>> I think it describes 3 separate mechanisms: tryCatch (in which co

Re: [Rd] Checking for user interrupt in a .C() call without without triggering a non-local exit.

2007-02-27 Thread Luke Tierney
ues is that while checking for interrupts is cheap on standard Unix setups where interrupts arrive as signals, it isn't in GUI setups where event processing is needed to detect whether a user interrupt action has occurred (and that checking could cause errors and non-local exits). Best, luke

Re: [Rd] R/C++/memory leaks

2007-02-27 Thread Luke Tierney
much. It is principle possible to build something around R_ToplevelExec, but that is not at this point part of the public API and so is subject to change. We might consider providing a variant of R_CheckInterrupts that either just checks or that executes cleanup code sometime after 2.5 is re

Re: [Rd] R/C++/memory leaks

2007-02-27 Thread Luke Tierney
On Tue, 27 Feb 2007, Ernest Turro wrote: > > On 27 Feb 2007, at 17:45, Luke Tierney wrote: > >> On Tue, 27 Feb 2007, Ernest Turro wrote: >> >>> Hi Ross, >>> >>> On 26 Feb 2007, at 22:34, Ross Boylan wrote: >>> >>>> On Mon,

Re: [Rd] Small inconsistency in serialize() between R versions and implications on digest()

2007-03-08 Thread Luke Tierney
>> about the R version or similar? The following poor mans test says >> that is the only difference: >> >> On all R versions, the following gives identical results: >> >>> raw <- serialize(1:1e4, connection=NULL, ascii=TRUE) >>> raw <- as.integer(raw[-c(8:10)]) >>> su

Re: [Rd] Small inconsistency in serialize() between R versions and implications on digest()

2007-03-08 Thread Luke Tierney
On Fri, 9 Mar 2007, Paul Murrell wrote: > Hi > > > Luke Tierney wrote: >> On Wed, 7 Mar 2007, Henrik Bengtsson wrote: >> >>> To follow up, I went ahead and generated "random" object to scan for a >>> common header for a given R version, and it

Re: [Rd] cbind() & rbind() for S4 objects -- 'Matrix' package changes

2007-03-20 Thread Luke Tierney
d and base::rbind support S4 dispatch via cbind2/rbind2 (assuming this can be done efficiently) then there may be some merit to 2) to minimize the need for code rewriting. It might be worth experimenting with having .Internal(cbind(...)) check its arguments and call methods:::cbind if (Methods is loaded

Re: [Rd] [R] can't load just saved R object "ReadItem: unknown type 65"

2007-03-23 Thread Luke Tierney
t; "1.7.4" "1.9.21" "0.8-0" "1.6-0" > GOstats CategoryMatrix latticegenefilter > "2.1.13" "2.1.20" "0.9975-11" "0.14-16" "1.13.8" >

Re: [Rd] Exchange of information between functions aside from argument/return-value interface

2007-04-04 Thread Luke Tierney
ed-point type > algorithm. > To determine b according to a certain criterium, moreover, myH() evaluates > a function H0 in b, the zero of which will be the "optimal" b. > > So to use notmyG()=uniroot() as zero-finder the return value of myH() > should be H0(b), while my

Re: [Rd] Exchange of information between functions aside from argument/return-value interface

2007-04-04 Thread Luke Tierney
rnal implementation, the enclosing environment of the environment of myH is the frame of the call to myF that created myH.] Best, luke THis is exactly the pro > > Thanks for your help > Peter > > > -- Luke Tierney Chair, Statistics and Actuarial Science Ralph E. Wareham Professor of

Re: [Rd] wishlist: additional argument in R_tryEval (Rinternals.h)

2007-04-06 Thread Luke Tierney
airly easy to add another argument, similar to > ErrorOccurred, that is set to the visibility flag before returning. Is > this something that could be considered for addition in R-devel? A > possible patch for R/trunk is attached. Mac-GUI/REngine/REngine.m will > also need a patch, but I

Re: [Rd] segmentation fault

2007-04-07 Thread Luke Tierney
-03-31 r41078) > x86_64-apple-darwin8.9.1 > > locale: > C > > attached base packages: > [1] "stats" "graphics" "grDevices" "utils" "datasets" > "methods" > [7] "base" > > __

Re: [Rd] R CMD build fails with try(stop()) in vignette

2007-04-11 Thread Luke Tierney
E=en_US;LC_COLLATE=en_US;LC_MONETARY=en_US;LC_MESSAGES=en_US;LC_PAPER=en_US;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US;LC_IDENTIFICATION=C > > attached base packages: > [1] "stats" "graphics" "grDevices" "utils" "dat

Re: [Rd] R CMD build fails with try(stop()) in vignette

2007-04-12 Thread Luke Tierney
On Thu, 12 Apr 2007, Friedrich Leisch wrote: >>>>>> On Wed, 11 Apr 2007 17:28:31 -0500 (CDT), >>>>>> Luke Tierney (LT) wrote: > > > It would appear that printing the error message to stderr() is what is > > causing the build to fail; replace &

<    1   2   3   4   5   >