Re: [Rd] Question about writing portable packages

2013-06-07 Thread Kevin Ushey
I think the key word here is _other_ packages. It's entirely okay to call your package's own compiled code through the .Call interface (and the code you write may link to other packages; the obvious example being Rcpp code you write); however, it is not portable to use .Call to call compiled code

Re: [Rd] question re: error message --- package error: functionName not resolved from current namespace

2013-04-11 Thread brian avants
hi martin that is extremely clarifying - and perfectly fixed our problems! i did read that comment in the release notes but failed to appreciate its significance - it does make sense to do it this way for both the performance improvements safety issues mentioned in ?.Call. especially in a

[Rd] question re: error message --- package error: functionName not resolved from current namespace

2013-04-10 Thread brian avants
hello everyone we are developing a package that has worked up until R3.0 which we just tested. the issue is as above when we call a function that works in R 2.15.2 from R 3.0 we get an error Error in .Call(antsImageRead, filename, pixeltype, dimension) : antsImageRead not resolved from

Re: [Rd] question re: error message --- package error: functionName not resolved from current namespace

2013-04-10 Thread Simon Urbanek
On Apr 10, 2013, at 1:53 PM, brian avants wrote: hello everyone we are developing a package that has worked up until R3.0 which we just tested. the issue is as above when we call a function that works in R 2.15.2 from R 3.0 we get an error Error in .Call(antsImageRead,

Re: [Rd] question re: error message --- package error: functionName not resolved from current namespace

2013-04-10 Thread brian avants
hi simon thank you for your questions answers here: I won't answer your question directly but some suggestions: a) does adding PACKAGE=ANTsR to .Call change anything? (It should really be there if you are using strings as names) this does change things for instance, this works:

Re: [Rd] question re: error message --- package error: functionName not resolved from current namespace

2013-04-10 Thread Duncan Murdoch
On 10/04/2013 2:25 PM, brian avants wrote: hi simon thank you for your questions answers here: I won't answer your question directly but some suggestions: a) does adding PACKAGE=ANTsR to .Call change anything? (It should really be there if you are using strings as names) this does

Re: [Rd] question re: error message --- package error: functionName not resolved from current namespace

2013-04-10 Thread Duncan Murdoch
On 13-04-10 5:35 PM, brian avants wrote: Thank you for the advice - the function formed like this: antsImageRead - function( filename , dimension , pixeltype = float ) { rval - (.Call(antsImageRead, filename, pixeltype, dimension)) return(rval) } worked up to R 2.15.x but fails in

Re: [Rd] question re: error message --- package error: functionName not resolved from current namespace

2013-04-10 Thread Martin Morgan
For what it's worth, the package loads many DLLs in its NAMESPACE via repeated calls to useDynLib. antsImageRead is not in the first DLL loaded, and from NEWS.Rd, the problem comes from o A foreign function call (.C() etc) in a package without a PACKAGE argument will only look in

Re: [Rd] question on why Rigroup package moved to Archive on CRAN

2013-03-10 Thread Uwe Ligges
I wonder why you do not ask on CRAN@...? List members here cannot know the answer. And we typically do not discuss such matters in public. I wonder why you do not read the e-mail message you get from the CRAN team? Please see the message with subject line Registering .External entry points

Re: [Rd] question on why Rigroup package moved to Archive on CRAN

2013-03-10 Thread Jari Oksanen
What we've got here is failure to communicate. Some men you just can't reach. So you get what we had here last week, which is the way he wants it. Well, he gets it. I don't like it any more than you men. (from Cool hand Luke -- but whose fault?) Cheers, Jari Oksanen On 10/03/2013, at 17:18

Re: [Rd] question on why Rigroup package moved to Archive on CRAN

2013-03-10 Thread Kevin Hendricks
Sorry if you considered this a waste of bandwidth. I did not know CRAN had its own mailing list. The reason I never responded to any mail is that I never received any message in January (I searched my inbox for it and found nothing). It probably was stripped out by the sympatico mail

Re: [Rd] question on why Rigroup package moved to Archive on CRAN

2013-03-10 Thread Uwe Ligges
OK, the original message will be resend privately in a minute. Best, Uwe Ligges On 10.03.2013 16:54, Kevin Hendricks wrote: Sorry if you considered this a waste of bandwidth. I did not know CRAN had its own mailing list. The reason I never responded to any mail is that I never received

[Rd] question on why Rigroup package moved to Archive on CRAN

2013-03-09 Thread Kevin Hendricks
Hi, Who should I ask about my package Rigroup_0.83 being moved to Archive status on CRAN and no longer available via install.package? I have no problems with the move if this was simply because of low demand. However, if there was a build issue with the newest releases that caused problems,

Re: [Rd] question on why Rigroup package moved to Archive on CRAN

2013-03-09 Thread Henrik Bengtsson
On Sat, Mar 9, 2013 at 12:25 PM, Kevin Hendricks kevin.hendri...@sympatico.ca wrote: Hi, Who should I ask about my package Rigroup_0.83 being moved to Archive status on CRAN and no longer available via install.package? I have no problems with the move if this was simply because of low

Re: [Rd] question on why Rigroup package moved to Archive on CRAN

2013-03-09 Thread Kevin Hendricks
Hi, Thanks for that info. It works/builds without error or warnings on my RedHat Enterprise 6 with R 2.15.2 version which I use but must be broken somehow on later versions. I will see if I can find the autobuild warnings error report someplace. Kevin Sent from my iPad On 2013-03-09, at

Re: [Rd] question on why Rigroup package moved to Archive on CRAN

2013-03-09 Thread Kevin Hendricks
Hi, One last quick question ... does anyone archive older CRAN package check summaries? I searched the web but could not find any. My package was archived in February of this year so any package check summary from earlier than that should help me figure out what is broken on MacOSX or

Re: [Rd] question on why Rigroup package moved to Archive on CRAN

2013-03-09 Thread Dan Tenenbaum
On Sat, Mar 9, 2013 at 2:17 PM, Kevin Hendricks kevin.hendri...@sympatico.ca wrote: Hi, One last quick question ... does anyone archive older CRAN package check summaries? I searched the web but could not find any. My package was archived in February of this year so any package check

Re: [Rd] question on why Rigroup package moved to Archive on CRAN

2013-03-09 Thread Kevin Hendricks
Hi Dan, Thank you! I dig up a Mac at work and recreate this. Kevin On 2013-03-09, at 5:52 PM, Dan Tenenbaum dtene...@fhcrc.org wrote: On Sat, Mar 9, 2013 at 2:17 PM, Kevin Hendricks kevin.hendri...@sympatico.ca wrote: Hi, One last quick question ... does anyone archive older CRAN package

Re: [Rd] question on why Rigroup package moved to Archive on CRAN

2013-03-09 Thread Kevin Hendricks
Hi Dan, In case this catches anyone else ... FWIW, I found the issue ... in my Rinit.c, my package uses the .External call which actually takes one SEXP which points to a varargs-like list. Under 2.15.X and earlier, I thought the proper entry for an .External call was as below since it only

Re: [Rd] Question lattice SplomT

2012-09-24 Thread Deepayan Sarkar
On Mon, Sep 24, 2012 at 9:22 PM, Christian Hoffmann c-w.hoffm...@sunrise.ch wrote: Dear Deepayan Sarkar, I have (again) a question concerning panel and my function SplomT, see attachments. Some time ago you helped me to write this function, thanks again. I have used it to great advantage in

Re: [Rd] Question about copying arguments in C.

2012-09-16 Thread Simon Urbanek
On Sep 15, 2012, at 10:50 PM, Simon Knapp wrote: OK I think I'm getting it, but one more question if I may... When I write a function, I don't protect the arguments explicitly (I understand that they should be protected within the calling function) - are my functions examples of

Re: [Rd] Question about copying arguments in C.

2012-09-15 Thread Simon Urbanek
On Sep 14, 2012, at 11:10 PM, Simon Knapp wrote: Hi List, I'd imagine this is a question that has been answered before, but I can't seem to track it down, sorry for the duplication if it has. I am writing an interface for a C library and want to return an S4 class from the

Re: [Rd] Question about copying arguments in C.

2012-09-15 Thread Simon Knapp
Hi Simon, Thanks for your advice, but I'm still not clear. In my case I don't want to modify the result - the integer acts as a handle for indexing an array in later calls back into my library. As I understand it, returning result like SEXP func(SEXP arg) {return arg;} would not copy arg and

Re: [Rd] Question about copying arguments in C.

2012-09-15 Thread Simon Urbanek
On Sep 15, 2012, at 11:28 AM, Simon Knapp wrote: Hi Simon, Thanks for your advice, but I'm still not clear. In my case I don't want to modify the result - the integer acts as a handle for indexing an array in later calls back into my library. As I understand it, returning result like

Re: [Rd] Question about copying arguments in C.

2012-09-15 Thread Simon Urbanek
On Sep 15, 2012, at 2:57 PM, Simon Urbanek wrote: On Sep 15, 2012, at 11:28 AM, Simon Knapp wrote: Hi Simon, Thanks for your advice, but I'm still not clear. In my case I don't want to modify the result - the integer acts as a handle for indexing an array in later calls back into my

Re: [Rd] Question about copying arguments in C.

2012-09-15 Thread Simon Knapp
OK I think I'm getting it, but one more question if I may... When I write a function, I don't protect the arguments explicitly (I understand that they should be protected within the calling function) - are my functions examples of functions that protect their arguments? Looking at the code for

[Rd] Question about copying arguments in C.

2012-09-14 Thread Simon Knapp
Hi List, I'd imagine this is a question that has been answered before, but I can't seem to track it down, sorry for the duplication if it has. I am writing an interface for a C library and want to return an S4 class from the 'constructing' method. One of the slots of the argument to be returned

[Rd] question concerning par(plt) and par(mar)

2012-08-15 Thread Karline Soetaert
Hello, I have a function that changes par(plt) to plot a colorkey, and upon returning resets the original value. Unfortunately this changes the size of the plots when I change the layout. A simplified example: par(mfrow = c(1, 1)) plt - par(plt) # # change

Re: [Rd] Question on parsing R code from C

2011-11-16 Thread KR
Simon Urbanek simon.urbanek at r-project.org writes: Not without seeing the actual code. (And details such as which platform you're on). Note that setup_Rmainloop() is the last to set the SETJMP context target so you should make sure the stack is still present after it finished (i.e. you

Re: [Rd] Question on parsing R code from C

2011-11-16 Thread Simon Urbanek
On Nov 16, 2011, at 2:48 PM, KR wrote: Simon Urbanek simon.urbanek at r-project.org writes: Not without seeing the actual code. (And details such as which platform you're on). Note that setup_Rmainloop() is the last to set the SETJMP context target so you should make sure the stack is

Re: [Rd] Question on parsing R code from C

2011-11-15 Thread KR
Simon Urbanek simon.urbanek at r-project.org writes: AFAIR you have to evaluate parse(text=...) for that, there is no C-level access to parser errors. Yes that did it, thanks! If you get a crash, you're not setting up you R correctly. If your R quits then you are in non-interactive mode

Re: [Rd] Question on parsing R code from C

2011-11-15 Thread Simon Urbanek
On Nov 15, 2011, at 5:39 PM, KR wrote: Simon Urbanek simon.urbanek at r-project.org writes: AFAIR you have to evaluate parse(text=...) for that, there is no C-level access to parser errors. Yes that did it, thanks! If you get a crash, you're not setting up you R correctly. If your R

Re: [Rd] Question on parsing R code from C

2011-11-11 Thread KR
First of all thanks a lot to you both for all the replies, they have been of great help to me! I got the basic embedding running, however I still have some issues to solve in order to complete the interface to R I am working on: 1. I initialize with Rf_initEmbeddR(). - Is there a way to have

Re: [Rd] Question on parsing R code from C

2011-11-11 Thread Simon Urbanek
On Nov 10, 2011, at 6:24 PM, KR wrote: First of all thanks a lot to you both for all the replies, they have been of great help to me! I got the basic embedding running, however I still have some issues to solve in order to complete the interface to R I am working on: 1. I initialize

Re: [Rd] Question on parsing R code from C

2011-11-11 Thread Simon Urbanek
On Nov 11, 2011, at 10:08 AM, Simon Urbanek wrote: On Nov 10, 2011, at 6:24 PM, KR wrote: First of all thanks a lot to you both for all the replies, they have been of great help to me! I got the basic embedding running, however I still have some issues to solve in order to

[Rd] Question on parsing R code from C

2011-11-08 Thread KR
Hi all, I am facing the necessity to parse R code from C-side. As a first approximation the goal would be a re-implementation of the R shell (not Rgui). I read the document at http://cran.r-project.org/doc/manuals/R-exts.html section 5.12, and the related source code example. I have some

Re: [Rd] Question on parsing R code from C

2011-11-08 Thread Simon Urbanek
On Nov 8, 2011, at 2:42 PM, KR wrote: Hi all, I am facing the necessity to parse R code from C-side. As a first approximation the goal would be a re-implementation of the R shell (not Rgui). I read the document at http://cran.r-project.org/doc/manuals/R-exts.html section 5.12, and

Re: [Rd] Question on parsing R code from C

2011-11-08 Thread KR
Simon Urbanek simon.urbanek at r-project.org writes: I'm not sure I understand this really - it doesn't define SEXP. I would expect something like typedef void *SEXP; Which may work for declarations. Note, however, that for the actual code you'll need to include the headers anyway.

Re: [Rd] Question on parsing R code from C

2011-11-08 Thread Simon Urbanek
On Nov 8, 2011, at 4:57 PM, KR wrote: Simon Urbanek simon.urbanek at r-project.org writes: I'm not sure I understand this really - it doesn't define SEXP. I would expect something like typedef void *SEXP; Which may work for declarations. Note, however, that for the actual code

Re: [Rd] Question on parsing R code from C

2011-11-08 Thread KR
Simon Urbanek simon.urbanek at r-project.org writes: Except that you don't know what are macros, inlined functions and actual functions. If you are careful you can possibly fall back to external functions but, obviously, your code will be less efficient. I would still prefer including

Re: [Rd] Question on parsing R code from C

2011-11-08 Thread Rob Anderson
Hi, With respect to initializing R state and parsing, you might want to look at the Linking GUI's and other front-ends to R section in Writing R Extensions http://cran.r-project.org/doc/manuals/R-exts.pdf. Once the initialization is done, you can use mkString() function to get an input SEXP from

Re: [Rd] Question on parsing R code from C

2011-11-08 Thread Simon Urbanek
On Nov 8, 2011, at 6:53 PM, KR wrote: Simon Urbanek simon.urbanek at r-project.org writes: Except that you don't know what are macros, inlined functions and actual functions. If you are careful you can possibly fall back to external functions but, obviously, your code will be less

Re: [Rd] Question about copying reference objects using the initialize method

2011-11-02 Thread Aleix Ruiz de Villa
Martin, thanks. So then I should use options (3) or (4). That's all. Is there an efficient way to initialize arguments if I have a long list of arguments? maybe using a 'list'? so that the header of the function is displayed in a friendly style? Thanks again! 2011/11/1 Martin Morgan

Re: [Rd] Question about copying reference objects using the initialize method

2011-11-02 Thread Martin Morgan
On 11/02/2011 08:16 AM, Aleix Ruiz de Villa wrote: Martin, thanks. So then I should use options (3) or (4). That's all. Is there an efficient way to initialize arguments if I have a long list of arguments? maybe using a 'list'? so that the header of the function is displayed in a friendly

[Rd] Question about copying reference objects using the initialize method

2011-11-01 Thread Aleix Ruiz de Villa
Dears, I have a question about copying reference objects using the initialize method. 1) If the latter has no arguments, there is no problem to copy an object. myClass = setRefClass(myClass, fields = list(value = numeric) ) myClass$methods(initialize = function(...){   value - 1  

Re: [Rd] Question about copying reference objects using the initialize method

2011-11-01 Thread Martin Morgan
On 10/31/2011 08:53 AM, Aleix Ruiz de Villa wrote: Dears, I have a question about copying reference objects using the initialize method. 1) If the latter has no arguments, there is no problem to copy an object. myClass = setRefClass(myClass, fields = list(value = numeric) )

[Rd] Question about how to compile .zip for Windows

2011-10-29 Thread Yi Zhao
Dear all, Thanks for Baptiste's help. He offered me the website http://win-builder.r-project.org/ This is very good. However, I face another problem recently that I need to program a package, which require 'multiple-precision floating-point computations'. I found that MPFR is very good tools.

[Rd] Question about multiple-precision floating-point computations

2011-10-29 Thread Yi Zhao
Dear all, I am trying to programming a R package in C++, which need calculate the number 25 digits after the dot. Is there any package offer this function? I am still a beginner. Please help me! Thanks a lot! Yi Zhao [[alternative HTML version deleted]]

Re: [Rd] Question about multiple-precision floating-point computations

2011-10-29 Thread Uwe Ligges
See, for example, package Rmpfr. Uwe Ligges On 29.10.2011 05:33, Yi Zhao wrote: Dear all, I am trying to programming a R package in C++, which need calculate the number 25 digits after the dot. Is there any package offer this function? I am still a beginner. Please help me! Thanks a lot!

Re: [Rd] Question about how to compile .zip for Windows

2011-10-29 Thread Uwe Ligges
On 28.10.2011 15:03, Yi Zhao wrote: Dear all, Thanks for Baptiste's help. He offered me the website http://win-builder.r-project.org/ This is very good. However, I face another problem recently that I need to program a package, which require 'multiple-precision floating-point computations'.

Re: [Rd] Question about how to compile .zip for Windows

2011-10-29 Thread Prof Brian Ripley
On Sat, 29 Oct 2011, Uwe Ligges wrote: On 28.10.2011 15:03, Yi Zhao wrote: Dear all, Thanks for Baptiste's help. He offered me the website http://win-builder.r-project.org/ This is very good. However, I face another problem recently that I need to program a package, which require

Re: [Rd] Question about Rweb

2011-10-06 Thread Jay Emerson
Ted, Simon may be biased, but I am not. I'm barely a few days into Rserve/FastRWeb and am blown away (and frustrated that I didn't have a good excuse to give it a try sooner). I'm still in the process of refining my setup (including a fresh installation of Apache2 on my Ubuntu box), and have

Re: [Rd] Question about Rweb

2011-10-06 Thread Dirk Eddelbuettel
On 6 October 2011 at 09:37, Jay Emerson wrote: | Ted, | | Simon may be biased, but I am not. I'm barely a few days into | Rserve/FastRWeb and am blown away (and frustrated that I didn't have a | good excuse to give it a try sooner). I'm still in the process of | refining my setup (including a

Re: [Rd] Question about Rweb

2011-10-06 Thread Dirk Eddelbuettel
On 5 October 2011 at 21:54, Simon Urbanek wrote: | Ubuntu is currently the most popular and works out of the box on most machines. Personally, I prefer Debian on servers, but there is not a big difference. off-topic alert Ubuntu also comes in at least four flavours: ubuntu (Gnome look),

Re: [Rd] Question about Rweb

2011-10-06 Thread Jay Emerson
Simon or Jeff had best answer your latter query on strengths/weaknesses of each model. I could hazard a guess, but would probably be wrong. !-) I can't send attachments here, so decided to put the draft on my blog and will revise as needed. Feedback welcome, and I need to make it friendlier

