[R] Question regarding QT device

2007-08-05 Thread Saptarshi Guha
anyone provide some pointers to get that deviceIsInteractive to work? Thanks for your time Saptarshi Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha [[alternative HTML version deleted]] __ R-help

[R] How to preserve data across function calls in a library package

2007-07-10 Thread Saptarshi Guha
Hi, I am writing an R package with two functions in C++. So far everything works. Now, i would like to write a third function which would use a pointer (it is a pointer to a class object) created by first function. I tried placing this pointer outside of the function

Re: [R] How to preserve data across function calls in a library package

2007-07-10 Thread Saptarshi Guha
, cause 'invalid alignment'. I can't figure out why... I would appreciate any advice provided. Rgds Saptarshi On Jul 10, 2007, at 11:41 AM, Saptarshi Guha wrote: Hi, I am writing an R package with two functions in C++. So far everything works. Now, i would

Re: [R] How to preserve data across function calls in a library package

2007-07-10 Thread Saptarshi Guha
On Jul 10, 2007, at 12:33 PM, Saptarshi Guha wrote: Hi, Some progress: I am using SEXP retty; book=Calloc(1,int); *book=10; PROTECT(retty=R_MakeExternalPtr(book,R_NilValue,R_NilValue)); then UNPROTECTING and returning retty. In a another

[R] A question regarding package development

2007-05-31 Thread Saptarshi Guha
into account the modified INCPATH. Any pointers would be much appreciated. I'm doing this on my machine only (for the moment), so rough and ready techniques (i.e no need for autoconf features) would be helpful. Thank you in advance. Saptarshi Guha | [EMAIL PROTECTED

[R] A Question about knnFinder

2007-05-02 Thread Saptarshi Guha
library(knnFinder) ne-nn(ma,p=5) However, ne$nn.idx is the zero matrix and ne$nn.dist is the matrix whose entries are all 1000. Could someone point out where I'm going wrong? Thanks Saptarshi Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha PGP.sig

[R] Loading Dynamic Libraries on OS X

2007-04-19 Thread Saptarshi Guha
: I first ran configure and then make from Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha He who laughs last hasn't been told the terrible truth. [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch

[R] Dyn.load and Unload problems

2007-03-10 Thread Saptarshi Guha
Hi, I am trying to modify the devX11.c source in the directory R-2.4.1/ src/modules/X11. Under OS X 10.4.9 running the R gui (R version 2.4.1) on a Powerbook, i type this and get the subsequent error. dyn.unload(/Library/Frameworks/R.framework/Resources/modules/ppc/

[R] Substituting functions in package - Lattice

2007-03-06 Thread Saptarshi Guha
## cloud) won't work in this scenario. But couldn't quite figure it out. Thanks for any help provided. Saptarshi Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha [[alternative HTML version deleted

Re: [R] Substituting functions in package - Lattice

2007-03-06 Thread Saptarshi Guha
,trellis) Thanks Saptarshi Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha On Mar 6, 2007, at 5:29 PM, Greg Snow wrote: You need to set the environment on your version of print.trellis to match that of the original (at least that is what has worked for me

Re: [R] Substituting functions in package - Lattice

2007-03-06 Thread Saptarshi Guha
Hi, Got it. This worked environment(print.trellis) - getNamespace(lattice) where print.trellis is my modified print.trellis. Thanks. Regards Saptarshi Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha On Mar 6, 2007

[R] Waiting for Key input

2007-03-06 Thread Saptarshi Guha
on a keypress. Thank you Saptarshi Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] Multidimensional Integration over arbitrary sets

2007-02-13 Thread Saptarshi Guha
? I tried RSitesearch but couldn't find the answer to this. Many thanks for you help. Regards Saptarshi Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha [[alternative HTML version deleted]] __ R

Re: [R] Multidimensional Integration over arbitrary sets

