[Rd] The case for a pipe assignment operator + database of R code

2023-12-29 Thread David Hugh-Jones
assignments in real world code. It has about 26000 code snippets, from github, Stackoverflow questions, and R package examples. It might be useful if you are researching real world usage patterns in R. I didn't know of any existing resources: https://github.com/hughjonesd/codesamples Ha

Re: [Rd] Wayland Display Support in R Plot

2023-11-12 Thread David Bellot
including screen sharing with various video call software (Google, Zoom, etc...) and had no issues at all. It works even better than my previous (very long) experience with X11. Best, David On Tue, Oct 31, 2023 at 12:13 AM Iñaki Ucar wrote: > El lun., 30 oct. 2023 12:26, Roger Bivand escribió:

Re: [Rd] hist(..., log="y")

2023-08-07 Thread David Scott
histogram in the function logHist, in my package DistributionUtils, which may be of interest if anyone seriously wishes to add functionality to the base hist function. David Scott On 7/08/2023 8:54 pm, Martin Maechler wrote: > >>>>> Ott Toomet > >>>>> on S

Re: [Rd] hist(..., log="y")

2023-08-06 Thread David Winsemius
I guess my memory was off slightly. Densities are only plotted with freq=TRUE. Still there the ever present conundrum that 0 counts cannot be sensibly represented. Why not: hist( log(x), …) #? In situations where it might make sense. Sent from my iPhone > On Aug 6, 2023, at 9:01 AM, Da

Re: [Rd] hist(..., log="y")

2023-08-06 Thread David Winsemius
hist() is designed so that the total area sums to 1. You should build you desired behavior using a barchart. — David Sent from my iPhone > On Aug 5, 2023, at 11:50 PM, Ott Toomet wrote: > > Sorry if this topic has been discussed earlier. > > Currently, hist(..., log=

[Rd] Unable to load Windows NETIO.SYS and WINSPOOL.DRV DLLs

2023-02-11 Thread David Sterratt
.logical(now), ...) : unable to load shared object 'C:/Users/David Sterratt/AppData/Local/R/win-library/4.3/RGtk2/libs/x 64/RGtk2.dll': LoadLibrary failure: The specified module could not be found. WinDbg output reveals errors loading "NETIO.SYS" and "WINSPOOL

Re: [Rd] Recycling in arithmetic operations involving zero-length vectors

2023-01-16 Thread David Winsemius
s the value 0. I suggested that many interpretations were possible and that a warning was given for NA generation. I stand with Roland in thinking a warning is appropriate. David Winsemius > > Duncan Murdoch > > __ > R-devel@r-project.

Re: [Rd] string concatenation operator (revisited)

2021-12-06 Thread David Scott
(NA, 2) NA2 > glue(NA, 2, .sep = " ") NA 2 > glue(NA, 2, .na = NULL) NA David Scott On 7/12/2021 1:20 pm, Gabriel Becker wrote: > As I recall, there was a large discussion related to that which > resulted in > the recycle0 argument being added (but defaulting to FALSE)

[Rd] Progress reporting from parallel::mclapply

2021-07-26 Thread David Norris
7; argument is needed for my application because the initial single-threaded unrolling (to generate partial computations which the parallel workers finish) may yield some completed computations as well. Would there be interest in discussing modifications to parall

Re: [Rd] How to get utf8 string using R externals

2021-06-02 Thread David Winsemius
help pages. I suggest: ?Quotes ?points # has examples of changing fonts used for display on console. Sorry if I've misunderstood. I'm not on a Windows device, so posting the C++ program won't be helpful, but maybe it would for other prospective respondents. -- David. On

Re: [Rd] Inconsistency in median()

2021-05-05 Thread David Winsemius
It would almost trivial to make a wrapper tha first captures attributes, runs median, and then returns the Re-attribute-ed value. David. Sent from my iPhone > On May 5, 2021, at 8:29 AM, Gustavo Zapata Wainberg > wrote: > > Hi, thanks Dr. Mächler for your prompt response!

Re: [Rd] issue with data()

2021-02-17 Thread David Scott
I would recommend option 2. I have done that when changes to xtable broke some packages. xtable has a number of dependencies but not on the scale of survival. Just 4 packages out of 868 seems minimal to me. David Scott On 17/02/2021 3:39 am, Therneau, Terry M., Ph.D. via R-devel wrote: I am

Re: [Rd] replicate evaluates its second argument in wrong environment

