Re: [Rd] Typo in NEWS: -as-cran should be --as-cran

2012-02-29 Thread peter dalgaard
On Feb 29, 2012, at 03:13 , Henrik Bengtsson wrote: > Under 'CHANGES IN R VERSION 2.14.2' in NEWS, there is: > > "R CMD check has a new option -as-cran to turn on most of the > customizations that CRAN uses for its incoming checks." > > "-as-cran" should be "--as-cran". Where do you see that?

[Rd] missing value break my if clause and crash my program

2012-02-29 Thread zisheng xing
I have a program which is designed to read through a dbf file and carry out certain amount of further calculation if one condition obtained from the newly read line. The condition to determine if the calculation can be done is a if-clasue (i.e. if(m>0). Unfortunately, when m is missing, the prog

Re: [Rd] Typo in NEWS: -as-cran should be --as-cran

2012-02-29 Thread Henrik Bengtsson
On Wed, Feb 29, 2012 at 2:21 AM, peter dalgaard wrote: > > On Feb 29, 2012, at 03:13 , Henrik Bengtsson wrote: > >> Under 'CHANGES IN R VERSION 2.14.2' in NEWS, there is: >> >> "R CMD check has a new option -as-cran to turn on most of the >> customizations that CRAN uses for its incoming checks."

[Rd] Replace back slashes with forward slashes?

2012-02-29 Thread Spencer Graves
Hello, All: What can people tell me about converting back slashes to forward slashes in character strings? Several years ago, Prof. Ripley provided a solution, which I lost and have not been able to find. Below please find a function to do this. I do not find this very

Re: [Rd] Replace back slashes with forward slashes?

2012-02-29 Thread Simon Urbanek
On Feb 29, 2012, at 12:37 PM, Spencer Graves wrote: > Hello, All: > > > What can people tell me about converting back slashes to forward slashes > in character strings? > > That's it's trivially done with gsub("\\", "/", x, fixed=TRUE) Where x is the character string (and I suppose y

Re: [Rd] Replace back slashes with forward slashes?

2012-02-29 Thread Spencer Graves
Hi, Simon: On 2/29/2012 10:04 AM, Simon Urbanek wrote: On Feb 29, 2012, at 12:37 PM, Spencer Graves wrote: Hello, All: What can people tell me about converting back slashes to forward slashes in character strings? That's it's trivially done with gsub("\\", "/", x, fixed=TRUE) Whe

Re: [Rd] Replace back slashes with forward slashes?

2012-02-29 Thread Uwe Ligges
On 29.02.2012 19:19, Spencer Graves wrote: Hi, Simon: On 2/29/2012 10:04 AM, Simon Urbanek wrote: On Feb 29, 2012, at 12:37 PM, Spencer Graves wrote: Hello, All: What can people tell me about converting back slashes to forward slashes in character strings? That's it's trivially done wi

Re: [Rd] Replace back slashes with forward slashes?

2012-02-29 Thread Simon Urbanek
On Feb 29, 2012, at 1:19 PM, Spencer Graves wrote: > Hi, Simon: > > On 2/29/2012 10:04 AM, Simon Urbanek wrote: >> On Feb 29, 2012, at 12:37 PM, Spencer Graves wrote: >> >>> Hello, All: >>> >>> >>> What can people tell me about converting back slashes to forward >>> slashes in character

[Rd] Alternative to .Internal(.dfltStop(msg, call))?

2012-02-29 Thread Henrik Bengtsson
Hi, I'm looking for a way to generate a "full stop" that will not be caught by signal handlers, cf. .Internal(.dfltStop(msg, call)). RATIONALE: In the R.oo package I have throw() which (leaving out some details) basically does what stop() does but appends a stack trace string to the error message