search for: 667722

Displaying 11 results from an estimated 11 matches for "667722".

Did you mean: 367722
2009 Apr 26
6
Memory issues in R
...ger (Mb) max used (Mb) Ncells 186251 5.0 407500 10.9 350000 9.4 Vcells 98245 0.8 786432 6.0 358194 2.8 > BR <- read.csv ("C:/R-Stats/Bat calls/Reduced bats.csv") > gc() used (Mb) gc trigger (Mb) max used (Mb) Ncells 188034 5.1 667722 17.9 378266 10.2 Vcells 9733249 74.3 20547202 156.8 20535538 156.7 > attach(BR) > library(ggplot2) > library(MASS) > library(batcalls) > BRC<-kde2d(Sc,Fc) Error: cannot allocate vector of size 228.9 Mb > gc() used (Mb) gc trigger (M...
2003 Sep 11
2
(structured) programming style
I find that because R functions are call by value, and because there are no pointer or reference types (a la C++), I am making fairly heavy use of lexical scoping to modify variables. E.g. outer <- function() { m <- matrix(0, 2, 2) inner <- function() { m[2,2] <<- 3 ... } } I am not too pleased with this, as it violates basic rules of structured programming, namely
2003 Jul 01
1
Warning message in scatter.smooth (modreg)
...e following error was produced: > scatter.smooth(Na, S) Warning message: k-d tree limited by memory. ncmax= 200 I haven't used scatter.smooth much but when I have, I haven't seen this message before. gc() returns > gc() used (Mb) gc trigger (Mb) Ncells 417693 11.2 667722 17.9 Vcells 103949 0.8 786432 6.0 This is on a Win XP box with 512 MB RAM, with plenty of space still available (Task Manager Reports 216 MB of RAM and pagefile in use). I have looked through the help files for loess and loess.control but didn't see anything about ncmax. Can someone...
2003 Jun 02
1
'methods' and environments.
...fold in my case). The (excessive) duplication (as a simple example shown below demonstrates it) is now enforced (as environments are copied too) !!! > m <- matrix(0, 600^2, 50) ## RSS of the R process is about 150MB > rm(m); gc() used (Mb) gc trigger (Mb) Ncells 364813 9.8 667722 17.9 Vcells 85605 0.7 14858185 113.4 ## RSS is now about 15 MB > library(methods) > setClass("A", representation(a="matrix")) [1] "A" > a <- new("A", a=matrix(0, 600^2, 50)) ## The RSS will peak to 705 MB !!!!!! Are there any plans to make...
2002 Apr 29
1
Garbage collection: RW1041
...called & everything is freed, ie we end up with the same memory as before. Here is an example: > gc() used (Mb) gc trigger (Mb) Ncells 217415 5.9 467875 12.5 Vcells 63668 0.5 786432 6.0 > doit() > gc() used (Mb) gc trigger (Mb) Ncells 342932 9.2 667722 17.9 Vcells 7966401 60.8 14760173 112.7 > doit() > gc() used (Mb) gc trigger (Mb) Ncells 468373 12.6 818163 21.9 Vcells 15869121 121.1 22798845 174.0 > doit() Error: cannot allocate vector of size 3750 Kb In addition: Warning message: Reached total allocation of...
2003 Dec 06
7
Windows Memory Issues
...> # Memory usage for Rui process = 19,800 > testData <- matrix(rnorm(10000000), 1000) # Create big matrix > # Memory usage for Rgui process = 254,550k > rm(testData) > # Memory usage for Rgui process = 254,550k > gc() used (Mb) gc trigger (Mb) Ncells 369277 9.9 667722 17.9 Vcells 87650 0.7 24286664 185.3 > # Memory usage for Rgui process = 20,200k In the above code, R cannot recollect all memory used, so the memory usage increases from 19.8k to 20.2. However, the following example is more typical of the environments I use . > # Memory 128,100k &g...
2004 Aug 18
1
Memory Problems in R
...> mem.limits() nsize vsize NA NA > gc() used (Mb) gc trigger (Mb) Ncells 432197 11.6 531268 14.2 Vcells 116586 0.9 786432 6.0 > v<-rep(0,(2510)*(25000)) > object.size(v) [1] 5.02e+08 > gc() used (Mb) gc trigger (Mb) Ncells 432210 11.6 667722 17.9 Vcells 62866589 479.7 63247172 482.6 > 3) gc trigger is set ~ 3x the size of the matrix > ls() character(0) > mem.limits() nsize vsize NA NA > gc() used (Mb) gc trigger (Mb) Ncells 432197 11.6 531268 14.2 Vcells 116586 0.9 786432 6.0 > A<-matr...
2003 Oct 28
1
Loading a "sub-package"
Hi Folks, The inspiration for this query is described below, but it prompts a general question: If one wants to use only one or a few functions from a library, is there a way to load only these, without loading the library, short of going into the package source and extracting what is needed (including of course any auxiliary functions and compiled code they may depend on)? What prompted this
2012 May 02
1
DKIM Pass - Fail
Hi Dear Community Friends, it is few days now, i am trying to figure out why DKIM is working / not working. Any assistance would be very much appreciable. Server IP is not blacklisted ever, MX, PTR SPF, DKIM records are available in DNS. why it is working at Gmail, why failing at Yahoo? Gmail dkim=pass header.i=@digital-infotech.net Yahoo: domainkeys=neutral (no sig);
2004 Jan 14
2
R internal data types
...t; gc() used (Mb) gc trigger (Mb) Ncells 415227 11.1 597831 16 Vcells 103533 0.8 786432 6 > x <- seq(0,100000,1) > is.integer(x) [1] FALSE > is.double(x) [1] TRUE > object.size(x) [1] 800036 > gc() used (Mb) gc trigger (Mb) Ncells 415247 11.1 667722 17.9 Vcells 203543 1.6 786432 6.0 > x <- as.integer(x) > is.integer(x) [1] TRUE > is.double(x) [1] FALSE > gc() used (Mb) gc trigger (Mb) Ncells 415249 11.1 741108 19.8 Vcells 153543 1.2 786432 6.0 > x <- 1:100000 > is.integer(x) > gc()...
2011 Sep 14
2
External pointers and an apparent memory leak
I'm using external pointers and seemingly leaking memory. My determination of a memory leak is that the R process continually creeps up in memory as seen by top while the usage as reported by gc() stays flat. I have isolated the C code: void h5R_allocate_finalizer(SEXP eptr) { Rprintf("Calling the finalizer\n"); void* vector = R_ExternalPtrAddr(eptr); free(vector);