[Rd] openNLP Segmentation Fault (PR#13986)

2009-10-06 Thread michael
Full_Name: Michael Olschimke Version: 2.9 OS: Ubuntu 8.04 TLS Submission from: (NULL) (188.96.220.32) When using openNLP (0.0-7) with rJava (0.7-0) with java-6-sun-1.6.0.07 on Ubuntu 8.04 TLS 32 bit I get the following error message (see below) when calling tagPOS. I have installed the packages

[Rd] build packages with vignettes in Windows

2008-04-29 Thread Michael
oaded from CRAN. Those without inst/doc directory worked fine and those who do have it didn't. I'm using a fresh install of R-2.7.0 and Rtools-2.7. Any clue of what was wrong with my setup? Thanks, Michael __ R-devel@r-project.org mailing

Re: [Rd] build packages with vignettes in Windows

2008-04-29 Thread Michael
On 29 Apr 2008, Duncan Murdoch wrote: > On 29/04/2008 12:54 PM, Michael wrote: > > I've been trying to build a Windows binary of a package of mine without > > success. It seems that the files under inst/doc throw the script off. > > > > I am using t

Re: [Rd] build packages with vignettes in Windows

2008-04-30 Thread Michael
ts) without restarting, for new CMD processes started afterwards. Michael __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] variable scope in update(): bug or feature?

2006-12-21 Thread Michael
g or a deliberate feature? Thanks, Michael __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] variable scope in update(): bug or feature?

2006-12-22 Thread Michael
8 DF, p-value: 0.001053 This is R 2.4.1 on Mac OS X 10.4.8. > - use R-help. This is really a question about R. I think this could be a bug (at least it is not doing what I expected) so I emailed R-devel. Michael __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] variable scope in update(): bug or feature?

