[R] olsrr and substitute lm -> lmRob

2023-10-10 Thread Ashim Kapoor
Dear all,

I wish to use backward selection from the package olsrr.
?ols_step_backward_p
This gives me a model of class lm.
I wish to then run lmRob from the robust package on the SAME variables
ie I want to substitute lm -> lmRob in the function call which created
the lm model.

Here is a reprex:

library(olsrr)
library(robust)

myformula <- lm(mpg~.,data = mtcars)

# This is how I do backward selection.

chosen.model = ols_step_backward_p(myformula,details=F)

# Chosen model

chosen.model$model

# Not sure if this is the correct thing to do

lmRob(chosen.model$model)

--

My query is : is the above correct ? Do I need to do some meta
programming and substitute lm with lmRob ?
I am not sure how I would do that in this context using the
?substitute function perhaps ?

Many thanks,
Ashim

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Text showing when R is launched

2023-10-10 Thread Ivan Krylov
On Mon, 9 Oct 2023 22:56:50 +
George Loftus  wrote:

> However when I launch R or resume the R window after going on a
> different programme the following text is running

Do you have anything valuable stored in /Users/admin/.RData? Does the
message disappear if you move the file away?

If you don't get your problem solved here, try asking at
r-sig-...@r-project.org.
 
> I have also copied and pasted for ease

Thank you for doing that! This is exactly the right thing to do.

-- 
Best regards,
Ivan

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Text showing when R is launched

2023-10-10 Thread Rui Barradas

Às 23:56 de 09/10/2023, George Loftus escreveu:

Good Evening,

I was wondering if you were able to help, I am running R on MacOS, it is the 
2020 model mac so have install the Intel arm of R which I believe is correct

However when I launch R or resume the R window after going on a different 
programme the following text is running

I have also copied and pasted for ease

1   HIToolbox   0x7ff82142e0c2 
_ZN15MenuBarInstance22RemoveAutoShowObserverEv + 30
2   HIToolbox   0x7ff82146a638 
_ZL17BroadcastInternaljPvh + 167
3   SkyLight0x7ff81c70f23d 
_ZN12_GLOBAL__N_123notify_datagram_handlerEj15CGSDatagramTypePvmS1_ + 1030
4   SkyLight0x7ff81ca2205a 
_ZN21CGSDatagramReadStream26dispatchMainQueueDatagramsEv + 202
5   SkyLight0x7ff81ca21f81 
___ZN21CGSDatagramReadStream15mainQueueWakeupEv_block_invoke + 18
6   libdispatch.dylib   0x7ff8178867fb 
_dispatch_call_block_and_release + 12
7   libdispatch.dylib   0x7ff817887a44 
_dispatch_client_callout + 8
8   libdispatch.dylib   0x7ff8178947b9 
_dispatch_main_queue_drain + 952
9   libdispatch.dylib   0x7ff8178943f3 
_dispatch_main_queue_callback_4CF + 31
10  CoreFoundation  0x7ff817b215f0 
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
11  CoreFoundation  0x7ff817ae1b70 __CFRunLoopRun + 2454
12  CoreFoundation  0x7ff817ae0b60 CFRunLoopRunSpecific 
+ 560
13  HIToolbox   0x7ff82142e766 
RunCurrentEventLoopInMode + 292
14  HIToolbox   0x7ff82142e576 
ReceiveNextEventCommon + 679
15  HIToolbox   0x7ff82142e2b3 
_BlockUntilNextEventMatchingListInModeWithFilter + 70
16  AppKit  0x7ff81ac31293 _DPSNextEvent + 909
17  AppKit  0x7ff81ac30114 
-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] 
+ 1219
18  R   0x000103d60c76 -[RController 
doProcessEvents:] + 166
19  R   0x000103d5b295 -[RController 
handleReadConsole:] + 149
20  R   0x000103d6466f Re_ReadConsole + 175
21  libR.dylib  0x000104442154 R_ReplDLLdo1 + 148
22  R   0x000103d71c47 run_REngineRmainloop 
+ 263
23  R   0x000103d66d5f -[REngine runREPL] + 
143
24  R   0x000103d56718 main + 792
25  dyld0x7ff8176d4310 start + 2432
1   HIToolbox   0x7ff8214a1726 
_ZN15MenuBarInstance22EnsureAutoShowObserverEv + 102
2   HIToolbox   0x7ff82146a638 
_ZL17BroadcastInternaljPvh + 167
3   SkyLight0x7ff81c70f23d 
_ZN12_GLOBAL__N_123notify_datagram_handlerEj15CGSDatagramTypePvmS1_ + 1030
4   SkyLight0x7ff81ca2205a 
_ZN21CGSDatagramReadStream26dispatchMainQueueDatagramsEv + 202
5   SkyLight0x7ff81ca21f81 
___ZN21CGSDatagramReadStream15mainQueueWakeupEv_block_invoke + 18
6   libdispatch.dylib   0x7ff8178867fb 
_dispatch_call_block_and_release + 12
7   libdispatch.dylib   0x7ff817887a44 
_dispatch_client_callout + 8
8   libdispatch.dylib   0x7ff8178947b9 
_dispatch_main_queue_drain + 952
9   libdispatch.dylib   0x7ff8178943f3 
_dispatch_main_queue_callback_4CF + 31
10  CoreFoundation  0x7ff817b215f0 
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
11  CoreFoundation  0x7ff817ae1b70 __CFRunLoopRun + 2454
12  CoreFoundation  0x7ff817ae0b60 CFRunLoopRunSpecific 
+ 560
13  HIToolbox   0x7ff82142e766 
RunCurrentEventLoopInMode + 292
14  HIToolbox   0x7ff82142e576 
ReceiveNextEventCommon + 679
15  HIToolbox   0x7ff82142e2b3 
_BlockUntilNextEventMatchingListInModeWithFilter + 70
16  AppKit  0x7ff81ac31293 _DPSNextEvent + 909
17  AppKit  0x7ff81ac30114 
-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] 
+ 1219
18  R   0x000103d60c76 -[RController 
doProcessEvents:] + 166
19  R   0x000103d5b295 -[RController 
handleReadConsole:] + 149
20  R   0x000103d6466f Re_ReadConsole + 175
21  libR.dylib  0x000104442154 R_ReplDLLdo1 + 148
22  R   0x000

[R] Problem with compatible library versions

2023-10-10 Thread Sabine Braun
On the github website I have reported several bugs with new versions of 
the tidyverse group (probably dplyr) which prevent me from using R 
normally. I wanted to go back to older versions but this seems not bo be 
easy. I downloaded R 4.1.2. and Rtools 40 but the library versions 
installed are still the newest ones. I was able to install dplyr 1.0.7. 
manually but there are error messages on incompatibility when loading 
this version. Is there a possibility to load older library versions 
which alre compatible ?

Thank you very much!

Best regards

Sabine Braun


-- 


Dr. Sabine Braun
Leitung

www.iap.ch 

Institut für Angewandte Pflanzenbiologie (IAP) AG
Benkenstrasse 254a
CH-4108 Witterswil
++41 (0)61 485 50 71
++41 (0)79 696 69 85

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.