Hi Sometimes (and I haven't yet found out what causes it) I get a message: Warning: ingnored non-function "t" I think it may be either when I have done a Ctl-C to break in or I may have inadvertently named a variable after one of the many system or other functions. I have seen names other than "t". Anyway, the only way I can get rid of it is to exit and restart. I don't think it causes any problems but has anyone else seen it and how to avoid? I am running 0.63.3 from the CRAN rpm on RH5.2 John -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>>>>> On Tue, 6 Apr 1999 14:36:08 +0100 (BST), >>>>> John Logsdon (JL) wrote:JL> Hi JL> Sometimes (and I haven't yet found out what causes it) I get a message: JL> Warning: ingnored non-function "t" JL> I think it may be either when I have done a Ctl-C to break in or I may JL> have inadvertently named a variable after one of the many system or other JL> functions. I have seen names other than "t". Yes, t is indeed a system function, namely the one to get the transpose of a matrix. The above warning says that you use symbol t where a variable is needed, hence the function is ignored and the variable used. But in general it is safer to avoid name conflicts like those. An easy way to check things like that (after seeing the warning) is to start a new R process (without restoring an old namespace) and simply type (in yor case) `t ENTER': R> t function (x) UseMethod("t") which gives you the definition of object t (a function). Another obvious way is checking if there's any help for the name (``help(t)''). Hope this helps, Fritz PS: Other one letter functions include c() and q() -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Tue, 6 Apr 1999, John Logsdon wrote:> Hi > > Sometimes (and I haven't yet found out what causes it) I get a message: > > Warning: ingnored non-function "t" > > I think it may be either when I have done a Ctl-C to break in or I may > have inadvertently named a variable after one of the many system or other > functions. I have seen names other than "t". > > Anyway, the only way I can get rid of it is to exit and restart. I don't > think it causes any problems but has anyone else seen it and how to avoid? > > I am running 0.63.3 from the CRAN rpm on RH5.2 > > John >As you suggest, this happens when you've named a variable after a system function ("t" and "c" are the most common culprits). All you have to do is remove the offending variable using rm(t) or rm(c); of course, if you need that variable you probably want to copy it somewhere. R usually does the right thing under these circumstances, it's just warning you. This should probably go in a FAQ list somewhere: I get this question from students frequently. Or perhaps (?) the warning message could be usefully extended to 'ignored non-function "t"; type rm(t) to remove', or even 'ignored non-function "t"; help("conflicts") for more information' (where this basic information was provided in a help file). Ben -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._