2021-02-15 Thread David Winsemius
, whose mechanism or rules seem opaque. Was "exnr" supposed to be passed to `eval_tidy`? -- David. sapply(integer(n), function(i) eval_tidy(expr), simplify = simplify) } doRep2 <- function(a, b) sapply(a, replicate2, b) doRep2(3, 2) #> [,1] #> [1,]2 #> [2,]

Re: [Rd] Allowing S3 methods of rounding functions to take `...`

2021-01-29 Thread David Winsemius
x (of submatrices) but not the submatrices, themselves. Or vice versa. You could construct a matrix of lists and have the lists hold the sub-matrices. -- David. On a side note, the help file for base::aperm is entitled "Array Transposition". So, this topic is not quite as simple

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

2021-01-06 Thread Jitao David Zhang
native routine is implemented in a minimalistic example for teaching and demonstration purposes. That will help people a lot in my opinion. Best regards, David -- Jitao David Zhang http://jdzhang.me/ m...@jdzhang.me Schützengasse 20 4125 Riehen, Switzerland [[alternative HTML version

Re: [Rd] anonymous functions

2020-12-07 Thread David Hugh-Jones
I will stick my oar in here as a user to say that I find the \(x) syntax a bit line-noise-ish. David > On 8 Dec 2020, at 00:05, Abby Spurdle wrote: > > Sorry, I should replace "cryptic-ness" from my last post, with > "unnecessary cryptic-ness". > Somet

Re: [Rd] CRAN metadata broken?

2020-09-15 Thread David Winsemius
On 9/11/20 6:03 AM, Gábor Csárdi wrote: E.g. in https://cran.r-project.org/bin/macosx/contrib/4.0/PACKAGES there is Package: stringi Version: 1.5.3 but there is no such binary at https://cran.r-project.org/bin/macosx/contrib/4.0/ Using my browser I found: https://cran.r-project.org/bin/ma

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

2020-04-17 Thread Zhang, Jitao David via R-devel
Dear Davis and Dirk, Thank you very much for the suggestions, which are very valuable and helpful. I will add references to prior examples, document my project with the clear step-by-step-style document of Davis's project, and come back again to the mailing list. Best wishes, David On Fri

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

2020-04-17 Thread Zhang, Jitao David via R-devel
stability is apparently an issue, but I think we may find a solution there. Anyway, thanks a lot for sharing! Best wishes, David On Fri, Apr 17, 2020 at 3:12 PM Davis Vaughan wrote: > Nice David! I also wrote up something similar a little while back > https://github.com/DavisVaughan/c

[Rd] Demo for linking native routines between R packages

2020-04-17 Thread Zhang, Jitao David via R-devel
dd the project to the manual so that other people can understand the process better with the demo. In case of questions, let me know. Best wishes, David -- *Dr. Jitao David Zhang | 张继涛 | A Computational Biologist in Drug Discovery* *Building 93/3.38, **Tel +41 61 688 62 51* *Roche Pharmace

Re: [Rd] dput()

2020-02-29 Thread David Winsemius
t;)  x <- scan(file="temp.txt") #Read 1 item  x==1 #[1] TRUE And if you wanted more precision with the value before it got rectified by output/input  you could use the control parameter: dput(x, control="digits17") #0.99956 HTH; David. Hope this helps,

[Rd] Social Media Trackers on www.r-project.org

2019-11-07 Thread Christopher David Desjardins
Hi, I don't know if this is the right place to comment about this, but I am curious why there are social media trackers on www.r-project.org. I am guessing this is related to the News Via Twitter portion of the website, but I find it odd that going to www.r-project.org allows Twitter to collect da

Re: [Rd] should base R have a piping operator ?

2019-10-05 Thread David Hugh-Jones
I +1 this idea, without judging the implementation details. The pipe operator has proven vastly popular. Adding it would be relatively easy (I think). Having it as part of the core would be a strong guarantee of the future stability of this syntax. On Sat, 5 Oct 2019 at 15:34, Ant F wrote: > D

[Rd] base::format adds extraneous whitespace for some inputs

2019-06-20 Thread David J. Birke
; 9.99" with an extraneous whitespace. My expected output for the second command is "9.99". I have not found anything explaining the whitespace in the help files. Therefore, I am writing to report this behavior as a possible bug. Best wishes, David __

Re: [Rd] point size in svg

