> * Duncan Murdoch <zheqbpu.qha...@tznvy.pbz> [2012-04-04 21:46:57 -0400]: > > On 12-04-04 5:15 PM, Sam Steingold wrote: >>> * Duncan Murdoch<zheqbpu.qha...@tznvy.pbz> [2012-04-04 17:00:32 -0400]: >>> >>> There's no warning when you mask a function with a non-function at top >>> level, and little need for one, because R does the right search based on >>> the fact that you're making a function call: >>> >>>> c >>> [1] 1 >>>> c(1,2) >>> [1] 1 2 >> >> why then am I getting these warnings from cmpfile? > > You would have to tell me what you did before I could attempt to answer > that.
all <- 1 cmpfile("foo.R") where foo.R contains functions which call all() >> >> Note: no visible global function definition for 'all' >> Note: no visible global function definition for 'all' >> Note: no visible global function definition for 'all' >> Note: no visible global function definition for 'all' >> Note: no visible global function definition for 'all' >> Note: no visible global function definition for 'all' >> Note: no visible global function definition for 'all' >> Note: no visible global function definition for 'all' >> Note: no visible global function definition for 'all' >> Note: no visible global function definition for 'all' >> >> I did overwrite all to a data frame, but it only appears in a funtion >> position all(...) in the file being compiled. >> > -- Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000 http://www.childpsy.net/ http://pmw.org.il http://camera.org http://palestinefacts.org http://truepeace.org http://ffii.org A language that does not change the way you think is not worth learning. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.