similar to: destructor for S4 class objects in analogy to C++

Displaying 20 results from an estimated 1200 matches similar to: "destructor for S4 class objects in analogy to C++"

2010 Jun 27
2
Ways to work with R and Postgres
Hi, I post this message to the general r-help list hoping anyone within a wider range have suggestions: There are three ways to integration R and postgres, especially on 64bit Microsoft windows Platform, 1. via RODBC package, which has 32 bit and 64 bit version for windows 2. via RPostgres interface, which only has 32bit version currently 3. via plr for Greenplum, which only supports a
2011 Dec 07
1
R on the cloud - Windows to Linux
Hello, I'm working with the gam function and due to the amount of data I am working with it is taking a long time to run. I looked at the tips to get it to run faster, but none have acceptable side effects. That is the real problem. I have accepted that gam will run a long time. I will be running gam many times for many different models. To make gam useable I am looking at splitting the work
2001 Apr 11
1
$HOME/.shosts and setegid()
Hello, The ssh deamon from OpenSSH_2.5.2p2 first does a seteuid(uid) and then stat($HOME/.shosts) to check whether a .shosts file is there. This seems to be a problem when homedirectories are only accessible "by group permission"; for example in the following (as I guess quite common) case: drwxr-x--- root mygroup 512 Apr 10 12:09 mygroup And my personal homedirectory would now
2005 Jan 07
1
Destructor for S4 objects?
Hi, To write a "constructor" for an S4 object, you make an initialize method which will be called by new. But how would I make a "destructor" method to be called when the S4 object is garbage collected? I'm looking at reg.finalizer, but I'm not sure how to make that work for an S4 object. I want to write a destructor because my S4 object's initialize method
2009 Dec 03
2
Error in namespaceExport(ns, exports) :
Dear all, I get the error "Error in namespaceExport(ns, exports) : undefined exports function1 , function2" when compiling or even when I roxygen my package. The two function I once had in my package but I deleted them including their .Rd files. I also can't find them in any other function or help file. So does anybody know where these functions are still listed that causes
2009 Dec 03
2
Error in namespaceExport(ns, exports) :
Dear all, I get the error "Error in namespaceExport(ns, exports) : undefined exports function1 , function2" when compiling or even when I roxygen my package. The two function I once had in my package but I deleted them including their .Rd files. I also can't find them in any other function or help file. So does anybody know where these functions are still listed that causes
2009 Nov 28
1
PROTECT and OCaml GC.
Hello. In the writing of my OCaml-R binding, I'm sort of confused when it comes to the use of the PROTECT and UNPROTECT macros. Basically, I have C stub functions that are in charge of calling R for everything. Here's a simple example: > CAMLprim value r_findvar (value symbol) { > /* The findVar function is defined in envir.c. It looks up a symbol > in an environment.
2009 Jun 26
3
beginner's guide to C++ programming with R packages?
Hello, again. I'm interested to learn how programmers develop & test C/C++ code with R packages in Linux. I've been reading R source and the manual on Writing R Extensions but there are just a couple of details I can't understand. I wish I could watch over a developer's shoulder to see how people actually do this. I've tested a bit. I am able to take package.tar.gz
2009 Jul 05
3
Memory management issues
Hi everybody, I have been interfacing some C++ library code into an R package but ran into optimization issues specific to memory management that require some insight into the GC. One of the C++ libraries returns simple vectors of integers, doubles and complex which are allocated and managed from the library itself. I cannot know the length of the array beforehand, so I cannot pre-allocate that
2010 Oct 01
2
Issues loading rtiff 1.4.1 with R 2.6.2 on Windows
Dear R-users, I successfully installed rtiff on by R installation, but when I tried to load it, I got: >local({pkg <- select.list(sort(.packages(all.available = TRUE))) + if(nchar(pkg)) library(pkg, character.only=TRUE)}) Error in dyn.load(file, ...) : unable to load shared library 'C:/PROGRA~1/R/R-26~1.2/library/rtiff/libs/rtiff.dll': LoadLibrary failure: Das angegebene Modul
2001 Oct 02
2
AFS and tokenforwarding
For some reasons the afs tokenforwarding stuff has changed siginificantly from v 2.9p2 to 2.9.9p2. This makes it impossible to use public key authenticication in a standart AFS environment. I don't know the reasons for these changes. In any case attached is a patch which restores the old behaviour. Regards Serge -- Serge Droz Paul Scherrer Institut mailto:serge.droz at
2011 Mar 14
1
JAGS/BUGS on gene expression data
Has anybody had issues running MCMC (either BUGS or JAGS) on data sets of this magnitude (ie 30k x 20-30). I've been trying to run a hierarchical random effects model on expression data but R completely stalls out on jobs run on 32bit R on our server (doesn't respond...then eventually crashes out with an exception fault). Would using 64bit R help with JAGS? (As far as I know there's
2009 Feb 18
1
interior point methods, automatic differentiation in R
Dear all, I'm wondering if there are some ongoing projects for interior point methods in R (e.g. linking ipopt from Coin written in C++ to R) and for automatic differentiation in R (e.g. linking openAD available in C++ and Fortran) ? Many thanks, David [[alternative HTML version deleted]]
2009 Nov 20
1
linking to external C++ library
Dear all, I don't bring my head around how to link an external C++ library with some R code using R CMD SHLIB and/or R CMD INSTALL . So does anybody can tell me how I could easily link an external library that is e.g. in /usr/local/lib/mMyLibrary ? Many thanks, David [[alternative HTML version deleted]]
2009 Dec 01
1
eigenvalues of complex matrices
Dear all, I want to compute the eigenvalues of a complex matrix for some statistics. Comparing it to its matlab/octave sibling, I don't get the same eigenvalues in R computing it from the exact same matrix. In R, I used eigen() and arpack() that give different eigenvalues. In matlab/octave I used eig() and eigs() that give out the same eigenvalues but different to the R ones. For real
2009 Feb 11
1
RSPython
Hi all, I try to utilize RSPython to invoke Python from R. For me it works pretty fine for basic applications, but I have 3 problems that may be related. (1) I can't load other packages but "standard" ones also when I adjust the PythonPath: > importPythonModule('sys', all=T) NULL > importPythonModule('numpy', all=T) Error in
2009 Jun 26
1
Where can I find information on how to subsample a time series?
I suspect I'm looking in the wrong places, so guidance to the relevant documentation would be as welcome as a little code snippet. I have time series data stored in a MySQL database. There is the usual DATE field, along with a double precision number: there are daily values (including only normal working days: Monday through Friday). I actually have to do a couple things here. Because of
2008 Aug 06
0
extended test mode for ssh client (by analogy with sshd -T)?
A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 826 bytes Desc: not available Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20080806/18dd4095/attachment.bin
2009 Mar 26
2
Analogy for %in% for the whole columns (rather than individual values)
Hello! I have a matrix a with 2 variables (see below) that contain character strings. I need to create a 3rd variable that contains True if the value in column x is equal to the value in column y. The code below does it. a<-data.frame(x=c("john", "mary", "mary", "john"),y=c("mary","mary","john","john"))
2012 Aug 30
2
Which BUGS should one use?
Hello ALL! Some times ago I started to learn and play with Bayesian stuffs. Many advice use of WinBUGS for Bayesian inference Using Gibbs Sampler. However, WinBUGS is discontinued, and now, development is under OpenBUGS. I wasn't lazy, so I installed both and tried out. In more than 90% of cases they give comparable outcome. But in few cases I got substantial differences. Recently, I read nice