[R] FW: can't get package boot to load
Adam D. I. Kramer
adik at ilovebacon.org
Sun Feb 1 00:23:44 CET 2009
If you check ?library, you will see that the package argument only takes one
packages. So your code was like saying library(package=RODBC, help=boot)
which does not make sense...but which would indeed load RODBC and not boot.
That is why your problem occurred and why your solution worked.
On Sat, 31 Jan 2009, Gary Smith wrote:
> seems to have solved the problem.
> From: Gary Smith [mailto:gary.smith28 at comcast.net]
> Sent: Saturday, January 31, 2009 12:55 PM
> To: 'r-help at R-project.org'
> Subject: can't get package boot to load
> I am new to R and I'm totally confused by this problem. I'm trying to load
> data and run a simple correlation using corr() in the boot package.
> Yesterday my code worked. Today it can't find the function corr(). I've
> tried searching the web and haven't found the root of my problem. Apologies
> if I've missed the obvious.
> My code is simple:
> setwd("C:/Documents and Settings/Gary Smith/My Documents/Blog/")
> data = odbcConnectExcel("LafferCurve2.xls")
> mydata = sqlFetch(data,"Data")
> Here are the console messages:
> Warning: package 'RODBC' is in use and will not be installed
> trying URL
> Content type 'application/zip' length 779420 bytes (761 Kb)
> opened URL
> downloaded 761 Kb
> package 'boot' successfully unpacked and MD5 sums checked
> The downloaded packages are in
> C:\Documents and Settings\Gary Smith\Local
> updating HTML package descriptions
>> setwd("C:/Documents and Settings/Gary Smith/My Documents/Blog/")
>> data = odbcConnectExcel("LafferCurve2.xls")
>> mydata = sqlFetch(data,"Data")
> Error: could not find function "corr"
> Using search(), I see:
>  ".GlobalEnv" "package:RODBC"
>  "package:stats" "package:graphics"
>  "package:grDevices" "package:utils"
>  "package:datasets" "package:methods"
>  "Autoloads" "package:base"
> Typing "install.packages('boot')" at the prompt gets me the same result.
> Thanks for any help.
> "Accept no assertions without evidence." --Goompah wisdom from "Omega" by
> Jack McDevitt--
> "Nature is complete because it does not serve itself." --"Tao De Jing" by
> Lao Tze--
More information about the R-help