2006-12-22 Thread Michael
I only wanted to evaluate the old model with old data but sans the z variable. Would it be useful to have an option in update() not to update the data (i.e., behaves more like drop1())? Michael __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] density() fails if x contains Inf or -Inf (PR#8033)

2005-07-25 Thread michael . beer
Full_Name: Michael Beer Version: 2.1.0 and 2.1.1 OS: linux-gnu and mingw32 Submission from: (NULL) (134.21.49.141) The command "density(c(0.5,0.6,Inf,0.7))" fails saying "Wrong type for argument 2 in call to massdist". This problem can be resolved by replacing "nx = n

[Rd] strptime problem for 2004-10-03 02:00:00

2005-10-24 Thread Michael Sumner
Hello, I at first thought this was a system or locale issue, but since it occurs on both Windows and Linux and only for 2004 (AFAIK) I report it. I have a problem with as.POSIXct for the hour between "2004-10-03 02:00:00 GMT" and "2004-10-03 02:59:59 GMT". In short, the 2 AM (GMT) hour in 2004

Re: [Rd] strptime problem for 2004-10-03 02:00:00

2005-10-26 Thread Michael Sumner
---- Message: 16 Date: Tue, 25 Oct 2005 21:33:54 +0100 (BST) From: Prof Brian Ripley <[EMAIL PROTECTED]> Subject: Re: [Rd] strptime problem for 2004-10-03 02:00:00 To: Michael Sumner <[EMAIL PROTECTED]> Cc: r-devel@stat.math.ethz.ch Message-ID: <[EMAIL PROTECTED]> Content-Type:

Re: [Rd] R (>= 3.4.0): integer-to-double coercion in comparisons no longer done (a good thing)

2018-01-27 Thread Michael Lawrence
Thanks for highlighting this. I just made the change one day. Guess I should have mentioned it in the NEWS. Michael On Sat, Jan 27, 2018 at 3:01 PM, Henrik Bengtsson < henrik.bengts...@gmail.com> wrote: > Hi, > > there was a memory improvement done in R going from R 3.3.3 to R

Re: [Rd] bug [methods]: double execution of `insertSource` within the same session does not work

2018-01-29 Thread Michael Lawrence
Thanks, I will fix this. On Mon, Jan 29, 2018 at 8:06 AM, Demetrio Rodriguez T. < demetrio.rodrigue...@gmail.com> wrote: > Hello everyone, > > > I hope this reaches someone at all. It's my first bug report to the R-core, > and, apparently, bugzilla is locked from new reports for now. > > I was us

Re: [Rd] as.list method for by Objects

2018-01-30 Thread Michael Lawrence
I agree that it would make sense for the object to have c("by", "list") as its class attribute, since the object is known to behave as a list. However, it would may be too disruptive to make this change at this point. Hard to predict. Michael On Mon, Jan 29, 2018 at 5:0

Re: [Rd] as.list method for by Objects

2018-01-30 Thread Michael Lawrence
by() does not always return a list. In Gabe's example, it returns an integer, thus it is coerced to a list. as.list() means that it should be a VECSXP, not necessarily with "list" in the class attribute. Michael On Tue, Jan 30, 2018 at 2:41 PM, Hervé Pagès wrote: > Hi Gabe,

Re: [Rd] as.list method for by Objects

2018-01-30 Thread Michael Lawrence
thods package. It deals in "class space" while as.list() deals in "typeof() space". Michael On Tue, Jan 30, 2018 at 3:47 PM, Hervé Pagès wrote: > On 01/30/2018 02:50 PM, Michael Lawrence wrote: > >> by() does not always return a list. In Gabe's example, it retu

Re: [Rd] Best practices in developing package: From a single file

2018-01-31 Thread Michael Lawrence
ely simple methods. Michael On Tue, Jan 30, 2018 at 11:53 AM, Duncan Murdoch wrote: > On 30/01/2018 11:29 AM, Brian G. Peterson wrote: > >> On Tue, 2018-01-30 at 17:00 +0100, Suzen, Mehmet wrote: >> >>> Dear R developers, >>> >>> I am wondering what are t

Re: [Rd] bug [methods]: double execution of `insertSource` within the same session does not work

2018-01-31 Thread Michael Lawrence
The issue should be resolved in R-devel. It was actually deeper and more important than this obscure insertSource() function. names() was not doing the right thing on S4 objects derived from "environment". On Mon, Jan 29, 2018 at 11:02 AM, Michael Lawrence wrote: > Thanks, I

Re: [Rd] as.list method for by Objects

2018-02-01 Thread Michael Lawrence
On Thu, Feb 1, 2018 at 1:21 AM, Martin Maechler wrote: > >>>>> Michael Lawrence > >>>>> on Tue, 30 Jan 2018 10:37:38 -0800 writes: > > > I agree that it would make sense for the object to have c("by", > "list") as &

Re: [Rd] Fwd: Re: Best practices in developing package:

2018-02-01 Thread Michael Lawrence
Folding is a simple solution, but there are intrinsic problems, like the need to embed the documentation in comments. If the user already has to expand a fold to edit the docs, the IDE could instead just provide a link or shortcut that jumps to a separate documentation file, written in whatever lan

Re: [Rd] Best practices in developing package: From a single file

2018-02-02 Thread Michael Lawrence
On Thu, Feb 1, 2018 at 9:20 AM, Gabriel Becker wrote: > On Thu, Feb 1, 2018 at 5:24 AM, Lionel Henry wrote: > > > On 31 janv. 2018, at 09:08, Gabriel Becker wrote: > > > > > it *actively discourages* the bits it doesn't directly support. > > > > It may be discouraging to include Rd syntax in ro

[Rd] scale.default gives an incorrect error message when is.numeric() fails on a sparse row matrix (dgeMatrix)

2018-02-27 Thread Michael Chirico
t a minimum, the error message needs to be repaired; do we also want to attempt as.numeric(normx) (which I believe would have allowed scale to work in this case)? (I'm aware that there's some import issues in lars, as the offending line to create normx *should* work, as is.numeric(sqrt(

Re: [Rd] scale.default gives an incorrect error message when is.numeric() fails on a dgeMatrix

2018-03-01 Thread Michael Chirico
. On Mar 2, 2018 1:52 AM, "Martin Maechler" wrote: > >>>>> Michael Chirico > >>>>> on Tue, 27 Feb 2018 20:18:34 +0800 writes: > > Slightly amended 'Subject': (unimportant mistake: a dgeMatrix is *not* > sparse) > > MM: m

[Rd] model.frame strips class as promised, but fails to strip OBJECT in C

2018-03-05 Thread Michael Chirico
t(DF)$y) # [1] "numeric" is.object(na.omit(DF)$y) # [1] FALSE That is, similarly presented with a classed object, na.omit strips the class *and* the OBJECT attribute. Thanks, Michael Chirico [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Workflow for translations?

2018-03-25 Thread Michael Lawrence
Hi Detlef, Sorry, this is something that I have been supposed to be doing. I will send out a call soon. Michael On Sun, Mar 25, 2018 at 10:00 AM, Detlef Steuer wrote: > Hi friends, > > what happend to the "call for translation" that was a clear > signal to start wo

Re: [Rd] odd assignInNamespace / setGeneric interaction

2018-04-18 Thread Michael Lawrence
Hi Bill, Ideally, your coworker would just make an alias (or shortcut or whatever) for R that passed --no-save to R. I'll try to look into this though. Michael On Wed, Apr 18, 2018 at 1:38 PM, William Dunlap via R-devel wrote: > A coworker got tired of having to type 'yes&#

Re: [Rd] odd assignInNamespace / setGeneric interaction

2018-04-19 Thread Michael Lawrence
uot;)), getNamespace("graphics")) >> library(stats4) >> > > I suppose poeple who use assignInNamespace get what they deserve. > > > Bill Dunlap > TIBCO Software > wdunlap tibco.com > > On Thu, Apr 19, 2018 at 2:33 AM, Martin Maechler > wrote: &g

