Re: [R] [EXT] Mac ARM for lm() ?

2024-11-15 Thread ivo welch
nces and > > Mathematics & Statistics University of Melbourne, VIC 3010 > > Australia Tel: (+61) 0403 138 955 Email: > > a...@unimelb.edu.au Website: > > https://researchers.ms.unimelb.edu.au/~apro@unimelb/ > > > I acknowledge the Traditional Owners of

[R] mclapply hanging occasionally on macos

2024-12-29 Thread Ivo Welch
just a plain macos desktop, latest sequoia. no clusters or anything complex. when I ^c out of it, a `traceback()` on macos tells me that ``` [highest number]: selectChildren(ac[!fin], -1) [-1]: mclapply(... ``` I don't know what selectChildren is waiting for (internal? macos?), but it certainl

[R] mclapply hanging occasionally on macos

2024-12-31 Thread Ivo Welch
sequoia, 15.2. R --vanilla : 4.4.2 (2024-10-31). I have the same basic setup on three macs: a macbook air, a mac pro m1, and a mac mini m4. The following code is running into a bug on the mac pro m1 and the mac mini, but works just fine on my macbook air. (of course, it doesn't do anything usef

[R] Weird Behavior of mean

2024-12-13 Thread Ivo Welch
Is the following a strange behavior for `mean` vs. `sd` ? ``` $ R --vanilla. ## 4.4.2 > x=c(NA,1,2,3) > c( mean(x,na.rm=T), sd(x,na.rm=T) ) [1] 2 1 > T=20 ## bad idea for a parameter. T is also used for TRUE > c( mean(x,na.rm=T), sd(x,na.rm=T) ) [1] NA 1 > ``` This one was a baffler for me to

Re: [R] Weird Behavior of mean

2024-12-13 Thread ivo welch
sorts of objects that they can use.more philosophically, some variables should not be overwritable, or at least trigger a warning. As Dante wrote, Abandon all hope ye who enter R. -- Ivo Welch (ivo.we...@ucla.edu) [[alternative HTML version de

Re: [R] Parser For Line Number Tracing

2025-01-19 Thread Ivo Welch
can be improved at a very low cost to the development team and a very high benefit to newbies. Regards, /ivo On Sun, Jan 19, 2025 at 2:39 AM Duncan Murdoch wrote: > > On 2025-01-18 8:27 p.m., Ivo Welch wrote: > > I am afraid my errors are worse! (so are my postings. I should have

Re: [R] Parser For Line Number Tracing

2025-01-18 Thread Ivo Welch
ify as needed. > > > Regards, > Iris > > On Sat, Jan 18, 2025 at 6:41 PM Ivo Welch wrote: > > > > I often find myself hunting where in my program an error has happened, > > (of course, in R, many error messages are mysterious in themselves, > >

Re: [R] [External] Re: Parser For Line Number Tracing

2025-01-19 Thread Ivo Welch
? On Sun, Jan 19, 2025 at 8:46 AM wrote: > > On Sun, 19 Jan 2025, Ivo Welch wrote: > > > Hi Duncan — Wonderful. Thank you. Bug or no bug, I think it would be > > a huge improvement for user-friendliness if R printed the last line by > > default *every time* a script d

[R] Parser For Line Number Tracing

2025-01-18 Thread Ivo Welch
I often find myself hunting where in my program an error has happened, (of course, in R, many error messages are mysterious in themselves, too, making it even harder.) the way I do it is mostly with inserting `message()` statements. what I would really like to have is a parser that inserted 'curl

Re: [R] Parser For Line Number Tracing

2025-01-18 Thread Ivo Welch
I am afraid my errors are worse! (so are my postings. I should have given an example.) ``` x <- 1 y <- 2 nofunction("something stupid I am doing!") z <- 4 ``` and ``` > source("where-is-my-water.R") Error in nofunction("something stupid I am doing!") : could not find function "nofunction" ``

Re: [R] mclapply hanging occasionally on macos

2024-12-31 Thread Ivo Welch
it with a direct install. On Tue, Dec 31, 2024 at 6:11 AM Ivan Krylov wrote: > > В Mon, 30 Dec 2024 19:16:11 -0800 > Ivo Welch пишет: > > > useless.function <- function( ) { > > y <- rnorm(3); x <- rnorm(3) > > summary( lm( y ~ x )) ## u

<    1   2   3