Re: [Rd] Question about Rweb

2011-10-06 Thread Simon Urbanek
On Oct 6, 2011, at 12:20 PM, Dirk Eddelbuettel wrote: On 6 October 2011 at 09:37, Jay Emerson wrote: | Ted, | | Simon may be biased, but I am not. I'm barely a few days into | Rserve/FastRWeb and am blown away (and frustrated that I didn't have a | good excuse to give it a try sooner).

[Rd] Question about Rweb

2011-10-05 Thread Tonidandel, Scott
Greetings, I am working on creating an interactive website that will generate R-code for users based in the information they input on the site. Currently, the R-code can be generated and downloaded to be run locally on a computer with R. However, I have noticed a number of applications out

Re: [Rd] Question about Rweb

2011-10-05 Thread Simon Urbanek
On Oct 5, 2011, at 2:16 PM, Tonidandel, Scott wrote: Greetings, I am working on creating an interactive website that will generate R-code for users based in the information they input on the site. Currently, the R-code can be generated and downloaded to be run locally on a computer with

Re: [Rd] Question about Rweb

2011-10-05 Thread Ted Byers
- project.org] On Behalf Of Simon Urbanek Sent: October-05-11 3:06 PM To: Tonidandel, Scott Cc: r-devel@r-project.org Subject: Re: [Rd] Question about Rweb On Oct 5, 2011, at 2:16 PM, Tonidandel, Scott wrote: Greetings, I am working on creating an interactive website that will generate