2019-06-19 Thread David Winsemius
e font size in svg? I'm unable to reproduce. (I get very large fonts in all three viewing methods: Rstudio plot panel, ImageViewer and GIMP) Ubuntu 18.04 R 3.15.2 Gimp 2.10.12 Looking at ?svg makes me think you should be looking at the Cairo Fonts section of ?X11. Best; David.

[Rd] Trivial error in documentation

2019-06-03 Thread David Scott
190 118 149 313 NA NA 299 99 19 194 ...  $ Wind   : num  7.4 8 12.6 11.5 14.3 14.9 8.6 13.8 20.1 8.6 ...  $ Temp   : int  67 72 74 62 56 66 65 59 61 69 ...  $ Month  : int  5 5 5 5 5 5 5 5 5 5 ...  $ Day    : int  1 2 3 4 5 6 7 8 9 10 ... Rega

Re: [Rd] New grDevices::hcl.colors()

2019-04-02 Thread David Hugh-Jones
Hi Achim Quick Q: why do some palettes have a hyphen in the name and others not? David On Tue, 2 Apr 2019 at 00:38, Achim Zeileis wrote: > Hi everyone, > > I wanted to draw your attention to a new post on the > developer.R-project.org blog: > > https://developer.R-project.or

[Rd] Possible bug in requireNamespace

2019-03-14 Thread David Hugh-Jones
ed overrides broom's methods. David __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Bug: as.matrix.data.frame() treats numeric vectors with "levels" attribute as factors

2019-03-04 Thread David Skalinder via R-devel
3.5.1 and 3.5.2, and I can't see anything related in the upcoming changes or in Bugzilla, so I thought I'd report it here.  I don't know what the cleanest fix will be, but it seems that either the function or the documentation should be changed so that they align. Pleas

Re: [Rd] code for sum function

2019-02-21 Thread David Winsemius
On 2/20/19 2:55 PM, Rampal Etienne wrote: Dear Tomas, Where do I find these files? Do they contain the code for the sum function? Yes. https://svn.r-project.org/R/trunk/ David What do you mean exactly with your point on long doubles? Where can I find documentation on this? Cheers

Re: [Rd] Runnable R packages

2019-02-08 Thread David Lindelof
Sure, you can find it here: https://github.com/dlindelof/run On Fri, Feb 8, 2019 at 9:41 AM Rainer M Krug wrote: > Sounds interesting. Do you have it on GitHub or similar? > > Rainer > > On 8 Feb 2019, at 09:09, David Lindelof wrote: > > Yesterday I wrote and submitted t

Re: [Rd] Runnable R packages