Re: [Rd] readLines() for non-blocking pipeline behaves differently in R 3.5

2018-04-25 Thread Michael Lawrence
Probably related to the switch to buffered connections. I will look into this soon. On Wed, Apr 25, 2018 at 2:34 PM, Randy Lai wrote: > It seems that the behavior of readLines() in R 3.5 has changed for > non-blocking pipeline. > > > Consider the following R script, which reads from STDIN line b

Re: [Rd] readLines() for non-blocking pipeline behaves differently in R 3.5

2018-04-26 Thread Michael Lawrence
is seeking in the first place. Anyway, I'll get this into patched ASAP. Thanks for the report. Michael On Wed, Apr 25, 2018 at 5:13 PM, Michael Lawrence wrote: > Probably related to the switch to buffered connections. I will look > into this soon. > > On Wed, Apr 25, 2018 at

Re: [Rd] readLines() for non-blocking pipeline behaves differently in R 3.5

2018-04-26 Thread Michael Lawrence
"3\n", file = "foobar", append = TRUE) > readLines(f) > #> [1] "3" > > I.e. R can emulate a file connection with non-blocking reads. > AFAICT there is no such thing, in Unix at least. > For this emulation, it needs to seek to the "current"

Re: [Rd] readLines() behaves differently for gzfile connection

2018-05-10 Thread Michael Lawrence
Would it be possible to get that file or a representative subset of it somewhere so that I can reproduce this? Thanks, Michael On Thu, May 10, 2018 at 3:31 PM, Ben Heavner wrote: > When I read a .gz file with readLines() in 3.4.3, it returns text (and a > warning). In 3.5.0, it gives a w

Re: [Rd] readLines() behaves differently for gzfile connection

2018-05-14 Thread Michael Lawrence
mpty lines issue also. Michael On Thu, May 10, 2018 at 4:21 PM, Ben Heavner wrote: > You bet - it's available on github at > https://github.com/UW-GAC/wgsaparsr/blob/master/tests/testthat/1k_annotation.gz > > -Ben > > On Thu, May 10, 2018 at 4:17 PM, Michael Lawrence >

Re: [Rd] Dispatch mechanism seems to alter object before calling method on it

2018-05-15 Thread Michael Lawrence
ing an "is" relationship between "structure" and "vector" via an "explicit coerce", such that any "structure" passed to a "vector" method is first passed to as.vector(), which strips attributes. This is very much by design. Michael On Tue,

Re: [Rd] Dispatch mechanism seems to alter object before calling method on it

2018-05-16 Thread Michael Lawrence
ny S4 object derived from those needs to be (for pragmatic compatibility reasons) an integer vector or list, respectively, internally (the virtual @.Data slot). Separating that from inheritance would probably be difficult. Yes, we can consider these to be problems, to some extent stemming from the behav

Re: [Rd] Dispatch mechanism seems to alter object before calling method on it

2018-05-16 Thread Michael Lawrence
On Wed, May 16, 2018 at 12:23 PM, Hervé Pagès wrote: > On 05/16/2018 10:22 AM, Michael Lawrence wrote: >> >> Factors and data.frames are not structures, because they must have a >> class attribute. Just call them "objects". They are higher level than >> str

Re: [Rd] Dispatch mechanism seems to alter object before calling method on it

2018-05-16 Thread Michael Lawrence
On Wed, May 16, 2018 at 3:45 PM, Hervé Pagès wrote: > On 05/16/2018 01:24 PM, Michael Lawrence wrote: >> >> On Wed, May 16, 2018 at 12:23 PM, Hervé Pagès >> wrote: >>> >>> On 05/16/2018 10:22 AM, Michael Lawrence wrote: >>>> >>>> >

[Rd] Patch for bug 17256 'possible bug in writeForeignSAS in the foreign library when string is NA'