Re: [Rd] Question about Rweb

2011-10-05 Thread Hervé Pagès
: [Rd] Question about Rweb On Oct 5, 2011, at 2:16 PM, Tonidandel, Scott wrote: Greetings, I am working on creating an interactive website that will generate R-code [snip] I may be biased, but I would recommend using FastRWeb, it's much more efficient and has a lot of advantages (allows pre

Re: [Rd] Question about Rweb

2011-10-05 Thread Simon Urbanek
Subject: Re: [Rd] Question about Rweb On Oct 5, 2011, at 2:16 PM, Tonidandel, Scott wrote: Greetings, I am working on creating an interactive website that will generate R-code [snip] I may be biased, but I would recommend using FastRWeb, it's much more efficient and has a lot

Re: [Rd] Question about Rweb

2011-10-05 Thread Ted Byers
Hi Simon, -Original Message- From: Simon Urbanek [mailto:simon.urba...@r-project.org] Sent: October-05-11 5:07 PM To: Ted Byers Cc: 'Tonidandel, Scott'; r-devel@r-project.org Subject: Re: [Rd] Question about Rweb Ted, On Oct 5, 2011, at 4:00 PM, Ted Byers wrote: Hi Simon

Re: [Rd] Question about Rweb

2011-10-05 Thread Simon Urbanek
Ted, On Oct 5, 2011, at 6:06 PM, Ted Byers wrote: Hi Simon, -Original Message- From: Simon Urbanek [mailto:simon.urba...@r-project.org] Sent: October-05-11 5:07 PM To: Ted Byers Cc: 'Tonidandel, Scott'; r-devel@r-project.org Subject: Re: [Rd] Question about Rweb Ted

