[Rd] Package-level access to Rp->R_Quiet ?

2009-08-13 Thread Dirk Eddelbuettel
I would like to simulate the effect of the command-line option --quiet from user-level scripts and startup code. From src/main/CommandLineArgs.c I learn that Rp->R_Quiet is set, and I see how that is used in main/main.c. I would use this from code in Rprofile.site. In other words, I want to be s

Re: [Rd] Embed R, and provide a function to user scripts

2009-08-13 Thread Joshua Ulrich
Hi Saptarshi, See ?SHLIB and ?dyn.load. HTH, Josh -- http://www.fosstrading.com On Thu, Aug 13, 2009 at 9:01 PM, Saptarshi Guha wrote: > Essentially I'd like to load the C function into  the load table > After that, I can create an R function > rboo=function(x) .Call("boo",x) > > then user scr

Re: [Rd] Embed R, and provide a function to user scripts

2009-08-13 Thread Saptarshi Guha
Sorry about the clutter. The answer can be found on Writing R Extensions " 8.1.3 Registering symbols" Thank you Saptarshi Guha On Thu, Aug 13, 2009 at 10:01 PM, Saptarshi Guha wrote: > > Essentially I'd like to load the C function into  the load table > After that, I can create an R function

Re: [Rd] Embed R, and provide a function to user scripts

2009-08-13 Thread Saptarshi Guha
Essentially I'd like to load the C function into the load table After that, I can create an R function rboo=function(x) .Call("boo",x) then user script cann call rboo Hope that clarifies things. Thanks in advance Saptarshi Guha On Thu, Aug 13, 2009 at 9:07 PM, Saptarshi Guha wrote: > Hello,

[Rd] Embed R, and provide a function to user scripts

2009-08-13 Thread Saptarshi Guha
Hello, I'm not sure how to go about this. Suppose I have a function SEXP boo(SEXP x){ //do something } Also, I have an executable which embeds R in itself. I would like to provide a R function to user code to call that calls 'boo' e.g ##user supplied expression that is given to me x<-1 boo(x)

Re: [Rd] segfault when unloading a shared library

2009-08-13 Thread EJ Nikelski
Dear List, Martin, thanks for the extremely useful advice. As valgrind is not yet officially available for OS X, I grabbed the 3.5.0 beta from svn, built it, and gave it a go. The results were enlightening: - > # unload the library for updating

Re: [Rd] CMD check error (bug?)

2009-08-13 Thread Terry Therneau
> Looks like a spelling error somewhere. The name is bdsmatrix (see above). That is so very obvious -- but only after someone else pointed it out. The eye sometimes sees what it expects to see. Thanks for the quick response. Terry T. __ R-devel@r-pr

Re: [Rd] CMD check error (bug?)

2009-08-13 Thread Göran Broström
Terry Therneau skrev: R version 2.9.0 running on Centos (Red Hat linux). I have a pair of packages coxme and bdsmatrix. The latter is installed in my local library (I don't have permission for global install at work.) That is, it is in the location pointed to in R_LIBS_USER. In R, the command

[Rd] CMD check error (bug?)

2009-08-13 Thread Terry Therneau
R version 2.9.0 running on Centos (Red Hat linux). I have a pair of packages coxme and bdsmatrix. The latter is installed in my local library (I don't have permission for global install at work.) That is, it is in the location pointed to in R_LIBS_USER. In R, the command library(bdsmatrix) works

[Rd] segfault when unloading a shared library

2009-08-13 Thread EJ Nikelski
Hi All, I'm still actively researching this problem (reading R-ext manual), but I hoped that I might be able to get some additional insight from the list given that I'm fairly new at writing R extension code. Problem: I have some fairly simple code (.Call interface) that makes a call to anot

[Rd] Class design as used in package graphics

2009-08-13 Thread Ulrike Grömping
Dear developeRs, I just discovered the function plot.design in package graphics that acts as a method for class design - the second time I come across a class design outside my own packages. (The first time was in package conf.design, where Bill Venables encouraged me to ignore it because he does

Re: [Rd] memory management

2009-08-13 Thread Simon Urbanek
Yuri, I'm not convinced that what you propose is a good idea. First, I don't quite understand why you would want to use an existing SEXP - if you had a valid SEXP for the current R instance, then there is no need for R_RegisterObject. If the SEXP is from a different R instance then you ca

[Rd] memory management

2009-08-13 Thread Yuri D'Elia
Hi everyone. In response to my previous message (Memory management issues), I've come up with the following patch against R 2.9.1. To summarize the situation: - We're hitting the memory barrier in our lab when running concurrent R processes due to the large datasets we use. - We don't want to c

Re: [Rd] 10x slower merge in mac 2.9.1 vs. 2.9.0 (PR#13890)

2009-08-13 Thread adrian_d
This issue has been reported before http://thread.gmane.org/gmane.comp.lang.r.devel/20945/focus=20959 It happens when data frames contain character strings. Thanks, Adrian On Thu, 13 Aug 2009, Simon Urbanek wrote: > Rick, > > I'm sorry, but I cannot reproduce it. You didn't supply sessionInf

Re: [Rd] 10x slower merge in mac 2.9.1 vs. 2.9.0 (PR#13890)

2009-08-13 Thread Adrian Dragulescu
This issue has been reported before http://thread.gmane.org/gmane.comp.lang.r.devel/20945/focus=20959 It happens when data frames contain character strings. Thanks, Adrian On Thu, 13 Aug 2009, Simon Urbanek wrote: Rick, I'm sorry, but I cannot reproduce it. You didn't supply sessionInfo()

Re: [Rd] 10x slower merge in mac 2.9.1 vs. 2.9.0 (PR#13890)

2009-08-13 Thread Simon Urbanek
Rick, I'm sorry, but I cannot reproduce it. You didn't supply sessionInfo() and the actual data, so all I can do is guess, but according to your description this test case shows no difference: set.seed(1) n=1 d1 = data .frame (seqn = as .integer (runif (n )*n ),a = rnorm (

[Rd] 10x slower merge in mac 2.9.1 vs. 2.9.0 (PR#13890)

2009-08-13 Thread richard_stahlhut
Full_Name: Rick Stahlhut Version: 2.9.1 OS: os x 10.5.7 Submission from: (NULL) (128.151.71.23) I upgraded to 2.9.1 today from 2.9.0. I work with large CDC (center for disease control) datasets and start, frequently, with a series of 23 large-ish merges to create the final dataset I work on. I

[Rd] Problem with Linux x86_64 RODBC and Netezza (PR#13889)

2009-08-13 Thread kenneth . cater
Full_Name: Kenneth Cater Version: 2.9.1 OS: Linux x86_64 Submission from: (NULL) (171.159.192.10) It appears that R closes my connection to the Netezza device before the Netezza has completed its return of data, below are two files clean_test.log which tracks the systems call made when running th

Re: [Rd] eurodist example dataset is malformed

2009-08-13 Thread Gavin Simpson
On Wed, 2009-08-12 at 20:26 -0400, Justin Donaldson wrote: > The eurodist dataset (my favorite for mds) is malformed. Instead of a > standard distance matrix, it's a data frame. The rownames have gotten > 'bumped' to a new anonymous dimension "X". It's possible to fix the data, > but it messes