Re: [R] Stop or limit to console printing large list and so on

2024-09-11 Thread Fer Arce via R-help
Hello Stephen. I am not sure of the exact details of your problem, but following the second part of your e-mail, if you accidentally print a large object in the console and do not want to wait (i.e. you want to stop printing), just press C-c C-c and it will stop it (it will stop any process ha

Re: [R] non-conformable arrays

2024-09-11 Thread Ivan Krylov via R-help
В Wed, 11 Sep 2024 17:55:53 +0200 Thierry Onkelinx пишет: > For those how like a fully reproducible example: > the offending line in the code: > https://github.com/inbo/multimput/blob/e1cd0cdff7d2868e4101c411f7508301c7be7482/R/impute_glmermod.R#L65 > a (failing) unit test for the code: > https://

Re: [R] non-conformable arrays

2024-09-11 Thread peter dalgaard
Hum... Two points: You are using |> a lot and tcrossprod() is a primitive, so ignores argnames. This makes me suspicious that things like ... ) |> tcrossprod(x = mm) might not do what you think it does. E.g., > a <- matrix(1,10,2) > b <- matrix(1,3,2) > tcrossprod(y=b, x=a) [,1] [,2] [

Re: [R] Stop or limit to console printing large list and so on

2024-09-11 Thread stephen sefick
No an interrupt does not help, unfortunately. I'll just try be more careful. Stephen Sefick On Wed, Sep 11, 2024, 11:47 Ivan Krylov wrote: > В Wed, 11 Sep 2024 09:44:05 -0400 > stephen sefick пишет: > > > I am having a problem with accidentally typing an object name at the > > console that is

[R] non-conformable arrays

2024-09-11 Thread Thierry Onkelinx
Dear all, I'm puzzled by this error. When running tcrossprod() within the function it returns the error message. The code also outputs the object a and b. Running the tcrossprod() outside of the function works as expected. cat("a <-") dput(a) cat("b <-") dput(b)

Re: [R] Stop or limit to console printing large list and so on

2024-09-11 Thread Ivan Krylov via R-help
В Wed, 11 Sep 2024 09:44:05 -0400 stephen sefick пишет: > I am having a problem with accidentally typing an object name at the > console that is a very large list and then having to wait for it to be > printed until I can resume my work. Does it help to interrupt the process? https://www.gnu.or

[R] Stop or limit to console printing large list and so on

2024-09-11 Thread stephen sefick
Hello All: Background/setup: Editor Emacs using "isend" to send code to shell in another window. This is on Linux. I can share more of the setup if others would find it useful, but I suspect this is an option I am unaware of. Problem: I am having a problem with accidentally typing an object name