Re: [Rd] question about assignment warnings for replacement methods

2011-04-10 Thread Hervé Pagès
Hi Simon, On 11-04-08 01:05 PM, Simon Urbanek wrote: On Apr 8, 2011, at 2:55 PM, Hervé Pagès wrote: Hi Duncan, Marc, On 11-04-05 11:15 AM, Duncan Murdoch wrote: On 05/04/2011 1:51 PM, Marc Carlson wrote: Hi, I have seen several packages that with the most recent version of R are giving a

Re: [Rd] question about assignment warnings for replacement methods

2011-04-08 Thread Hervé Pagès
Hi Duncan, Marc, On 11-04-05 11:15 AM, Duncan Murdoch wrote: On 05/04/2011 1:51 PM, Marc Carlson wrote: Hi, I have seen several packages that with the most recent version of R are giving a warning like this: Assignments in \usage in documentation object 'marginalData-methods':

Re: [Rd] question about assignment warnings for replacement methods

2011-04-08 Thread Simon Urbanek
On Apr 8, 2011, at 2:55 PM, Hervé Pagès wrote: Hi Duncan, Marc, On 11-04-05 11:15 AM, Duncan Murdoch wrote: On 05/04/2011 1:51 PM, Marc Carlson wrote: Hi, I have seen several packages that with the most recent version of R are giving a warning like this: Assignments in \usage in

