Version Upgrade and Packages
On Mar 4, 2013, at 8:28 AM, Rich Shepard wrote:
On Mon, 4 Mar 2013, MacQueen, Don wrote:
Immediately after you see one of those messages, do, e.g.,
find('cor')
It should tell you that you have more than one object named 'cor' in your search path, and where they all are. Then you can decide if it's what you want (probably not, but can't say from here).
Don, find doesn't because these are apparently not individual files. So I run egrep -R 'cor' * or egrep -R 'as.Date' * within /usr/lib/R/library and see many instances of where these strings are used. Many are in help files. Others are used in different libraries; for example:
Don assumed you were in an R session. The `find` function in R takes a character argument. You did not produce the entire message because you should have seen immediately above that message the name of a package being loaded (in this case most likely as part of the startup process)
?Startup
In my ,Rprofile I load both package:sos and package:utils and I see this at startupo:
-------
Attaching package: ?utils?
The following object(s) are masked from ?package:sos?:
?
------------
So the sos function '?' is masked by the utils function named '?'
gdata/unitTests/runit.getDateTimeParts.R:cDate <- as.Date(tDate)
plyr/tests/test-rbind.r: d = as.Date(c("2008-01-01", "2009-01-01",
"2010-01-01")))
spacetime/demo/gvis.R: rural_PM10$time == as.Date("2003-12-31"))
timeDate/unitTests/runit.SpecialDates.R: dts <- as.Date(ch.dts)
zoo/NAMESPACE: "as.Date",
I'm not seeing code for as.Date, as.Date.numeric, or cor in multiple
libraries.
Please read Uwe Ligges' excellent article regarding finding R code: http://cran.r-project.org/doc/Rnews/Rnews_2006-4.pdf
David Winsemius Alameda, CA, USA