Re: [R] Warning messages while parallel computing

2021-03-04 Thread Bill Dunlap
Perhaps just try source("xx.R") invisible(gc()) # do warnings appear after this? It does seem likely that the sourced file causes the problem, since parallel::createCluster labels the connections ":" and that label would show up in the warning. On Thu, Mar 4, 2021 at 11:28 AM Henrik Bengts

Re: [R] Warning messages while parallel computing

2021-03-04 Thread Henrik Bengtsson
Test with: clusterCall(cl, function() { suppressWarnings(source("xx.R")) }) If the warnings disappear, then the warnings are produced on the workers from source():ing the file. /Henrik On Thu, Mar 4, 2021 at 10:20 AM Bill Dunlap wrote: > > The warnings come from the garbage collector, which ma

Re: [R] Warning messages while parallel computing

2021-03-04 Thread Bill Dunlap
The warnings come from the garbage collector, which may be called from almost anywhere. It is possible that the file that is sourced causes the problem, but if you don't call parallel::stopCluster before removing the cluster object you will get those warnings. > cl <- parallel::makeCluster(3, typ

Re: [R] Warning messages while parallel computing

2021-03-04 Thread Henrik Bengtsson
I don't think 'parallel' is to blame in this case. Those warnings: Warning in for (i in seq_len(Ne + echo)) { : closing unused connection 19 come from base::source() [https://github.com/wch/r-source/blob/9caddc1eaad1f480283f1e98af34a328699d1869/src/library/base/R/source.R#L166-L244]. Unless th

Re: [R] Warning messages while parallel computing

2021-03-04 Thread Bill Dunlap
To avoid the warnings from gc(), call parallel::stopCluster(cl) before removing or overwriting cl. -Bill On Thu, Mar 4, 2021 at 1:52 AM Shah Alam wrote: > > Hello everyone, > > I am using the "parallel" R package for parallel computation. > > Code: > ># set number of cores > cl <- makeCl

Re: [R] Warning messages while parallel computing

2021-03-04 Thread Jiefei Wang
Hi Shah, The error usually means you started a cluster and forgot to close it. From the code you post, I cannot see any problem. Maybe you run `makeCluster` twice by accident? Best, Jiefei On Thu, Mar 4, 2021 at 5:53 PM Shah Alam wrote: > Hello everyone, > > I am using the "parallel" R package

[R] Warning messages while parallel computing

2021-03-04 Thread Shah Alam
Hello everyone, I am using the "parallel" R package for parallel computation. Code: # set number of cores cl <- makeCluster(8, type = "PSOCK") # Mac/Linux need to set as "FORK" # pass functions and objects to the cluster environment and set seed # all the items exported need

[R] warning messages

2013-10-22 Thread Ms khulood aljehani
Hi, i made a loop , then i got more than 50 warning messages, and i know what these messages and why they appears my question here is the warning message affecting in the accuracy of the results this is my loop nrep= 1000 n1=25 set.seed(123) nw1<-c() for (i in 1:nrep) {

[R] Warning messages upon new package loading

2011-09-30 Thread Sébastien Bihorel
Dear R-users, The following warning messages are displayed when I require a new package that I am currently developing. Everything seems to work just fine though, so I am wondering how to get rid of the warnings. Warning messages: 1: Class "frame" is defined (with package slot 'kiwixposepreprod')

Re: [R] Warning messages: not meaningful for factors

2010-09-05 Thread Dieter Menne
Dr Shrink wrote: > > I need to include the repeated structure in our data set object, > recall.sums.df, before using gls function. > Thus I used groupedData. > But I encountered error messages which may mean '*' is not not meaningful > factor. > I know that when reading Pinheiro/Bates one has

[R] Warning messages: not meaningful for factors

2010-09-05 Thread Dr Shrink
Dear Experts, I need to include the repeated structure in our data set object, recall.sums.df, before using gls function. Thus I used groupedData. But I encountered error messages which may mean '*' is not not meaningful factor. Please let me know what I have to do. Thanks, Jeong > recall.sums.

Re: [R] Warning messages: Reached total allocation of 1023Mb: see help(memory.size)

2009-10-15 Thread Steve Lianoglou
Hi, On Oct 15, 2009, at 1:06 PM, Fayanna wrote: Hi there, I run the following code in R and got the warning like that, how can I change the memory.size? Or anything else? Thanks a lot! You haven't told us what type of machine you're on, or how much ram you have (it might very well be that

[R] Warning messages: Reached total allocation of 1023Mb: see help(memory.size)

2009-10-15 Thread Fayanna
Hi there, I run the following code in R and got the warning like that, how can I change the memory.size? Or anything else? Thanks a lot! Faye temp<-apply(Idd4.perms$permstats[-stratum1,], + 2,sort) Error: cannot allocate vector of size 47.5 Mb In addition: Warning messages: 1: In apply(Idd4.per

Re: [R] Warning messages when using rbind

2009-06-21 Thread baptiste auguie
Hi, You seem to have a glitch in one file, testread12=read.table("Test100.txt", head = T) str(testread12) # Column131 is converted to a factor # $ Column131: Factor w/ 2920 levels "--","-0.000122393",.. combining the second data set with this one will convert the new data into factor for this

[R] Warning messages when using rbind

2009-06-21 Thread gug
Hello, I have been using a very simple rbind approach (simple enough for me to understand) to combine data files within R. It seems to work fine, but then generates warning messages for reasons that I can't begin to understand. The text below shows the issue. testread12=read.table("C:/Files/

Re: [R] Warning messages in Splancs package :: no non-missing arguments to min; returning Inf

2009-03-30 Thread Barry Rowlingson
On Mon, Mar 30, 2009 at 7:12 AM, D wrote: > Hi, > > I would need some help with the splans package in R. > > I am using a Shapefile (downloadable at) > http://rapidshare.com/files/215206891/Redlands_Crime.zip > > and the following execution code > > > setwd("C:\\Documents and > Settings\\Dejan\\De

Re: [R] Warning messages in Splancs package :: no non-missing arguments to min; returning Inf

2009-03-30 Thread D
Dear Barry, I am new to R and I am sorry for the sens information. I am using R 2.8.1 for Windows. Does the error come from the kernel2d function, or from the image function? -- It comes from the kernel2d function. Does it do that for any data points? -- Not yet tried with other data, only two m

[R] Warning messages in Splancs package :: no non-missing arguments to min; returning Inf

2009-03-29 Thread D
Hi, I would need some help with the splans package in R. I am using a Shapefile (downloadable at) http://rapidshare.com/files/215206891/Redlands_Crime.zip and the following execution code setwd("C:\\Documents and Settings\\Dejan\\Desktop\\GIS\\assignment6\\DataSet_Redlands_Crime\\Redlands_Crim

[R] Warning messages from quantreg

2009-03-26 Thread Daren Tan
Hi, I keep getting warning messages from quantreg about "tiny diagonals replaced with Inf when calling blkfct". Is there any cause for concern like improper codes, NAs in datasets or missing values ? Thanks Stanley __ R-help@r-project.org mailing list h

[R] Warning messages about replacing previous import...

2008-02-21 Thread Petar Milin
Hello! I have posted this message before, but no answer. Now, after a few upgrades, I still have the same warning messages. I am a bit worried, since I do not know does this affect or could affect R. I use R under Linux (Ubuntu 6.06). After start, and after loading few libraries, I got following