[Rd] question about assignment warnings for replacement methods

2011-04-05 Thread Marc Carlson
Hi, I have seen several packages that with the most recent version of R are giving a warning like this: Assignments in \usage in documentation object 'marginalData-methods': marginalData(object) = value I assume that this is to prevent people from making assignments in their usage

Re: [Rd] question about assignment warnings for replacement methods

2011-04-05 Thread Duncan Murdoch
On 05/04/2011 1:51 PM, Marc Carlson wrote: Hi, I have seen several packages that with the most recent version of R are giving a warning like this: Assignments in \usage in documentation object 'marginalData-methods': marginalData(object) = value I assume that this is to prevent people from

Re: [Rd] question about assignment warnings for replacement methods

2011-04-05 Thread Marc Carlson
Thank you for the clarifications Duncan. Marc On 04/05/2011 11:15 AM, Duncan Murdoch wrote: On 05/04/2011 1:51 PM, Marc Carlson wrote: Hi, I have seen several packages that with the most recent version of R are giving a warning like this: Assignments in \usage in documentation object

Re: [Rd] Question on trying to build R 2.11.1 on Tru64(aka OSF1)

2010-06-10 Thread Bill . Glessner
pda...@gmail.com Subject: Re: [Rd] Question on trying to build R 2.11.1 on Tru64(aka OSF1) To: bill.gless...@cwu.edu Cc: r-devel@r-project.org bill.gless...@cwu.edu wrote: First I tried 'setenv R_SHELL /usr/local/bin/bash', as bash is the weapon of choice for the faculty wishing to use R, then ran