2019-02-08 Thread David Lindelof
`, lookup a function `main` in that package's namespace, and call it. It's an early draft but I'd appreciate any feedback (once its submission is accepted, of course). Thanks all for your help and advice, David On Sat, Feb 2, 2019 at 3:37 PM Duncan Murdoch wrote: > On 02/02/

Re: [Rd] Bug Report: read.table with UTF-8 encoded file imports infinity symbol as Integer 8

2019-02-07 Thread David Byrne
vel, R-patched). So probably Windows specific. > > -pd > > > On 7 Feb 2019, at 11:17 , David Byrne wrote: > > > > Bug > > Using read.table(file, encoding="UTF-8") to import a UTF-8 encoded > > file containing the infinity symbol (' ∞ ') results

[Rd] Bug Report: read.table with UTF-8 encoded file imports infinity symbol as Integer 8

2019-02-07 Thread David Byrne
Bug Using read.table(file, encoding="UTF-8") to import a UTF-8 encoded file containing the infinity symbol (' ∞ ') results in the infinity symbol imported as the number 8. Other Unicode characters seem unaffected, example, Zhe: ж Expected Behavior: The imported data.frame should represent the infi

Re: [Rd] Runnable R packages

2019-02-02 Thread David Lindelof
#x27;m wrong. >> >> [[alternative HTML version deleted]] >> >> __ >> R-devel@r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-devel > > __ > R-devel@r-p

Re: [Rd] Runnable R packages

2019-02-01 Thread David Lindelof
cies? Would it make sense to submit this as a desirable feature? Cheers, David On Thu, Jan 31, 2019 at 4:38 PM Barry Rowlingson < b.rowling...@lancaster.ac.uk> wrote: > > > On Thu, Jan 31, 2019 at 3:14 PM David Lindelof wrote: > >> >> In summary, I'm convinc

Re: [Rd] Runnable R packages

2019-01-31 Thread David Lindelof
k> wrote: > > > On Thu, Jan 31, 2019 at 3:14 PM David Lindelof wrote: > >> >> In summary, I'm convinced R would benefit from something similar to Java's >> `Main-Class` header or Python's `__main__()` function. A new R CMD command >> wou

Re: [Rd] Runnable R packages

2019-01-31 Thread David Lindelof
ark (and other tech stacks) developers and make it easier to develop R applications for those platforms. A candid comment from Dirk suggested that I should implement this myself, which I would be happy to do, provided this is the normal procedure. Or is there a more formal process I should foll

[Rd] Bug or undocumented behavior in normalizePath() with file system links on windows

2019-01-25 Thread David Korfkamp
t. Just executing executing 'normalizePath("C:/Programme")' however also yields the expected result, Cheers David -- M.Sc. David Korfkamp OFFIS e.V. - Institut f�r Informatik FuE Bereich Gesundheit | R&D Division Health Escherweg 2, 26121 Oldenburg - Germany Pho

[Rd] Runnable R packages

2019-01-07 Thread David Lindelof
oned out, but is this something that has ever been considered, or that is on R’s roadmap? Thanks for reading so far, David Lindelöf, Ph.D. +41 (0)79 415 66 41 or skype:david.lindelof http://computersandbuildings.com Follow me on Twitter: http://twitter.com/dli

Re: [Rd] Documentation examples for lm and glm

2018-12-14 Thread David Hugh-Jones
I would argue examples should encourage good practice. Beginners ought to learn to keep data in data frames and not to overuse attach(). Experts can do otherwise at their own risk, but they have less need of explicit examples. On Fri, 14 Dec 2018 at 14:51, S Ellison wrote: > FWIW, before all the

[Rd] Little memory leak fix

2018-10-29 Thread David CARLIER
Hi dear list, Here a little memory leak fix proposal. Kind regards. Thanks. Index: src/extra/tre/regexec.c === --- src/extra/tre/regexec.c (revision 75507) +++ src/extra/tre/regexec.c (working copy) @@ -163,9 +163,12 @@ { const

[Rd] small bug in formatC?

2018-10-25 Thread David Hugh-Jones
formatC(0.0001, digits = 3, format = "f", zero.print="< 0.01") Error in strrep(" ", nc - i1) : invalid 'times' value The problem, if it is one, is in .format.zeros: .format.zeros("0.000", "xx") Error in strrep(

Re: [Rd] Bias in R's random integers?

2018-09-19 Thread David Hugh-Jones
ample, bootstrap p values are garbage. David On Wed, 19 Sep 2018 at 21:20, Duncan Murdoch wrote: > On 19/09/2018 3:52 PM, Philip B. Stark wrote: > > Hi Duncan-- > > > > > > That is a mathematically true statement, but I suspect it is not very > relevant. Pseudo-random

Re: [Rd] Bias in R's random integers?

2018-09-19 Thread David Hugh-Jones
On Wed, 19 Sep 2018 at 13:43, Duncan Murdoch wrote: > > I think the analyses are correct, but I doubt if a change to the default > is likely to be accepted as it would make it more difficult to reproduce > older results. I'm a bit alarmed by the logic here. Unbiased sampling seems basic for a s

[Rd] ubuntu software updater clash with with cloud.r-project

2018-09-03 Thread David Shera
ike a bug, but not part of any R package. Thanks. -David [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Puzzle or bug with matrix indexing

2018-08-04 Thread David Hugh-Jones
Yup, I worked it out in time... for future reference, as.matrix calls `format` on logicals, converting them to the form seen. On Sat, 4 Aug 2018 at 17:53, Berry, Charles wrote: > > > > On Aug 4, 2018, at 6:55 AM, David Hugh-Jones > wrote: > > > > I'm not sure wh

[Rd] Puzzle or bug with matrix indexing

2018-08-04 Thread David Hugh-Jones
s space isn't happening purely because of coercion: c("blah", TRUE, FALSE) [1] "blah" "TRUE" "FALSE" No space. Obviously: as.logical(tmp[idx]) [1]NA FALSE which is why I think this might be a bug. David [[alternative HTML version delete

Re: [Rd] Fwd: help building very old R

2018-07-30 Thread David Hugh-Jones
Thanks for the tip. That could be a huge timesaver. But it lists only a single package for versions 0.90.1-2 ... how does that work? David On Mon, 30 Jul 2018 at 12:27, Dirk Eddelbuettel wrote: > > On 30 July 2018 at 05:35, David Hugh-Jones wrote: > | Hi guys, > | > | Perhaps s

Re: [Rd] apply with zero-row matrix

2018-07-30 Thread David Hugh-Jones
mple, if m is numeric, the argument will be a vector (or matrix or array) of zeroes. The type and length of the value returned by \code{FUN} is used to determine the type of the result. And at the end of "Details": \code{FUN} is always called at least once, see below. David On Mon, 30

Re: [Rd] apply with zero-row matrix

2018-07-30 Thread David Hugh-Jones
(presumably NULL) for an empty argument; but why should apply call fun? Cheers David On Mon, 30 Jul 2018 at 08:41, Martin Maechler wrote: > >>>>> David Hugh-Jones > >>>>> on Mon, 30 Jul 2018 05:33:19 +0100 writes: > > > Forgive me if this has been as

[Rd] Fwd: help building very old R

2018-07-29 Thread David Hugh-Jones
eling brave can download the Docker image creation scripts from github.com/hughjonesd/rcheology . Cheers, David -- Sent from Gmail Mobile [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] apply with zero-row matrix

2018-07-29 Thread David Hugh-Jones
Called... ## [1] FALSE FALSE FALSE FALSE FALSE Similarly for apply(m, 2,...) if m has no columns. Is there a reason for this? Could it be documented? David -- Sent from Gmail Mobile [[alternative HTML version deleted]] __ R-devel@r-project

Re: [Rd] odd behavior of names

2018-07-29 Thread David Winsemius
64-bit) > > > > -- > Statistics & Software Consulting > GKX Group, GKX Associates Inc. > tel: 1-877-GKX-GROUP > email: ggrothendieck at gmail.com > > ______ > R-devel@r-project.org mailing list > https://stat.ethz.ch/

Re: [Rd] embeded R application on Windows prints broken character.

2018-04-26 Thread David Winsemius
3e290f17fd7914f > Randy > > [[alternative HTML version deleted]] > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel David Winsemius Alameda, CA, USA 'Any technology distinguishable from magic is insufficiently advanced.

Re: [Rd] strange warning: data() error?

2018-04-16 Thread David Winsemius
> On Apr 16, 2018, at 3:20 PM, David Winsemius wrote: > >> >> On Apr 16, 2018, at 2:58 PM, Therneau, Terry M., Ph.D. via R-devel >> wrote: >> >> A user asked me about this and I can't figure it out. >> >> tmt% R >> R Unde

Re: [Rd] strange warning: data() error?

2018-04-16 Thread David Winsemius
uot; "DE" "FL" "GA" "HI" "ID" "IL" "IN" "IA" "KS" "KY" "LA" "ME" "MD" "MA" ... > data(stack.loss) Warning message: In data(stack.loss) : data set ‘stack

Re: [Rd] alpha transparency doesn't work for lines when xpd=TRUE

2018-04-16 Thread David Winsemius
to see if T and F were still TRUE and FALSE at the time. It's possible that they were not in your session. Only TRUE and FALSE are reserved words.) > > Thank you. > > Jim > > > [[alternative HTML version deleted]] All the R mailing lists are plain text.

Re: [Rd] cat(fill=N)

2018-03-16 Thread David Hugh-Jones
t;. But I think the behaviour I expected is more intuitive. The natural use case is to limit line length, and if so, that should apply globally not just between elements. On 16 March 2018 at 16:19, Serguei Sokol wrote: > Le 16/03/2018 à 17:10, David Hugh-Jones a écrit : > >> Hi

[Rd] cat(fill=N)

2018-03-16 Thread David Hugh-Jones
on R 3.4.3, but I don't see mentions of it fixed in 3.4.4 or r-devel NEWS. Cheers, David [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] speeding up R compilation

2018-03-15 Thread David Hugh-Jones
" FFLAGS=-O0 ./configure --with-recommended-packages=no \ --with-libpng=no --with-libjpeg=no \ --with-tcl-config=/usr/lib/tcl8.4/tclConfig.sh \ --with-tk-config=/usr/lib/tk8.4/tkConfig.sh --with-tcl-tk=yes make -j4 Cheers, David [[alt

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

2018-03-04 Thread David Hugh-Jones
issue. Indeed, this looks like the problem: https://github.com/rstudio/rstudio/blob/master/src/cpp/r/R/Tools.R There, callAs is defined as running a function with error handlers which use `cat` to reprint warnings. Thanks! David -- Sent from Gmail Mobile

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

2018-03-03 Thread David Hugh-Jones
KAGES' In other words, lots of warnings, but none are caught. It works if you use the fully qualified version in utils: tryCatch(utils::install.packages("clipr", repos = "bullshit"), warning = function (w) cat("got a warning")) got

Re: [Rd] lm considers removed predictors when finding complete cases

2017-12-19 Thread David Winsemius
If by "striking" you mean hitting your head and saying "Oh course, I should have thought of that" then we would be in agreement. -- David. > > Any insight on this issue is appreciated. > > Best regards, > -- > Eduardo García Portugués > Ass

Re: [Rd] Array changing address unexpectedly

2017-11-12 Thread David Winsemius
dim = c(5)) # reset add = address(data) for(x in 1:5) { data[x] <- as.integer(0) } if (add == address(data)) { print("Address did not change") } else { print("Address changed") } # changes in both situations.

Re: [Rd] Duncan's retirement: who's taking over Rtools?

2017-09-28 Thread David Smith via R-devel
ight mean, and Duncan I'll also reach out to you directly off-list. Cheers, # David -Original Message- From: R-devel [mailto:r-devel-boun...@r-project.org] On Behalf Of Joris Meys Sent: Thursday, September 28, 2017 08:28 To: r-devel@r-project.org Subject: [Rd] Duncan's reti

Re: [Rd] what do you think about write.table(... qmethod = "excel")?

2017-09-20 Thread David Winsemius
1 = c("a", "b,c", "b", "The \"Washington, DC\""), > ##' x2 = rnorm(4), stringsAsFactors = FALSE) > ##' x1 > ##' fn <- tempfile(pattern = "testcsv", fileext = ".csv") > ##' writeCSV(x1, file = f

Re: [Rd] Natural vs National in R signon banner?

2017-09-01 Thread David Winsemius
lization support of messages may be available, but currently running in an English locale." That would have the desirable side-effect of alerting new users to the effective search strategy to use. -- David. > -M > > Op vr 1 sep. 2017 om 11:00 schreef Peter Dalgaard : > >&g

Re: [Rd] wish list: generalized apply

2016-12-08 Thread David Winsemius
)} ) Or: result <- sapply( seq.int( dim(A)[3] ) , function(i) { f1( A[,,i], x[,i] , b[i] )} ) (I doubt it will be any faster, but if 'i' is large, parallelism might help. The inner function appears to be fairly efficient.) -- David Winsemius Alameda, CA, USA __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Undocumented 'use.names' argument to c()

2016-09-20 Thread David Winsemius
> R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel David Winsemius Alameda, CA, USA __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] "plot.ts" doesn't respect the value of "pch" (+ blocked from Bugzilla signups)

2016-08-25 Thread David Winsemius
lty"), lwd = par("lwd"), axes = TRUE, frame.plot = axes, ann = par("ann"), cex.lab = par("cex.lab"), col.lab = par("col.lab"), font.lab = par("font.lab"), cex.axis = par("cex.axis"), col.axis = par("c

Re: [Rd] [FORGED] Re: Error in texi2dvi

2016-06-20 Thread David Scott
ribution to the R community, I don't approve of software which adds code to your document without informing you. David Scott -- _____ David Scott Department of Statistics The University of Auckland, PB 92019

Re: [Rd] Suggestion: pdf.options(embed=TRUE)

2016-05-31 Thread David Winsemius
f instead the function to modify might not be `grDevices:::initPSandPDFfonts` -- David. > > -- > Paul E. Johnson http://pj.freefaculty.org > Director, Center for Research Methods and Data Analysis http://crmda.ku.edu > > I only use this account for email list membersh

Re: [Rd] Is it possible to retrieve the last error? (not error *message*)

2016-05-04 Thread David Winsemius
eback` > I'm wondering if this delivers what you expect: .traceback()[1] > Thanks, > > Henrik > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel David Winsemius Alameda

