Re: [R] parallel: socket connection behind a NAT router

2021-01-18 Thread Martin Morgan
A different approach uses doRedis https://CRAN.R-project.org/package=doRedis (currently archived, but actively developed) for use with the foreach package, or RedisParam https://github.com/mtmorgan/RedisParam (not released) for use with Bioconductor's BiocParallel package. These use a redis ser

Re: [R] parallel: socket connection behind a NAT router

2021-01-18 Thread Henrik Bengtsson
On Mon, Jan 18, 2021 at 9:42 PM Jiefei Wang wrote: > > Thanks for introducing this interesting package to me! it is great to know a > new powerful tool, but it seems like this method does not work in my > environment. ` parallelly::makeClusterPSOCK` will hang until timeout. > > I checked the ver

Re: [R] parallel: socket connection behind a NAT router

2021-01-18 Thread Jiefei Wang
Thanks for introducing this interesting package to me! it is great to know a new powerful tool, but it seems like this method does not work in my environment. ` parallelly::makeClusterPSOCK` will hang until timeout. I checked the verbose output and it looks like the parallelly package also depends

[R] Errors and OS Differences with as.POSIXct and as.POSIXlt

2021-01-18 Thread bill
Hello, Dates created with as.POSIXct differ between Windows/Mac and Linux. Specifically this time that is during a gap when the hour does not exist due to daylight savings time: as.POSIXct("2018-03-11 02:09:36", tz="America/New_York") Gives on Windows: [1] "2018-03-11 EST" Gives on Li

[R] Different results on running Wilcoxon Rank Sum test in R and SPSS

2021-01-18 Thread bharat rawlley via R-help
Hello,  On running the Wilcoxon Rank Sum test in R and SPSS, I am getting the following discrepancies which I am unable to explain. Q1 In the attached data set, I was trying to compare freq4w_n in those with drug_code 0 vs 1. SPSS gives a P value 0.031 vs R gives a P value 0.001779.  The code I u

Re: [R] Print out progress reports of add1()

2021-01-18 Thread Duncan Murdoch
On 18/01/2021 12:08 p.m., Chao Liu wrote: Thank you Duncan. Do you by chance know any way around this? I don't see any need for a trace when there's only one fit being done. The tests that are shown are all you need. Duncan Murdoch On Mon, Jan 18, 2021 at 11:58 AM Duncan Murdoch mailto:

Re: [R] parallel: socket connection behind a NAT router

2021-01-18 Thread Henrik Bengtsson
If you have SSH access to the workers, then workers <- c("machine1.example.org", "machine2.example.org") cl <- parallelly::makeClusterPSOCK(workers) should do it. It does this without admin rights and port forwarding. See also the README in https://cran.r-project.org/package=parallelly. /Henrik

Re: [R] Print out progress reports of add1()

2021-01-18 Thread Chao Liu
Thank you Duncan. Do you by chance know any way around this? On Mon, Jan 18, 2021 at 11:58 AM Duncan Murdoch wrote: > You are using add1 on an "lm" object, and add1.lm doesn't have a trace > parameter. > > Duncan Murdoch > > On 18/01/2021 10:55 a.m., Chao Liu wrote: > > I have a few questions ab

Re: [R] Print out progress reports of add1()

2021-01-18 Thread Duncan Murdoch
You are using add1 on an "lm" object, and add1.lm doesn't have a trace parameter. Duncan Murdoch On 18/01/2021 10:55 a.m., Chao Liu wrote: I have a few questions about using add1(). First of all, according to the R document of add1(), the trace = TRUE function prints out progress reports but m

[R] Print out progress reports of add1()

2021-01-18 Thread Chao Liu
I have a few questions about using add1(). First of all, according to the R document of add1(), the trace = TRUE function prints out progress reports but my attempts to do this have failed several times. So how do we print out the progress reports of adding terms to the model so as to test for impr

[R] parallel: socket connection behind a NAT router

2021-01-18 Thread Jiefei Wang
Hi all, I have a few cloud instances and I want to use them to do parallel computing. I would like to create a socket cluster on my local machine to control the remote instances. Here is my network setup: local machine -- NAT -- Internet -- cloud instances In the parallel package, the server nee

Re: [R] A question regarding 749 R[21525:2855847] Warning

2021-01-18 Thread Patrick (Malone Quantitative)
Checked R-Sig-Mac, which I should have done before posting, then leaving this alone on R-help. Seems to be a solved problem: * The Mac R GUI: "R-GUI-7903-4.0-high-sierra-Debug" works fine. Those warnings disappeared with this R GUI (with a 16-inch MacBook Pro 2019, Big Sur 11.0.1 operating

Re: [R] A question regarding 749 R[21525:2855847] Warning

2021-01-18 Thread Patrick (Malone Quantitative)
The current version of Big Sur is 11.1, with 11.2 in public beta. So this may have been fixed. Maedeh, are you able to check? On Sun, Jan 17, 2021 at 4:10 PM Maedeh Kamali wrote: > > Dear Gregory Coast, > > Thanks for your reply. > I searched so much regarding how to fix this problem. Unfortunate