Re: [Rd] Question on trying to build R 2.11.1 on Tru64(aka OSF1)

2010-06-09 Thread Bill . Glessner
Ripley rip...@stats.ox.ac.uk Subject: Re: [Rd] Question on trying to build R 2.11.1 on Tru64(aka OSF1) system To: bill.gless...@cwu.edu Cc: r-devel@r-project.org Ah, so configure has chosen /bin/ksh as the shell, and that does not like this sh syntax on your system. Try setting R_SHELL=/bin/sh when

Re: [Rd] Question on trying to build R 2.11.1 on Tru64(aka OSF1)

2010-06-09 Thread Peter Dalgaard
bill.gless...@cwu.edu wrote: First I tried 'setenv R_SHELL /usr/local/bin/bash', as bash is the weapon of choice for the faculty wishing to use R, then ran ./configure as before. The ./configure output line using as R_SHELL for scripts ... /usr/local/bin/bash would seem to indicate that

[Rd] Question on trying to build R 2.11.1 on Tru64(aka OSF1) system

2010-06-08 Thread Bill . Glessner
Hello, I am trying to build the R-2.11.1 software for university faculty to use in research projects on a DEC/Compaq/HP AlphaServer model GS160 16CPU/64GB memory running Tru64Unix aka OSF1 version 5.1B-5. Is it known whether it is possible to build the R-2.11.1 software on the platform I am

Re: [Rd] Question on trying to build R 2.11.1 on Tru64(aka OSF1) system

2010-06-08 Thread Prof Brian Ripley
On Tue, 8 Jun 2010, bill.gless...@cwu.edu wrote: Hello, I am trying to build the R-2.11.1 software for university faculty to use in research projects on a DEC/Compaq/HP AlphaServer model GS160 16CPU/64GB memory running Tru64Unix aka OSF1 version 5.1B-5. Is it known whether it is possible to

Re: [Rd] Question on trying to build R 2.11.1 on Tru64(aka OSF1) system

2010-06-08 Thread Bill . Glessner
} ${extra} $...@} ### Local Variables: *** ### mode: sh *** ### sh-indentation: 2 *** ### End: *** Bill Return-path: rip...@stats.ox.ac.uk Date: Tue, 08 Jun 2010 19:41:05 +0100 (BST) From: Prof Brian Ripley rip...@stats.ox.ac.uk Subject: Re: [Rd] Question on trying to build R 2.11.1 on Tru64(aka OSF1

