Displaying 20 results from an estimated 8000 matches similar to: "R process taking over memory"
2012 Apr 05
1
reclaiming lost memory in R
Dear list,
I am trying to reclaim what I think is lost memory in R, I have been using gc(), rm() and also using Rprof to figure out where all the memory is going but I might be missing something.
I have the following situation
basic loop which calls memoryHogFunction:
for i in (1:N) {
dataset <- generateDataset(i)
fit <- try( memoryHogFunction(dataset, otherParameters))
}
and
2018 May 07
2
Comparing figures?
Hello,
I am working on tests to compare figures. I have been using ImageMagick, which creates a figure signature, and I can compare a "test" figure signature against a saved "reference" figure signature. It seems to work pretty well. However, it is slow as it requires reading from the file system.
Are there any options to compare figures on memory? For example, if I
2017 Nov 27
2
withTimeout bug, it does not work properly with nlme anymore
Hello,
I was relying on withTimeout (from R.utils) to help me stop nlme when it ?hangs?. However, recently this stopped working. I am pasting a reproducible example below: withTimeout should stop nlme after 10 seconds but the code will generate data for which nlme does not converge (or takes too long) and withTimeout does not stop it. I tried this both on a linux (64 bit, CentOS 7, R 3.4.1,
2018 May 07
0
Comparing figures?
I suggest perceptual diff. You could write a wrapper around it.
http://pdiff.sourceforge.net
On Mon, 7 May 2018 16:49 Ramiro Barrantes, <ramiro at precisionbioassay.com>
wrote:
> Hello,
>
> I am working on tests to compare figures. I have been using ImageMagick,
> which creates a figure signature, and I can compare a "test" figure
> signature against a saved
2012 Apr 03
1
Nlme not working on very similar initial values
Hello,
I am using CentOS Linux 6.0, R 2.14.1 and nlme 3.1-103
I am trying to fit some models using nlme, and what was happening was that it would get to some datasets and just "stall", the memory usage would grow and grow and eventually crash.
I looked carefully into one of the datasets and ran it separately. It worked. After narrowing down on all possibilities, I found that the main
2013 Jan 09
5
R encrypt/decrypt
Hello,
I am working on a web system (php) that uses R in the backend, and we need some basic fast encryption/decryption for the underlying mysql database that can be used by both R AND php. It does not need to be top-of-the-line, but just provide some basic level of fast encryption/decryption.
Any suggestions?
Thank you,
Ramiro
[[alternative HTML version deleted]]
2017 Aug 08
1
Bug?
Hello,
In my code I found something that looks like an anomaly, I found a reproducible example in which I am just trying to compare each row in a data frame against the first row:
a<-data.frame(row=c("B","C","B"),column=c(2,2,10),assay=c("Assay1","Assay1","Assay1"),plate=c(1,1,1),stringsAsFactors=FALSE)
apply(a[1:2,],1,function(x) {
2012 Mar 15
2
Timer on a function
Hello,
I have a program that consists of a loop fitting a function over many models. Sometimes the fitting on a particular model takes minutes to converge. Is there a way that I can limit the amount of time that R spends on a given model:
say if my line is:
fittingFunction( func, model.1)
can I have some function:
stopIfUnderTime( fittingFunction( func, model.1) , 5 )
where
2012 Aug 01
3
Best Programming Practices regarding data frames
Hello,
I come from using different programming languages (C++, Mathematica, Perl) but have been using R extensively for several months. I see the data frame as a key piece of the language and wanted to inquire people's experience regarding its use.
Say you have a data frame D
D <- data.frame(some columns)
and you define a function that needs the information from this data frame and is
2012 Jan 16
3
Using Sweave to generate multiple documents
Hello,
I tried looking for a Sweave-specific list but didn't find one, nor did I find an answer via google, so will send this question to the general R list. Please feel free to point me in the right direction.
I am using Sweave and would like to have a single .Rnw document that generates 1) a summary report, 2) a full report, 3) slides for a talk. I think my material lends itself to have
2018 Jan 30
0
withTimeout bug, it does not work properly with nlme anymore
>>>>> Ramiro Barrantes <ramiro at precisionbioassay.com>
>>>>> on Mon, 27 Nov 2017 21:02:52 +0000 writes:
> Hello, I was relying on withTimeout (from R.utils) to help
> me stop nlme when it ?hangs?. However, recently this
> stopped working. I am pasting a reproducible example
> below: withTimeout should stop nlme after 10
2012 Jan 10
1
Converting BY to a data.frame
Hello,
I am trying to convert BY to a data frame, consider the following example:
exampleDF<-data.frame(a=c(1,2),b=c(10,20),name=c("first","second"))
exampleBY<-by(exampleDF,with(exampleDF,paste(a,b,sep="_")),
function(x) {
data.frame(
name=as.character(x$name),
a=x$a,
2012 Aug 31
1
Class that wraps Data Frame
Hello,
I have again a "good practices"/programming theory question regarding data.frames.
One of the fundamental objects that I use is the data frame with a particular set of columns that I would fill or get information from, and an entire system would revolve around getting information from or putting information to such data.frame.
On a different OOP programming language I would be
2019 Oct 10
2
How to refer to my package from another package DESCRIPTION
Hello, I am developing some packages. Package1 requires Package2, both of which I developed:
Right now Package2 is installed properly here:
/myHome/libraries/Package2
Package1 needs Package2. Package1 refers to Package2 both in the Roxygen @import field for one of the functions, and also in the Imports section in the DESCRIPTION
However, when I do ?R CMD check Package1? I get:
* checking
2003 Mar 05
6
A couple of enhacements suggestions
... are they possible?, or better yet: Are they enhacements at all?
First, make it possible to use the vars defined in the params
file usable in the policy and shorewall.conf also.
Second, make it possible to specify a pseudo log level
like NULL, SWNULL (SW by Shorewall) or an appropiate name
that would have the same effect as not specifying a log level
at all.
These modifications together
2017 Nov 26
0
withTimeout does not timeout nlme anymore
Hello,
I was relying on withTimeout (from R.utils) to help me stop nlme when it ?hangs?. However, recently this stopped working. I am pasting a reproducible example below: withTimeout should stop nlme after 10 seconds but in this example it does not. I tried this both on a linux (64 bit, CentOS 7, R 3.4.1, nlme 3.1-131 R.util 2.6) and mac (Sierra 10.13.1, R 3.4.2, same versions or nlme and
2005 Sep 15
1
RE: veth0 is from netback and vifu.0 is fromthebridge-utils?
> That''s great, except when you need *two* bridges, for two
> independent subnets, and there is no, as far as I can see, peth1.
You can have multiple vethX interfaces on recent builds -- see netback/loopback.c.
I think the current default is a rather miserly 1 (and should be increased), but can be set on the command line.
Ian
> Em Wednesday 14 September 2005 16:30, John
2004 Dec 01
1
Ethernet bridges + udev problem?
Hello,
I can''t seem to get the network going.
I found this message in the log of Domain0:
-----------------------------------------------------------------------
Dec 1 15:39:18 zms wait_for_sysfs[4180]: either wait_for_sysfs (udev
039) needs an update to handle the device ''/class/net/br0'' properly (no
device symlink) or the sysfs-support of your device''s
2011 Oct 19
1
Asterisk call transfers not working
Hello:
We have a TDM2433E Digium Card (12 FXS, 12 FXO) and Asterisk 1.8.7.0
running. Everything seems to be ok but call transfers. This is the issue:
*A, B, C and D are in FXS ports*.
1) A calls B. B anwers.
2) B tries to transfer the call to C dialing *2 (code for attended
transfer).
3) A hears MOH. B dials number C.
4) Asterisk says the dialed number is incorrect or non existing.
We tried
2012 Mar 25
2
avoiding for loops
I have data that looks like this:
> df1
group id
1 red A
2 red B
3 red C
4 blue D
5 blue E
6 blue F
I want a list of the groups containing vectors with the ids. I am
avoiding subset(), as it is
only recommended for interactive use. Here's what I have so far:
df1 <- data.frame(group=c("red", "red", "red", "blue",