Re: [Rd] AIX-5.3 Issue installing Matrix Package

2014-10-07 Thread Ei-ji Nakama
hi, >> root 492034 336504 0 14:34:36 pts/11 0:00 sh >> /gpfs1/home/shivali/gang/R-3.1.1/lib/R/bin/Rcmd INSTALL Matrix maybe sh running is not good. please install bash. CONFIG_SHELL=/boo/foo/bash before running `configure && make'. -- Best Regards, -- Eiji NAKAMA "\u4e2d\u9593\u6804\u6

Re: [Rd] [R logs] Help in develop a simply logs package

2014-10-07 Thread William Dunlap
R has support for options(warning.expression=...), but it acts differently than the options(error=...). S (and S+) let the user override the default '.Program' expression. Its default value was essentially print(.Last.value <- eval(parse(file=stdin( but a replacement could add stuff like pr

[Rd] AIX-5.3 Issue installing Matrix Package

2014-10-07 Thread Martin Maechler
I've changed the subject to draw attention to this issue. For more, see inline below > Hi, > I installed R-3.1.1 on AIX-5.3 and my installation hanged up while > installing Matrix Package. > so i killed the gmake ; gmake install the software nad tired installing > Matrix package manually - > [nc

Re: [Rd] [R logs] Help in develop a simply logs package

2014-10-07 Thread Duncan Murdoch
On 07/10/2014 11:11 AM, DataK - B. THIEURMEL wrote: Do you think there is a way to apply a "global" withCallingHandlers() on all environement / packages loaded, and then all R code will be executed with the defined handler ? That question makes no sense. withCallingHandlers is not applied to

Re: [Rd] [R logs] Help in develop a simply logs package

2014-10-07 Thread Gergely Daróczi
On Tue, Oct 7, 2014 at 4:51 PM, Duncan Murdoch wrote: > On 07/10/2014 10:41 AM, DataK - B. THIEURMEL wrote: > >> OK, thank you for your answers. We are thus going to continue by >> analyzing these features >> > > The general outline would be this: > > 1. Call parse() on the whole file. This wil

Re: [Rd] [R logs] Help in develop a simply logs package

2014-10-07 Thread DataK - B. THIEURMEL
Do you think there is a way to apply a "global" withCallingHandlers() on all environement / packages loaded, and then all R code will be executed with the defined handler ? With this way, we can define what we want for warning, message, error, ... one time, and apply it without needed of parse(

Re: [Rd] [R logs] Help in develop a simply logs package

2014-10-07 Thread Duncan Murdoch
On 07/10/2014 10:41 AM, DataK - B. THIEURMEL wrote: OK, thank you for your answers. We are thus going to continue by analyzing these features The general outline would be this: 1. Call parse() on the whole file. This will catch any syntax errors. If it parses okay, you'll get a vector of e

Re: [Rd] [R logs] Help in develop a simply logs package

2014-10-07 Thread DataK - B. THIEURMEL
OK, thank you for your answers. We are thus going to continue by analyzing these features Le 2014-10-07 16:29, Duncan Murdoch a écrit : On 07/10/2014 10:16 AM, DataK - B. THIEURMEL wrote: Thank. withCallingHandlers() and "pander::evals" seem to be very interesting, but little adapted to the an

Re: [Rd] [R logs] Help in develop a simply logs package

2014-10-07 Thread Duncan Murdoch
On 07/10/2014 10:16 AM, DataK - B. THIEURMEL wrote: Thank. withCallingHandlers() and "pander::evals" seem to be very interesting, but little adapted to the analysis of one or several scripts R / of many lines of code. Our goal is one packages requiring no modifications of code R to be able to get

Re: [Rd] [R logs] Help in develop a simply logs package

2014-10-07 Thread Gergely Daróczi
On Tue, Oct 7, 2014 at 2:21 PM, Duncan Murdoch wrote: > On 07/10/2014, 7:04 AM, DataK - B. THIEURMEL wrote: > > Hi, > > > > With the use of R in production, it is necessary to have a system of > > logs effective, and light. > > > > Package exist as to futile.logger, but it require the additional

Re: [Rd] [R logs] Help in develop a simply logs package

2014-10-07 Thread DataK - B. THIEURMEL
Thank. withCallingHandlers() and "pander::evals" seem to be very interesting, but little adapted to the analysis of one or several scripts R / of many lines of code. Our goal is one packages requiring no modifications of code R to be able to get back all the desired information. Is-there a ho

Re: [Rd] [R logs] Help in develop a simply logs package

2014-10-07 Thread Duncan Murdoch
On 07/10/2014, 7:04 AM, DataK - B. THIEURMEL wrote: > Hi, > > With the use of R in production, it is necessary to have a system of > logs effective, and light. > > Package exist as to futile.logger, but it require the additional coding > of logs. So it is thus impossible / very difficult to use

[Rd] [R logs] Help in develop a simply logs package

2014-10-07 Thread DataK - B. THIEURMEL
Hi, With the use of R in production, it is necessary to have a system of logs effective, and light. Package exist as to futile.logger, but it require the additional coding of logs. So it is thus impossible / very difficult to use it with all package them used in the calculation Our idea is

[Rd] Issue installing Matrix Package

2014-10-07 Thread shivali
Hi, I installed R-3.1.1 on AIX-5.3 and my installation hanged up while installing Matrix Package. so i killed the gmake ; gmake install the software nad tired installing Matrix package manually - [ncmr0202][/gpfs1/home/shivali/gang/R-3.1.1/bin/package]> /gpfs1/home/shivali/gang/R-3.1.1/bin/R CMD

Re: [Rd] S4 Method Dispatch for Class Defined as Attribute

2014-10-07 Thread Sven E. Templer
Is setOldClass the solution? e.g. x <- list() class(x) <- "foo" setGeneric("bar", function(x) "bar generic") setOldClass("foo") setMethod("bar", "foo", function(x) "bar foo") bar(x) On 7 October 2014 10:00, Dario Strbenac wrote: > Hello, > > I am writing an interface to some functions from the

[Rd] S4 Method Dispatch for Class Defined as Attribute

2014-10-07 Thread Dario Strbenac
Hello, I am writing an interface to some functions from the CRAN package pamr, which is poorly written. I have a S4 method I declared with setMethod. I'd like to provide a signature of "pamrtrained" which is the class of object that training creates. The last two lines of code of pamr.train ar