Re: [Rd] Question on trying to build R 2.11.1 on Tru64(aka OSF1)system

2010-06-08 Thread William Dunlap
...@r-project.org [mailto:r-devel-boun...@r-project.org] On Behalf Of bill.gless...@cwu.edu Sent: Tuesday, June 08, 2010 1:20 PM To: r-devel@r-project.org Subject: Re: [Rd] Question on trying to build R 2.11.1 on Tru64(aka OSF1)system Here is the Rcmd from the ./bin subdirectory

Re: [Rd] Question on trying to build R 2.11.1 on Tru64(aka OSF1) system

2010-06-08 Thread Prof Brian Ripley
} ${extra} $...@} ### Local Variables: *** ### mode: sh *** ### sh-indentation: 2 *** ### End: *** Bill Return-path: rip...@stats.ox.ac.uk Date: Tue, 08 Jun 2010 19:41:05 +0100 (BST) From: Prof Brian Ripley rip...@stats.ox.ac.uk Subject: Re: [Rd] Question on trying to build R 2.11.1 on Tru64(aka

Re: [Rd] Question on trying to build R 2.11.1 on Tru64(aka OSF1) system

2010-06-08 Thread Peter Dalgaard
Prof Brian Ripley wrote: Ah, so configure has chosen /bin/ksh as the shell, and that does not like this sh syntax on your system. Try setting R_SHELL=/bin/sh when configuring (or the path to bash, if you have that). Alternatively, use $...@} in Rcmd.in (we have that as a workaround in

Re: [Rd] Question on trying to build R 2.11.1 on Tru64(aka OSF1) system

2010-06-08 Thread Prof Brian Ripley
On Wed, 9 Jun 2010, Peter Dalgaard wrote: Prof Brian Ripley wrote: Ah, so configure has chosen /bin/ksh as the shell, and that does not like this sh syntax on your system. Try setting R_SHELL=/bin/sh when configuring (or the path to bash, if you have that). Alternatively, use $...@} in

Re: [Rd] Question of R CMD check

2010-04-26 Thread Uwe Ligges
On 25.04.2010 20:33, rusers.sh wrote: Hi all, I find the problem.See below. Today, i installed the newest R-VERSION2.11.0 for checking. Different error occurred. I checked the log and found 'Hmisc' package caused this. At present, binary package was not provided. After i installed an old

Re: [Rd] Question of R CMD check

2010-04-25 Thread rusers.sh
Hi all, I find the problem.See below. Today, i installed the newest R-VERSION2.11.0 for checking. Different error occurred. I checked the log and found 'Hmisc' package caused this. At present, binary package was not provided. After i installed an old version of 'Hmisc' package, it works very

Re: [Rd] Question of R CMD check

2010-04-23 Thread Duncan Murdoch
On 21/04/2010 9:48 PM, rusers.sh wrote: Hi all, Today, i just installed the newest R version 2.10.1 and other necessary tools for building R package under windows,e.g. Rtools, perl. All are the newest version. After the correct configuration under windows (configuration should be correct),

Re: [Rd] Question of R CMD check

2010-04-23 Thread rusers.sh
Hi Duncan, Thanks for reminding me. See below for the error information from *.Rout file It seems that 'pkgname' was not found. I am not sure whether there is some problem with my functions or it is a little bug. Thanks a lot. ### assign(ptime, proc.time(), pos = CheckExEnv) ## at

Re: [Rd] Question of R CMD check

2010-04-23 Thread Duncan Murdoch
On 23/04/2010 1:19 PM, rusers.sh wrote: Hi Duncan, Thanks for reminding me. See below for the error information from *.Rout file It seems that 'pkgname' was not found. I am not sure whether there is some problem with my functions or it is a little bug. Thanks a lot. ###

Re: [Rd] Question of R CMD check

2010-04-23 Thread rusers.sh
Hi Duncan, Enclosed is the example package and the checking results. No rm() or remove() in the example. Before this re-installation of R and other tools (e.g. Rtools), there are no errors for package checking. Thanks. 2010/4/23 Duncan Murdoch murdoch.dun...@gmail.com On 23/04/2010 1:19

[Rd] Question of R CMD check

2010-04-21 Thread rusers.sh
Hi all, Today, i just installed the newest R version 2.10.1 and other necessary tools for building R package under windows,e.g. Rtools, perl. All are the newest version. After the correct configuration under windows (configuration should be correct), i use it to re-check my old package. I

[Rd] question about differences in behavior with NA subscripts in matrix vs. data.frame

2009-12-03 Thread Mark Kimpel
I ran into a problem today when using a conditional for sub-setting a data.frame and tracked it down to a difference in behavior between the treatment of NA when sub-setting matrices and data.frames. A self-contained example is below followed by sessionInfo(). I'm not questioning the documentation

