Skip to content

Note: no visible binding for global variable 'Dimnames'

1 message · Sam Steingold

#
I get this (twice):

Note: no visible binding for global variable 'Dimnames'
Note: no visible binding for global variable 'Dimnames'

on the __first__ invocation of a function which does this:

sm <- sparseMatrix(i = ..., j = ..., x = ...)
for (i in 1:length(mynames))
  usr[[mynames[i]]] <- sm[,i]

the Notes are printed when the usr<-sm assignment is evaluated for i==1.
(but not for any subsequent i's of subsequent calls to the function).

I seem to be getting the right results, so I have been ignoring these
messages, but I was wondering if I was doing something wrong.

(needless to say that I do not have the word "Dimnames" anywhere in my code)