[Rd] checkRd freezes while parsing erroneous preprocessor macros

2012-01-13 Thread Hans-Jörg Bibiko
Dear developers, I came across with a bug while parsing Rd files. Given is the following minimal Rd file: \name{foo} \title{foo} \description{ #ifdef windows win #endifd #ifdef unix unix #endif } By accident I have a typo at line 6, instead of having #endif I typed #en

Re: [Rd] Possible bug in edit(x) for editing matrices [tested on a Mac]

2011-12-19 Thread Hans-Jörg Bibiko
On 19 Dec 2011, at 12:22, Prof Brian Ripley wrote: >> it seems there's a possible bug in edit(x) if x is a matrix filled with NA >> only. > > It's as documented. Hint: look at mode(a) or str(a), and check what values > are accepted for a logical matrix. Thank you very much! I wasn't aware of

[Rd] Possible bug in edit(x) for editing matrices [tested on a Mac]

2011-12-19 Thread Hans-Jörg Bibiko
Hi, it seems there's a possible bug in edit(x) if x is a matrix filled with NA only. To reproduce please do the following: a <- matrix() edit(a) change e.g. the cell value to 1 and close the GUI-based editor. edit(a) returns NA. This also happens for any dimension of the matrix as long as all

Re: [Rd] strsplit convert data

2011-10-25 Thread Hans-Jörg Bibiko
On 25 Oct 2011, at 14:59, RMSOPS wrote: > Error in strsplit(line, ",*") : non-character argument I wrote strsplit(line, ", *") a " " [space] between , and * !! Cheers, --Hans __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinf

Re: [Rd] strsplit convert data

2011-10-24 Thread Hans-Jörg Bibiko
On 25 Oct 2011, at 00:34, RMSOPS wrote: > To be more specific, my problem is here > Line <-dataset $ Items [i] > print (line) > in.s <- strsplit (line, '') > > I am reading lines from a file > Line 1 A, B, C, D, G > Line 2 A, C, E, > ... > line n F, G > > the problem is that I can not make