Re: [Rd] R-3.2.5 Mac OS X package

2016-05-02 Thread David Winsemius
hile with only relative minor and mostly expected difficulties relating to packages that have external dependencies. > > Mick Jordan > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] R-3.2.4 Mac/Linux different in < on characters

2016-03-11 Thread David Winsemius
re set to en_US.UTF-8 > > In Java,FWIW, I get the Mac answer if I use String.compareTo and the Linux > answer if I use Collator.compareTo, but the result is consistent on Mac and > Linux. > > Mick Jordan > > __ > R-devel@r-p

Re: [Rd] In plot.ts, las=1 applies to ylab with multiple series and not to axis labels

2016-02-01 Thread David Winsemius
nfo() >> R version 3.2.3 (2015-12-10) >> Platform: x86_64-apple-darwin13.4.0 (64-bit) >> Running under: OS X 10.11.2 (El Capitan) > > > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel David Winsemius Alameda, CA, USA __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] inconsistency in POSIXlt

2015-12-08 Thread Lorenz, David
does nothing to the display. But it does take effect when converting to POSIXct: > as.POSIXct(tl) [1] "2001-04-05 12:00:00 MDT" I think that was expected, knowing that POSIXlt is specifically local time and if the tzone says Mountain time, then report in Mountain time. But then what us