2018-05-17 Thread NELSON, Michael
f length 0 2. general replacement of calls to `sapply` with `vapply` (and replacing any(is.na()) with anyNA. Happy to add in bugzilla (but don't have an account there) Regards

Re: [Rd] Patch for bug 17256 'possible bug in writeForeignSAS in the foreign library when string is NA'

2018-05-17 Thread NELSON, Michael
Hi Martin, Thanks - I will continue in Bugzilla. Michael -Original Message- From: Martin Maechler [mailto:maech...@stat.math.ethz.ch] Sent: Thursday, 17 May 2018 11:34 PM To: NELSON, Michael Cc: r-devel@r-project.org Subject: Re: [Rd] Patch for bug 17256 'possible b

[Rd] Error message truncation

2018-05-18 Thread Michael Chirico
ase query; the error message will first reproduce the entirety of the query and then give some diagnostic information. Queries can get quite long, so it stands to reason that this 8190-length limit might be binding. Thanks, Michael Chirico [[alternative HTML version deleted]]

Re: [Rd] Creating S3 methods for S4 classes (coming from r-package-devel)

2018-05-24 Thread Michael Lawrence
. Neither of those apply in this case. Michael On Thu, May 24, 2018 at 6:39 AM, Joris Meys wrote: > Dear all, > > I asked this question on r-package-devel but Martin Maechler pointed out > this was more suited on R-devel. So here it goes: > > per the manual, one should create and

Re: [Rd] Creating S3 methods for S4 classes (coming from r-package-devel)

2018-05-24 Thread Michael Lawrence
On Thu, May 24, 2018 at 10:47 AM, Joris Meys wrote: > > > On Thu, May 24, 2018 at 6:20 PM, Michael Lawrence > wrote: >> >> You only have to make an S4 method if there is already an S4 generic. >> If there is just an S3 generic, then just define S3 methods on i

Re: [Rd] encoding argument of source() in 3.5.0

2018-06-04 Thread NELSON, Michael
uot;, method = 'internal') #scan(url_internal_en, "") #*** caught segfault *** # address 0x0, cause 'memory not mapped' url_libcurl <- url(urlR, method = 'libcurl') scan(url_libcurl, "") # Read 7 items # [1] "source.test2" "<-"

Re: [Rd] Subsetting the "ROW"s of an object

2018-06-08 Thread Michael Lawrence
There probably should be an abstraction for this. In S4Vectors, we have extractROWS(). Michael On Fri, Jun 8, 2018 at 8:45 AM, Hadley Wickham wrote: > Hi all, > > Is there a better to way to subset the ROWs (in the sense of NROW) of > an vector, matrix, data frame or arr

Re: [Rd] Subsetting the "ROW"s of an object

2018-06-08 Thread Michael Lawrence
Actually, it's sort of the opposite. Everything becomes a sequence of integers internally, even when the argument is missing. So the same amount of work is done, basically. ALTREP will let us improve this sort of thing. Michael On Fri, Jun 8, 2018 at 1:49 PM, Hadley Wickham wrote: > H

Re: [Rd] readLines function with R >= 3.5.0

2018-06-12 Thread Michael Lawrence
Hi Jen, This was already resolved for R 3.5.1 by just disabling buffering on terminal file connections like stdin. Sounds like you might want to be running a web service or something instead though. Michael On Tue, Jun 12, 2018 at 4:46 PM, Jennifer Lyon wrote: > Hi: > > I have

Re: [Rd] readLines function with R >= 3.5.0

2018-06-13 Thread Michael Lawrence
Are you sure it's not available in patched? It's definitely in the source since 6/1. Michael On Wed, Jun 13, 2018 at 2:19 AM, Martin Maechler wrote: >>>>>> Michael Lawrence >>>>>> on Tue, 12 Jun 2018 19:27:49 -0700 writes: > > >

Re: [Rd] readLines function with R >= 3.5.0

2018-06-19 Thread Michael Lawrence
Hi Jen, Please provide a reproducible example, since the original stack overflow example works in both trunk and patched. Thanks, Michael On Tue, Jun 19, 2018 at 3:45 PM, Jennifer Lyon wrote: > Hi Michael: > > I can confirm Martin's comment. I tested my software with r-devel (r7

Re: [Rd] list of methods

2018-06-26 Thread Michael Lawrence
API", which is not formally defined. You could look at the S4Vectors package or the date/time classes for reference. But Surv gets a lot less for free since length() returns twice their logical length, an unfortunate inconsistency. Michael On Tue, Jun 26, 2018 at 11:24 AM, Therneau, Terry M

Re: [Rd] R History: Why is there no importFrom() function?

2018-07-22 Thread Michael Lawrence
"foo <- package::foo". While not as well structured as an importFrom() call, it does make the side effect explicit. When that becomes onerous, it is probably past time to transition to a package. Michael On Sat, Jul 21, 2018 at 7:54 PM, Aaron Jacobs wrote: > Excuse me if this is

Re: [Rd] WishList: Remove Generic Arguments

2018-08-09 Thread Michael Lawrence
dable. Michael On Thu, Aug 9, 2018 at 2:45 PM, Abs Spurdle wrote: > I apologize if this issue has been raised before. > > I really like object oriented S3 programming. > However, there's one feature of object oriented S3 programming that I don't > like. > Generic functi

Re: [Rd] Bug 17432 in readLines with R >= 3.5.0 still a problem

2018-09-13 Thread Michael Lawrence
Thanks, I responded to this on bugzilla. On Wed, Sep 12, 2018 at 9:04 AM Chris Culnane wrote: > > Bug 17432 (https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=17432) is > still a problem when using pipes for IPC. > > The bug is evident when calling R from another process and trying to > commu

Re: [Rd] Bug 17432 in readLines with R >= 3.5.0 still a problem

2018-09-14 Thread Michael Lawrence
The actual bug corresponding to this thread is: https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17470 On Fri, Sep 14, 2018 at 9:22 AM Jennifer Lyon wrote: > > Michael: > > I don't see any comments on Bug 17432 > (https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=17

Re: [Rd] named arguments discouraged in `[.data.frame` and `[<-.data.frame`

2018-11-28 Thread Michael Lawrence
frequently enough that naming arguments just introduces clutter. That probably requires experience though. Michael On Wed, Nov 28, 2018 at 11:30 AM Henrik Pärn wrote: > > tl;dr: > > Why are named arguments discouraged in `[.data.frame`, `[<-.data.frame` and > `[[.data.frame`? > > (

Re: [Rd] Unexpected argument-matching when some are missing

2018-11-30 Thread Michael Lawrence
Argument matching is by name first, then the still missing arguments are filled positionally. Unnamed missing arguments are thus left missing. Does that help? Michael On Fri, Nov 30, 2018 at 8:18 AM Emil Bode wrote: > > But the main point is where arguments are mixed together: > >

[Rd] Dead link in documentation of ?timezones

2018-12-07 Thread Michael Chirico
This link is referenced in ?timezones and appears to have been moved/removed. Is there a replacement? http://www.twinsun.com/tz/tz-link.htm [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/

Re: [Rd] Dead link in documentation of ?timezones

2018-12-07 Thread Michael Chirico
Indeed! Sorry, I need more sleep, should have known better. Thanks! On Fri, Dec 7, 2018 at 6:22 PM Martin Maechler wrote: > >>>>> Michael Chirico > >>>>> on Fri, 7 Dec 2018 10:36:37 +0800 writes: > > > This link is referenced in ?timezones a

[Rd] strtoi output of empty string inconsistent across platforms

2019-01-10 Thread Michael Chirico
So, what is the correct output of strtoi("", base = 2L)? Is the cross-platform inconsistency to be expected/documentable? Michael Chirico [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] strtoi output of empty string inconsistent across platforms

2019-01-12 Thread Michael Chirico
;>>> Martin Maechler > >>>>> on Fri, 11 Jan 2019 09:44:14 +0100 writes: > > >>>>> Michael Chirico > >>>>> on Fri, 11 Jan 2019 14:36:17 +0800 writes: > > >> Identified as root cause of a bug in data.table: >

[Rd] \dots used improperly in ?Rprof examples

2019-05-25 Thread Michael Chirico
it is the first line looks like it's commented out Michael Chirico [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

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

2019-05-25 Thread Michael Chirico
Debugging this issue: https://github.com/Rdatatable/data.table/issues/2008 We have custom class 'IDate' which inherits from 'Date' (it just forces integer storage for efficiency, hence, I). The concatenation done by rbind, however, breaks this and returns a double: library(data.table) DF = data

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

2019-05-26 Thread Michael Chirico
extMethod(.Generic), oldClass(x)) # <- restores 'IDate' class So we can fix our bug by defining a [<- class; the question that I still don't see answered in documentation or source code is, why/where is [<- called, exactly? Mike C On Sun, May 26, 2019 at 1:16 PM Michael Chirico

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

2019-05-27 Thread Michael Chirico
use. My last curiosity on this issue will be in my follow-up thread. Mike C On Mon, May 27, 2019, 10:25 PM Joshua Ulrich wrote: > On Sun, May 26, 2019 at 6:47 AM Joshua Ulrich > wrote: > > > > On Sun, May 26, 2019 at 4:06 AM Michael Chirico > > wrote: > > >

[Rd] Why is R in Japanese (only in Mac terminal)?

2019-05-29 Thread Michael Chirico
Since a while ago, R on my Mac terminal is being started in Japanese: R version 3.5.2 (2018-12-20) -- "Eggshell Igloo" Copyright (C) 2018 The R Foundation for Statistical Computing Platform: x86_64-apple-darwin15.6.0 (64-bit) R は、自由なソフトウェアであり、「完全に無保証」です。 一定の条件に従えば、自由にこれを再配布することができます。 配布条件の詳細

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

2019-06-02 Thread Michael Chirico
gt; > > > Follow-up (inline) on my comment about a potential issue in `[<-.Date`. > > > > On Mon, May 27, 2019 at 9:31 AM Michael Chirico > > wrote: > > > > > > Yes, thanks for following up on thread here. And thanks again for > clearing things up,

[Rd] head.matrix can return 1000s of columns -- limit to n or add new argument?

2019-07-08 Thread Michael Chirico
I think of head() as a standard helper for "glancing" at objects, so I'm sometimes surprised that head() produces massive output: M = matrix(nrow = 10L, ncol = 10L) print(head(M)) # <- beware, could be a huge print I assume there are lots of backwards-compatibility issues as well as valid use

[Rd] bug: write.dcf converts hyphen in field name to period

2019-08-02 Thread Michael Chirico
#x27;', gsub('[^\U{0021}-\U{0039}\U{003B}-\U{007E}]', '.', names(x))) (Or maybe errors for having invalid names) Michael Chirico [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] iconv: embedded nulls when converting to UTF-16

2019-08-05 Thread Braun, Michael
threads from June 2010 and February, 2016, and that bug #16738 was posted to Bugzilla as a result. However, I have not been able to determine if the error is mine, if there is a known workaround, or it truly is a bug in R’s iconv implementation. Any additional help is appreciated. Thanks, Michael

[Rd] Why no tz argument for format.POSIXlt?

2019-08-13 Thread Michael Chirico
;format" "usetz" "..." Is there any reason not to accept a tz argument for format.POSIXlt? It's quite convenient to be able to specify an output timezone format on the fly with format.POSIXct; in the case at hand, I'm trying to

[Rd] --disable-long-double or --enable-long-double=no?

2019-08-21 Thread Michael Chirico
& the ambiguity is immediate -- the commit mentions disable-long-double but builds enable-long-double. https://github.com/wch/r-source/commit/fb8e36f8be0aaf47a9c54c9effb219dae34f0e41 Could someone please help to clear the confusion? Thanks Michael Chirico [[

Re: [Rd] head.matrix can return 1000s of columns -- limit to n or add new argument?

2019-09-15 Thread Michael Chirico
is quite clear for those familiar with head(x, 6), it would seem to me. Mike C On Sat, Jul 13, 2019 at 8:35 AM Gabriel Becker wrote: > Hi Michael and Abby, > > So one thing that could happen that would be backwards compatible (with > the exception of something that was an error n

Re: [Rd] head.matrix can return 1000s of columns -- limit to n or add new argument?

2019-09-16 Thread Michael Chirico
Awesome. Gabe, since you already have a workshopped version, would you like to proceed? Feel free to ping me to review the patch once it's posted. On Mon, Sep 16, 2019 at 3:26 PM Martin Maechler wrote: > >>>>> Michael Chirico > >>>>>

[Rd] passing extra arguments to devtools::build

2019-09-27 Thread Michael Friendly
LL,args =character(),error_on_status =TRUE,:System command error| I've tried other alternatives with other |devtools| commands, like just passing a single argument, but still get the same error |args ='--compact-vignettes="gs+qpdf"'devtools::check_win_devel(args=arg

[Rd] re-submission of package after CRAN-pretest notes

2020-01-08 Thread Michael Friendly
like to re-submit. -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. & Chair, ASA Statistical Graphics Section York University Voice: 416 736-2100 x66249 4700 Keele StreetWeb: http://www.datavis.ca | @datavisFriendly Toronto, ONT M3J

Re: [Rd] Default for checkBuilt in update.packages() should be TRUE

2020-02-24 Thread Michael Dewey
I suppose it is too late to change the name but checkBuilt does not immediately clarify to me what it does. It does not check whether I have built a package for instance. Having read Duncan's post at least I now know that I should set it as TRUE until the default is changed. Michael On

Re: [Rd] [SPAM] Hard memory limit of 16GB under Windows?

2020-04-07 Thread Michael Dewey
Dear Samuel Does the FAQ for Windows section 2.9 help you here? Michael On 07/04/2020 12:35, Samuel Granjeaud IR/Inserm wrote: Hi, I am not not sure whether this topic belongs to this mail list, but I feel the subscribers here should be the right audience. I noticed that the memory limit

Re: [Rd] suggestion: "." in [lsv]apply()

2020-04-16 Thread Michael Mahoney
This syntax is already implemented in the {purrr} package, more or less -- you need to add a tilde before your function call for it to work exactly as written: purrr::map_dbl(split(mtcars, mtcars$cyl), ~ summary(lm(wt ~ mpg, .))$r.squared) is equivalent to sapply(split(mtcars, mtcars$cyl), funct

[Rd] Translations and snprintf on Windows

2020-04-30 Thread Michael Chirico
the use of snprintf specifically appears to have caused a crash on Windows: https://github.com/Rdatatable/data.table/issues/4402 Is there any guidance against using gettext with snprintf, or perhaps guidance on which "outputters" *are* OK for translation? Michael Chirico [[a

[Rd] Should 0L * NA_integer_ be 0L?

2020-05-23 Thread Michael Chirico
I don't see this specific case documented anywhere (I also tried to search the r-devel archives, as well as I could); the only close reference mentions NA & FALSE = FALSE, NA | TRUE = TRUE. And there's also this snippet from R-lang: In cases where the result of the operation would be the same for

Re: [Rd] Should 0L * NA_integer_ be 0L?

2020-05-23 Thread Michael Chirico
ltiplication of logical values even means). FALSE * NA = 0L On Sat, May 23, 2020 at 6:49 PM Martin Maechler wrote: > > >>>>> Michael Chirico > >>>>> on Sat, 23 May 2020 18:08:22 +0800 writes: > > > I don't see this specific case documented

[Rd] C Interface

2010-06-18 Thread michael meyer
part of the Python(x,y) distribution but I am assuming that R CMD SHLIB source.c calls the right compiler. What could the problem be? Many thanks, Michael [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] C Interface

2010-06-20 Thread michael meyer
Thanks for all replies. I'll use inlining until I have figured out how to build a proper package. Michael [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Call for suggestions

2010-07-04 Thread michael meyer
some piecewise linear functions, monomials, and exponential function. My question is: what further parametric models are of sufficiently general interest to be included? Many thanks, Michael Meyer [[alternative HTML version deleted]] __ R-devel

[Rd] Using 'dimname names' in aperm() and apply()

2010-07-29 Thread Michael Lachmann
ALSE)) if (length(MARGIN) == 1L && len.a == d2) { names(ans) <- if (length(dn.ans[[1L]])) dn.ans[[1L]] return(ans) } if (len.a == d2) return(array(ans, d.ans, dn.ans)) if (len.a && len.a%%d2 == 0L) { if (is.null(dn

[Rd] problem with dl tag in tools::Rd2HTML

2010-08-05 Thread Michael Lachmann
graph, but the has not ended yet. I don't really understand in html, but I think the correct way would be -- save.defaults, save.image.defaults: see save. -- Michael -- View this message in context: http://r.789695.n4.nabble.com/problem-with-dl-tag-in-tools-Rd2HTML-tp2315499p2315499.html

Re: [Rd] problem with dl tag in tools::Rd2HTML

2010-08-05 Thread Michael Lachmann
ated file, t.html, the first tag is such a case. Michael -- View this message in context: http://r.789695.n4.nabble.com/problem-with-dl-tag-in-tools-Rd2HTML-tp2315499p2315620.html Sent from the R devel mailing list archive at Nabble.com. __ R-devel

Re: [Rd] Assignment of individual values to data frame columns: intentional or unintentional behavior?

2010-08-05 Thread Michael Lachmann
Ulrike Grömping wrote: > > > However, given the documentation that partial matching is not used on > the left-hand side, I would have expected even more that the assignment > > sw$Fert[1] <- 10 > > works differently, because I am using it on the left-hand side. > Probably, extraction ([1])

[Rd] rbind on data.frame that contains a column that is also a data.frame

2010-08-05 Thread Michael Lachmann
uld be best to add a flag as to whether you care or don't care about the rownames of internal data.frames... But maybe data.frames aren't meant to contain other data.frames? If instead I do b=data.frame( z=1:10, a=a) then rbind(b,b) works well. In this case the data.frame was converte

Re: [Rd] problem with dl tag in tools::Rd2HTML

2010-08-05 Thread Michael Lachmann
Michael Lachmann wrote: > > > Duncan Murdoch-2 wrote: >> >> >> What version are you using? I don't see that in current R patched. >> >> > > I see this in version 2.11.1. > This is the code I ran to generate it: > page <- utils

Re: [Rd] No RTFM?

2010-08-24 Thread Michael Dewey
sking us to read the help pages for you." I can appreciate the sentiment in fortunes('rtfm'). In this case, however, "r.ookie" had RTFM (and said so), but evidently the manual was not sufficiently clear. Best Wishes, Spencer Graves Michael Dewey http://www.aghmed.fsnet.co.uk __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Feature request: put NewEnvironment and R_NewhashedEnv into API

2010-09-03 Thread Michael Lawrence
What about allocSExp(ENVSXP)? Then SET_ENCLOS() to set the parent? Seems to work for me. Michael On Sun, Aug 29, 2010 at 11:02 AM, Oliver Flasch wrote: > Hi, > > as Seth Falcon in 2006, I also need to create new environments from package > C code. Unfortunately, both NewEnv

Re: [Rd] what is the best way for an external interface to interact with graphics, libraries

2010-09-08 Thread Michael Lawrence
; > > > I'd like to be able to > > update the menus whenever a new library is loaded. Is there a possibility > to > > have a function called whenever this happens? Or would it be advisable to > > change the global 'libra

Re: [Rd] lapply version with [ subseting - a suggestion

2010-09-21 Thread Michael Lawrence
On Tue, Sep 21, 2010 at 3:55 AM, Vitaly S. wrote: > > Dear R developers, > > Reviewing my code, I have realized that about 80% of the time in the lapply > I > need to access the names of the objects inside the loop. > > In such cases I iterate over indexes or names: > lapply(names(x), ... [i]), >

Re: [Rd] [R] R-2.12.0 hangs while loading RGtk2 on FreeBSD

2010-10-22 Thread Michael Lawrence
RGtk2) within R does not work. R than is > hanging. > > It seems the problem is not with the library itself? > > It looks like something is happening when initializing GTK+ and the event loop. This happens in the function R_gtkInit in Rgtk.c. If you could run R -d gdb and break on tha

[Rd] windows 64-bit package build on 32-bit machine

2010-10-26 Thread Michael Spiegel
2-bit windows machine? Thanks, --Michael __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] windows 64-bit package build on 32-bit machine

2010-10-26 Thread Michael Spiegel
on Urbanek wrote: > > On Oct 26, 2010, at 9:04 PM, Michael Spiegel wrote: > >> Hello, >> >> Is it possible to build a 64-bit package on a 32-bit machine on >> windows? I can cross-compile for x86, x86_64, and ppc on a 32-bit OS X >> machine.  And it look

Re: [Rd] R-2.12.0 hangs while loading RGtk2 on FreeBSD

2010-10-27 Thread Michael Lawrence
On Sat, Oct 23, 2010 at 2:49 AM, Rainer Hurling wrote: > On 22.10.2010 22:10 (UTC+1), Rainer Hurling wrote: > >> On 22.10.2010 16:18 (UTC+2), Rainer Hurling wrote: >> >>> On 22.10.2010 14:57 (UTC+1), Michael Lawrence wrote: >>> >>>> >>&

Re: [Rd] R-2.12.0 hangs while loading RGtk2 on FreeBSD

2010-10-28 Thread Michael Lawrence
On Wed, Oct 27, 2010 at 12:09 PM, Rainer Hurling wrote: > On 27.10.2010 15:07 (UTC+1), Michael Lawrence wrote: > >> On Sat, Oct 23, 2010 at 2:49 AM, Rainer Hurling > <mailto:rhur...@gwdg.de>> wrote: >>On 22.10.2010 22:10 (UTC+1), Rainer Hurling wrote: >&g

Re: [Rd] Scripting SVG with R

2010-10-29 Thread Michael Lawrence
-use/files/pdf/qt-features-for-hybrid-web-native-application-development I haven't actually tested all of that with qtbase, but it should work in theory. Embedding widgets (with R callbacks) into web pages definitely works. There is also the QtSvg module, which parses and outputs SVG. Michae

[Rd] BLAS benchmarks on R 2.12.0

2010-10-31 Thread Michael Spiegel
nsafe library when we give it to users. We currently change the OpenMx shared library to use the reference blas implementation, because it is faster than the veclib implementation for small matrices. Thank you! --Michael __ R-devel@r-project.org mailing list

Re: [Rd] BLAS benchmarks on R 2.12.0

2010-11-01 Thread Michael Spiegel
either veclib, Atlas, or the Goto BLAS implementations, I've tested all of them on our performance test suite. --Michael On Mon, Nov 1, 2010 at 6:07 PM, Andrew Piskorski wrote: > On Sun, Oct 31, 2010 at 12:41:24PM -0400, Michael Spiegel wrote: > >> 1) Compile the reference BLAS im

[Rd] R package BibTex entries: looking for a more general solution

2010-11-03 Thread Michael Friendly
g may be necessary, but I think a worthy goal would be to try to reduce the need for this. One simple way to do that would be to support an extra Contributions: field in the DESCRIPTION file, so that Authors: can be more cleanly separated for the purpose of creating well-structured BibTeX

  1   2   3   4   5   6   7   >