Re: [Rd] Rcmd check fails on Windows Samba network path in R 2.9.1

2009-07-21 Thread Kevin R. Coombes
Hi, The problem almost certainly has something to do with Samba. We also have a NetApp file system, and copying the package source to that drive and running Rcmd check from Windows works just fine. When running the commands from an interactive R session, file_test returns TRUE and file.acce

[Rd] strange bug? with R CMD check

2009-07-21 Thread Kjell Konis
Hello, I am trying to get a package to pass R CMD check on an iMac running Mac OS X. When the package is named safeBinaryRegression I get the following warning from R CMD check: * checking whether the name space can be loaded with stated dependencies ... WARNING Error in dyn.load(file,

Re: [Rd] Rcmd check fails on Windows Samba network path in R 2.9.1

2009-07-21 Thread Tony Plate
Did you try starting up R-2.8.1 and checking the result of file.access(lib, 2) on that very same directory where R-2.9.1 gives an incorrect indication? If that gives the correct answer, then, look for changes in the file.access code. -- Tony Plate Kevin R. Coombes wrote: Hi, The problem al

[Rd] building source package in R run within Emacs under Windows.

2009-07-21 Thread Vadim Ogranovich
Dear R-devel, I installed R-2.9.1 on the 'y:' drive which happens to be mounted to an IBRIX file system. I also downloaded and installed the Rtools bundle recommended for 2.9x. When I build a source package launching R via RGui.exe it seems to work fine: ## setting path according to "Appendix E

[Rd] Building a package with BLAS under Windows

2009-07-21 Thread Markus Jochmann
Hi everybody: I am writing a package that includes C code that uses the BLAS library. My Makevars looks like PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS). If I check and build the package under Linux on my own computer everything works fine. However, if I submit the package to win-builder I

[Rd] destructor for S4 class objects in analogy to C++

2009-07-21 Thread David Scherrer
Hi all, I'm wondering if there is a way to define a destructor function (to free memory) for S4 class objects in analogy to C++? rm() combined with gc() does not seem to be a good idea (Chambers, 2008). So could it be done on the C/C++ level or is it even already available in the "internals"? Man

Re: [Rd] destructor for S4 class objects in analogy to C++

2009-07-21 Thread Whit Armstrong
if you are using external pointers, then R allows you to set a finalizer function to be called on the pointer. http://cran.r-project.org/doc/manuals/R-exts.html#External-pointers-and-weak-references see examples in RODBC package. and here too: see the "connFinalizer" function http://github.com/a

Re: [Rd] destructor for S4 class objects in analogy to C++

2009-07-21 Thread Simon Urbanek
David, On Jul 21, 2009, at 13:00 , David Scherrer wrote: I'm wondering if there is a way to define a destructor function (to free memory) for S4 class objects in analogy to C++? The analogy doesn't work, because in C++ you have pass-by-reference semantics, but in R you have pass-by-value.

Re: [Rd] Rcmd check fails on Windows Samba network path in R 2.9.1

2009-07-21 Thread Kevin R. Coombes
The results of the session below are the same in 2.8.1 as in 2.9.1 (including in particular the response to the call to file.access). Kevin Tony Plate wrote: Did you try starting up R-2.8.1 and checking the result of file.access(lib, 2) on that very same directory where R-2.9.1 gives an inc

[Rd] bug in approx crashes R

2009-07-21 Thread Vadim Ogranovich
Dear R-devel, The following line crashes R > approx(1, 1, 0, method='const', rule=2, f=0, yleft=NULL, ties='ordered')$y Process R:2 exited abnormally with code 5 at Tue Jul 21 14:18:09 2009 > version _ platform i386-pc-mingw32 arch i386 os mingw32 syst