[Rd] inconsistency in POSIXlt

2015-12-07 Thread Lorenz, David
The documentation for the POSIXlt class states '"POSIXlt" objects will often have an attribute "tzone", a character vector of length 3 giving the time zone name from the TZ environment variable and the names of the base time zone and the alternate (daylight-saving) time zone. Sometimes this may jus

Re: [Rd] MKL Acceleration encouraging; need adjust package builds?

2015-11-23 Thread David Smith
into BLAS endpoints, so you won't see benefits in all cases. # David Smith -- David M Smith R Community Lead, Revolution Analytics (a Microsoft company)  Tel: +1 (312) 9205766 (Chicago IL, USA) Twitter: @revodavid | Blog:  http://blog.revolutionanalytics.com We are hiring engineers for R

Re: [Rd] Hidden files problem in R CMD check

2015-09-26 Thread David Winsemius
starts Finder.app or you could try to restart the Finder by option (=alt) + rightclicking the Finder icon in the Dock and selecting Relaunch. -- David. > > Best regards, > Christian > > > On 09/26/15 23:01, Dirk Eddelbuettel wrote: >> >> On 26 September 2015

Re: [Rd] download.file() on ftp URL fails in windows with default download method

2015-08-12 Thread David Smith
We were also able to reproduce the issue on Windows Server 2012. If there's anything we can do to help please let me know; Elliot Waingold (CC'd here) can provide access to the VM we used for testing if that's of any help. # David Smith -- David M Smith R Community Lead, Revol

