[R] Trouble installing pwr package

Phil Spector spector at stat.berkeley.edu
Tue Sep 21 19:06:08 CEST 2010


Brian -
     After you load a package with the library command, you 
can see what objects are available by looking at position 2
in the search path:

> library(pwr)
> objects(pos=2)
  [1] "cohen.ES"       "ES.h"           "ES.w1"          "ES.w2"
  [5] "pwr.2p2n.test"  "pwr.2p.test"    "pwr.anova.test" "pwr.chisq.test"
  [9] "pwr.f2.test"    "pwr.norm.test"  "pwr.p.test"     "pwr.r.test" 
[13] "pwr.t2n.test"   "pwr.t.test"

Those are the functions that are made available by loading the
pwr package.  Do you see something different after you load pwr?

 					- Phil Spector
 					 Statistical Computing Facility
 					 Department of Statistics
 					 UC Berkeley
 					 spector at stat.berkeley.edu


On Tue, 21 Sep 2010, Brian J Mingus wrote:

> Hi all,
>
> I'm having trouble getting access to the pwr. This is on Ubuntu Lucid Lynx,
> 64 bit.
>
> I'm installing pwr via packages.install('pwr'), and loading it via
> library(pwr), both of which appear successful.
>
> Strangely, I never get access to the pwr object in R.
>
> I tried installing it to /usr/local/lib/R/site-library and
> ~/R/x86_64-pc-linux-gnu-library.
>
> I also tried installing it with R CMD INSTALL pwr.
>
> I have also tried installing it on my mac mini running Leopard but it can't
> even find the packages object, and CMD INSTALL pwr returns "invalid package
> 'pwr'".
>
> Expedient help would be appreciated :-)
>
> Brian Mingus
> Graduate student
> Computational Cognitive Neuroscience Lab
> University of Colorado at Boulder
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
>



More information about the R-help mailing list