2007-02-13 Thread Saptarshi Guha
Hi, Thanks! That should do it. Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha On Feb 13, 2007, at 3:56 PM, Ravi Varadhan wrote: Hi, By defining your function appropriately (e.g. using indicator functions), you can make adapt work: myfunc - function(x

[R] Filling the window in lattice plot

2007-02-07 Thread Saptarshi Guha
. Also, should i wish to preserve the aspect ratio of the boxes, will lattice/R insert scrollbars to the window (assuming my output is for X11 device) Regards Saptarshi Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha He who wonders discovers

[R] A question regarding cex and pch=. in lattice

2007-02-06 Thread Saptarshi Guha
is that some of the points are not being plotted when remove cex=1 ? Regards Saptarshi Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing

Re: [R] A question regarding cex and pch=. in lattice

2007-02-06 Thread Saptarshi Guha
2007, Saptarshi Guha wrote: Hello, I'm using lattice and opened an X11 device with the following call X11(width=5,height=5,pointsize=1) I then ran the following code library(lattice) x-rnorm(30,sd=2) y-runif(30) xyplot(y~x,pch=.,col=black,cex=1

Re: [R] A question on grid - grid.points not spaced properly

2006-12-05 Thread Saptarshi Guha
the surrounding dots exactly. Thank you Saptarshi Guha Paul Murrell wrote: Hi Saptarshi Guha wrote: Hello, How can i 'fix' the following output. v=viewport(x=216/2, y=216/2,w=216, h=216,default.units = bigpts) pushViewport(v) x=c(119,130,140,151) y

Re: [R] A question on grid - grid.points not spaced properly

2006-12-05 Thread Saptarshi Guha
Saptarshi Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha On Dec 5, 2006, at 3:58 PM, Paul Murrell wrote: Hi Saptarshi Guha wrote: Hi, Thank you for the explanation. I have one further question - should i wish to plot to the screen, which units (apart from bigpts

[R] A question on grid - grid.points not spaced properly

2006-12-04 Thread Saptarshi Guha
with higest quality, this oddity happens with the 'x +2' command. This doesn't happen to all of the points, only some - and not necc. the edge figures. Is there anyway i can control this? Thanks Saptarshi Saptarshi Guha | [EMAIL PROTECTED] | http

[R] A question regarding Wireframe in Package Lattice

2006-10-19 Thread Saptarshi Guha
upto the final step before plotting. Thanks Saptarshi Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https

[R] Installing the Mac RGUI for OS X

2006-04-28 Thread Saptarshi Guha
Hello, Having installed R 2.3 for OS X Tiger 10.4.6(PPC), i tried running the new R.app, but it hangs (spinning beachball). Moreover, i can't install the RGUI from within the R-2.3 DMG, - it tells me i must have R 10.4 installed ! (I have 10.4.6) R 2.3 runs successfully

Re: [R] Installing the Mac RGUI for OS X

2006-04-28 Thread Saptarshi Guha
Hi, I got it working(my fault - faulty install), however I get the same error as Anestis Antoniadis i.e the Quicktime errors. Rgds Saptarshi Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha No matter how much you do you never do enough. On Apr 28

Re: [R] Building RGL for R-2.3 for Tiger 10.4.6 on PPC

2006-04-28 Thread Saptarshi Guha
This is rgl-0.66.2 On Apr 28, 2006, at 1:48 AM, Saptarshi Guha wrote: Hi, I just installed R-2.3 for Tiger 10.4.6 on a PPC. However, though i successfully installed RGL on R.2.2, this time it doesn't compile. I get this error when trying the R INSTALL command In file

[R] R GUI for R2.3 hangs

2006-04-28 Thread Saptarshi Guha
Hello, I recently installed R 2.3 for Tiger 10.4.6. Though the commandline R works (i.e R at the Terminal), the R GUI hangs while trying to load R. Once it did run, and gave many errors regarding Quicktime and DivX libraries. Is there anything I can do?

[R] Building RGL for R-2.3 for Tiger 10.4.6 on PPC

2006-04-27 Thread Saptarshi Guha
Hi, I just installed R-2.3 for Tiger 10.4.6 on a PPC. However, though i successfully installed RGL on R.2.2, this time it doesn't compile. I get this error when trying the R INSTALL command In file included from Texture.hpp:14, from Material.hpp:5,

Re: [R] MacOSX package install problem: pkgs quadprog tseries

2006-04-25 Thread Saptarshi Guha
to cc_dynamic (i didnt remove anything else). Should work after that. Rgds Saptarshi Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha When the going gets weird, the weird turn pro. -- Hunter S. Thompson On Apr 25, 2006, at 10:51 PM, William Asquith wrote: I

[R] RGL and scales of axes

2006-04-23 Thread Saptarshi Guha
for any pointers. Rgds Saptarshi Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha A professor is one who talks in someone else's sleep. [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing

[R] How to load user defined functions written in another file

2005-10-01 Thread Saptarshi Guha
Hello, This is most probably basic, but i simply couldn't find the answer. I have written a function in a separate file multi.r, and would like to load this into the R-IDE so that I can use my function. How do i go about it? Thank you in advance. Saptarshi Saptarshi Guha|[EMAIL PROTECTED

Re: [R] How to load user defined functions written in another file

2005-10-01 Thread Saptarshi Guha
Hello, I'm sorry for the silly question. Just found out how. Use 'source'. Thanks for your time. Saptarshi On Oct 1, 2005, at 10:10 PM, Saptarshi Guha wrote: Hello, This is most probably basic, but i simply couldn't find the answer. I have written a function in a separate file