Re: [Rd] bquote/evalq behavior changed in R-3.2.1

2015-07-15 Thread David Winsemius
ed to solve the problem when this was posed as a question on StackOverflow, but Dayne was not happy with that solution for other reasons that he is not describing. -- David. > In R-3.1.3 we got > rapply(list(quote(1+myNumber)), evalq, envir=list2env(list(myNumber=17))) > #[1] 18 &

Re: [Rd] Defining a `show` function breaks the print-ing of S4 object -- bug or expected?

2015-06-30 Thread Lorenz, David
There is something I'm really missing here. The function show is a standardGeneric function, so the correct way to write it as method like this: setMethod("show", "Person", function(object) { for an object of class "Person" for example. Dave On Tue, Jun 30, 2015 at 10:11 AM, wrote: > Same thi

Re: [Rd] Estimating overdispersion when using glm for count and binomial data

2015-06-26 Thread David Fletcher
Wood has also been in touch, and plans to put it into mgcv David Fletcher Original post: I recently proposed a simple modification to Wedderburn's 1974 estimate of overdispersion for count and binomial data, which is used in glm for the quasipoisson and quasibinomial families (se

[Rd] Estimating overdispersion when using glm for count and binomial data

2015-06-24 Thread David Fletcher
parse data. I am happy to give more details if needed. David Fletcher Department of Mathematics and Statistics University of Otago Dunedin New Zealand D.J. Fletcher (2012) Estimating overdispersion when fitting a generalized linear model to sparse data. Biometrika 99:230–237 (http://biomet.oxf

Re: [Rd] Expected error with help.search in R 3.2.0

2015-06-14 Thread David Winsemius
On Jun 13, 2015, at 10:59 PM, Berend Hasselman wrote: > >> On 14-06-2015, at 06:47, David Winsemius wrote: >> >> Using the Mavericks/Yosemite version of R 3.2.0, I see this: >> >>> utils::help.search("linear models") >> Error in help(db[i,

[Rd] Expected error with help.search in R 3.2.0

2015-06-13 Thread David Winsemius
call is the same in both versions. I do not see where `help.search` calls `help`. Tracing help is unrevealing. The first call to `help` throws the error and the call looks exactly like the calls in R 3.1.2 -- David Winsemius Alameda, CA, USA ___

Re: [Rd] Why my messages are filtered from the list?

2015-05-28 Thread David Winsemius
y published to the list? If so - big apology. > Yes they were, to r-devel. Just not the r-help mailing list Archive I looked in. Sorry for my noise, too. -- David. > Regards, > Ivan > > On Fri, May 29, 2015 at 12:43 AM David Winsemius > wrote: > > On May

Re: [Rd] Why my messages are filtered from the list?

2015-05-28 Thread David Winsemius
ator might have simply discarded it without even looking at it. I do not see any posting from your address in the Archives for May or April. > [[alternative HTML version deleted]] > > __ > R-devel@r-project.org mailing list > http

[Rd] foreach hangs when using doMPI on Windows with Microsoft MPI

2015-05-25 Thread Teller, David
??I installed Microsoft MPI. Then installed the foreach and Rmpi packages. Then built doMPI from source. mpi.remote.exec works. foreach hangs with the main process and all worker processes idle. I launch my script with mpiexec: "C:\Program Files\Microsoft MPI\Bin\mpiexec" -n 3 "C:\Program

Re: [Rd] we need an exists/get hybrid

2014-12-04 Thread Lorenz, David
All, So that suggests that .GlobalEnv[["X"]] is more efficient than get("X", pos=1L). What about .GlobalEnv[["X"]] <- value, compared to assign("X", value)? Dave On Wed, Dec 3, 2014 at 3:30 PM, Peter Haverty wrote: > Thanks Winston! I'm amazed that "[[" beats calling the .Internal > directly

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

2014-10-29 Thread Lorenz, David
Fascinating! I tried the comparisons with all.equal(), expecting a description of the difference, but TRUE was returned in both cases. Dave On Wed, Oct 29, 2014 at 3:26 PM, Winston Chang wrote: > I ran into this and found the result very surprising: > > identical( quote({ a }), quote({ a }) )

Re: [Rd] How I() works in a formula

2014-10-03 Thread Lorenz, David
Joris, Basically, the I() function, as it is used in a regression model, allows the user to perform arithmetic operations on a variable that would otherwise be interpreted by the formula. It is not trapped as a special function as Error() is in aov(). There may be other applications where the c

Re: [Rd] parallel::detectCores(TRUE) gives: Error in system(cmd, TRUE) : error in running command

2014-08-22 Thread David Winsemius
er R 3.1.1 >> >>> parallel::detectCores(TRUE) >> Error in system(cmd, TRUE) : error in running command > > I'm Using R 3.1.1 on Windows 7 and it works. > > > parallel::detectCores(TRUE) > [1] 4 > > sessionInfo() > R version 3.1.1 (2014-07-10)

Re: [Rd] Inconsistency in vector printing depending on length

2014-05-16 Thread Lorenz, David
Dominic, Actually it makes perfect sense. When R prints vectors of length less than 9, it does not ever need to print 2 digits for the index. For lengths between 10 and 99, it may need to print an index with 2 digits, therefore, it prints the first index and all single digit indexes with a leadin

Re: [Rd] Historical NA question

2014-05-06 Thread David Winsemius
g that "-" has a higher precedence than '%in%'. > -(els%in%set) [1] -1 -1 > > - is.element(els,set) [1] -1 -1 -- David. > So following your advice doesn't really help me leave my precedence > problems behind. > > H. > >> Bill Dunlap &

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

2014-03-19 Thread David Winsemius
ecify the packages which version numbers were used in their publications. The authors of the packages would get recognition and the dependencies would be recorded. -- David. > > >> What I'm trying to figure out is why the standard "install the following >> list of packa

Re: [Rd] Revolutions Blog: January 2014 roundup

2014-02-04 Thread David Smith
Apologies, r-devel -- I meant to send that message to r-help as I've done for the past five years. I'll resend it there now. Sorry about the duplication. # David Smith -- David M Smith VP of Marketing, Revolution Analytics http://blog.revolutionanalytics.com Tel: +1 (650) 646-9523 (

[Rd] Revolutions Blog: January 2014 roundup

2014-02-04 Thread David Smith
an RSS reader, or by following me on Twitter (I'm @revodavid). Cheers, # David -- David M Smith VP of Marketing, Revolution Analytics http://blog.revolutionanalytics.com Tel: +1 (650) 646-9523 (Seattle WA, USA) Twitter: @revodavid __ R-devel@r

  1   2   3   >