Quantcast

Setting default path to library

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Setting default path to library

Steve_Friedman@nps.gov

Hello

I recently upgraded from 2.11.1 to 2.12.0 on a windows machine. When I
launch R  via TINN - R,(2.3.7.0)  most things appear correct. The exception
is the path to the library.

I store all of the packages in C:\Program_Files \R\R-2.12.0\library

Last week when I upgraded I rec'd an error:
Error in loadNamespace(i[[1L]], c(lib.loc, .libPaths())))  :
 there is no package called "cluster"

Well the cluster package was there, but I installed a new version from a
local *.zip file to be sure, and things worked fine.

This morning, when I launched R again, I rec'd the same error message, also
indicating that the package "Hmisc" could not be loaded.  It too is in the
library folder.

I think the system is searching for some packages in
C:\\Program_Files\R\R-2.12.0\bin\i386

Why would it do that and what is the appropriate commands to tell R where
to look for installed packages?
I've search the archive and have not found a clear understandable answer.

As always, Thanks for the assistance

Steve




Steve Friedman Ph. D.
Ecologist  / Spatial Statistical Analyst
Everglades and Dry Tortugas National Park
950 N Krome Ave (3rd Floor)
Homestead, Florida 33034

[hidden email]
Office (305) 224 - 4282
Fax     (305) 224 - 4147

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Setting default path to library

Henrique Dallazuanna
Take a look in .libPaths()

On Mon, Nov 29, 2010 at 1:32 PM, <[hidden email]> wrote:

>
> Hello
>
> I recently upgraded from 2.11.1 to 2.12.0 on a windows machine. When I
> launch R  via TINN - R,(2.3.7.0)  most things appear correct. The exception
> is the path to the library.
>
> I store all of the packages in C:\Program_Files \R\R-2.12.0\library
>
> Last week when I upgraded I rec'd an error:
> Error in loadNamespace(i[[1L]], c(lib.loc, .libPaths())))  :
>  there is no package called "cluster"
>
> Well the cluster package was there, but I installed a new version from a
> local *.zip file to be sure, and things worked fine.
>
> This morning, when I launched R again, I rec'd the same error message, also
> indicating that the package "Hmisc" could not be loaded.  It too is in the
> library folder.
>
> I think the system is searching for some packages in
> C:\\Program_Files\R\R-2.12.0\bin\i386
>
> Why would it do that and what is the appropriate commands to tell R where
> to look for installed packages?
> I've search the archive and have not found a clear understandable answer.
>
> As always, Thanks for the assistance
>
> Steve
>
>
>
>
> Steve Friedman Ph. D.
> Ecologist  / Spatial Statistical Analyst
> Everglades and Dry Tortugas National Park
> 950 N Krome Ave (3rd Floor)
> Homestead, Florida 33034
>
> [hidden email]
> Office (305) 224 - 4282
> Fax     (305) 224 - 4147
>
> ______________________________________________
> [hidden email] 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.
>


--
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

        [[alternative HTML version deleted]]


______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: htest class members and print method

David L Lorenz
Rui,
  The answer to your last question is easy--you cannot add a new component
to an object of class "htest" and have it printed by print.htest. But that
does not mean that you cannot add a component to the output for your own
use.
  You will need to decide what you want for output, both visually and in
terms of ease of any post processing. A data.frame would be nice in that
it would already for the table for any report, but it would require that
the test you have designed have the same output for all orders. An
alternative would be a list that contains the output from each test.
Printing the list would create a nicely formatted report for each test.
Dave

> Hello,
>
> I am writing a test function, and would like to have it return an
> appropriate 'htest'
> object. This is very easy, but the test can be run for several orders, a
> frequent situation
> in time series tests.
>
> It would be nice to return a data.frame with order, params, test
statistic,
> p.value.
>
> After seeing the 'htest' members in the help pages, I discovered that
the
> class has a 'null.value' member that fits the job (it's what I'm using)
but
> it's name may be misleading.
>
> Is it possible to create a new member with a new, or at least different,
> name and have print.htest correctly print it?
>
>
> Rui Barradas
>

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] 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.
Loading...