[Rd] Question about image() behavior

2009-11-25 Thread Justin McGrath
If the x vector has a gap, then image() fills in those spots using the z value of the nearest x value. I had expected it to just leave those spaces blank though. For example x=c(1:5,100:105) y=c(1:10) z=matrix(rnorm(100),10,10) image(x,y,z) I expected that to produce a figure with a wide

Re: [Rd] Question about image() behavior

2009-11-25 Thread Duncan Murdoch
On 25/11/2009 3:00 PM, Justin McGrath wrote: If the x vector has a gap, then image() fills in those spots using the z value of the nearest x value. I had expected it to just leave those spaces blank though. For example x=c(1:5,100:105) y=c(1:10) z=matrix(rnorm(100),10,10) image(x,y,z) I

[Rd] Question R's parser : - parsing x=\n 1

2009-11-24 Thread Saptarshi Guha
Hello I was reading the source main/src/gram.y and had one question, how does R parse x = 1 According the grammar: prog: END_OF_INPUT{ return 0; } | '\n'{ return xxvalue(NULL,2,NULL); } | expr_or_assign '\n'

Re: [Rd] Question R's parser : - parsing x=\n 1

2009-11-24 Thread Simon Urbanek
On Nov 25, 2009, at 1:03 AM, Saptarshi Guha wrote: Hello I was reading the source main/src/gram.y and had one question, how does R parse x = 1 According the grammar: prog: END_OF_INPUT{ return 0; } | '\n'{ return

Re: [Rd] Question when compiling source code with VC++

2009-10-16 Thread cstrato
Thank you for this clarification, neither did I know that it was written by Brian Ripley (although now this seems to be obvious) nor that the advice is already 10 years old. Thus please allow me to re-phrase my question: Dear Prof. Ripley: 1, Why did you propose the option /MT instead of

Re: [Rd] Question when compiling source code with VC++

2009-10-16 Thread Simon Urbanek
On Oct 15, 2009, at 17:01 , cstrato wrote: Dear Duncan, In your document readme.packages.txt you have a very helpful chapter on Using Visual C++. Please allow me to ask you one question: Why do you propose the option /MT instead of option /MD? (To my knowledge usually option /MD is used

Re: [Rd] Question when compiling source code with VC++

2009-10-16 Thread cstrato
Dear Simon, Of course I have read the MS docs, especially: http://msdn.microsoft.com/en-us/library/2kzt1wy3.aspx which says, that /MT uses the multithread, static version of the run-time library. As far as I understand this is not what most people want since to my knowledge most programs seem

[Rd] Question when compiling source code with VC++

2009-10-15 Thread cstrato
Dear Duncan, In your document readme.packages.txt you have a very helpful chapter on Using Visual C++. Please allow me to ask you one question: Why do you propose the option /MT instead of option /MD? (To my knowledge usually option /MD is used when compiling programs with VC++.) Best

Re: [Rd] Question when compiling source code with VC++

2009-10-15 Thread Duncan Murdoch
On 15/10/2009 5:01 PM, cstrato wrote: Dear Duncan, In your document readme.packages.txt you have a very helpful chapter on Using Visual C++. Please allow me to ask you one question: Why do you propose the option /MT instead of option /MD? (To my knowledge usually option /MD is used when

Re: [Rd] question about ... passed to two different functions

2009-09-08 Thread William Dunlap
-Original Message- From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r-project.org] On Behalf Of Charles Geyer Sent: Monday, September 07, 2009 1:39 PM To: r-devel@r-project.org Subject: Re: [Rd] question about ... passed to two different functions Many thanks to those

Re: [Rd] question about ... passed to two different functions

2009-09-07 Thread Charles Geyer
Many thanks to those (Martin Morgan, Duncan Murdoch) who tried to straighten me out on ... arguments. It didn't work until I accidentally made two examples I thought were the same but one worked and the other didn't. Finally I achieved enlightenment. The following section has been added to the

[Rd] question about --with-valgrind-instrumentation=level

2009-09-06 Thread Charles Geyer
Does --with-valgrind-instrumentation=2 slow down R when valgrind or gctorture are not in use? I am thinking of compiling the R that the whole department uses for research and teachin with --with-valgrind-instrumentation=2. Is that a good idea or a bad idea? -- Charles Geyer Professor, School of

Re: [Rd] question about --with-valgrind-instrumentation=level

2009-09-06 Thread Prof Brian Ripley
On Sun, 6 Sep 2009, Charles Geyer wrote: Does --with-valgrind-instrumentation=2 slow down R when valgrind or gctorture are not in use? I am thinking of compiling the R that the whole department uses for research and teachin with --with-valgrind-instrumentation=2. Is that a good idea or a bad

<    1   2   3   >