From ivowel at gmail.com  Sat Mar 25 15:17:43 2006
From: ivowel at gmail.com (ivo welch)
Date: Sat, 25 Mar 2006 09:17:43 -0500
Subject: [Rd] Suggestion: Slightly Clearer Error Message
Message-ID: <50d1c22d0603250617p419966e3h3a306e7f016056d1@mail.gmail.com>

dear R developers:

May I suggest that you enhance the error message:

Error in "[<-"(`*tmp*`, , curcol, value = c(0.0198881080712288,
0.00889721376726782,  :
	number of items to replace is not a multiple of replacement length

with information about why this is the case?  For example,

	number of items to replace (dimensions: x,y,z) is not a multiple of
replacement length (dimension x,y)

I just spent some time to figure out that a row-vector was not a
col-vector in context here.  in fact, this may warrant a special note
("you cannot replace a col-vector of length x with a row-vector of
length y").

just a suggestion...

regards,

/iaw



[Rd] Suggestion: Slightly Clearer Error Message
ivo welch