Re: [R] a very small query

2007-03-26 Thread Gabor Grothendieck
Try these:

search()
sessionInfo()
loadedNamespaces()

The first two show the attached packages (and some other info) and the
last one shows the namespaces that are loaded.  Note that detaching
a package does not unload its namespace and unloading a namespace
does not de-register its methods.  This illustrates the behavior:

> search()
[1] ".GlobalEnv""package:stats" "package:graphics"
[4] "package:grDevices" "package:utils" "package:datasets"
[7] "package:methods"   "Autoloads" "package:base"
> loadedNamespaces()
[1] "base"  "graphics"  "grDevices" "methods"   "stats" "utils"
> as.Date(1) # error as there is no numeric method for as.Date
Error in as.Date.default(1) : do not know how to convert '1' to class "Date"

> library(zoo)
> search()
 [1] ".GlobalEnv""package:zoo"   "package:stats"
 [4] "package:graphics"  "package:grDevices" "package:utils"
 [7] "package:datasets"  "package:methods"   "Autoloads"
[10] "package:base"
> loadedNamespaces()
[1] "base"  "graphics"  "grDevices" "grid"  "lattice"   "methods"
[7] "stats" "utils" "zoo"
> as.Date(1) # zoo defines a numeric method for as.Date
[1] "1970-01-02"

> detach()
> unloadNamespace("zoo")

> search()
[1] ".GlobalEnv""package:stats" "package:graphics"
[4] "package:grDevices" "package:utils" "package:datasets"
[7] "package:methods"   "Autoloads" "package:base"
> loadedNamespaces()
[1] "base"  "graphics"  "grDevices" "grid"  "lattice"   "methods"
[7] "stats" "utils"
> # zoo is gone from attached package list and loadedNamespaces
> # but numeric method for as.Date from zoo is still registered
> as.Date(1)
[1] "1970-01-02"



On 3/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi All
>
> what is the command to give me the listing of the loaded packages. I mean
> which are active and not the listing of all the installed packages as
> given by library()
>
> thanks in advance
> -gaurav
>
>
> 
> DISCLAIMER AND CONFIDENTIALITY CAUTION:\ \ This message and ...{{dropped}}
>
> __
> R-help@stat.math.ethz.ch 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.
>

__
R-help@stat.math.ethz.ch 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.


Re: [R] a very small query

2007-03-26 Thread Prof Brian Ripley
On Mon, 26 Mar 2007, [EMAIL PROTECTED] wrote:

> what is the command to give me the listing of the loaded packages.

?search
?sessionInfo

(sessionInfo massages the output of search() to show only packages).

> I mean which are active and not the listing of all the installed 
> packages as given by library()

-- 
Brian D. Ripley,  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel:  +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595

__
R-help@stat.math.ethz.ch 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.


Re: [R] a very small query

2007-03-26 Thread Adaikalavan Ramasamy
sessionInfo()


[EMAIL PROTECTED] wrote:
> Hi All
> 
> what is the command to give me the listing of the loaded packages. I mean 
> which are active and not the listing of all the installed packages as 
> given by library()
> 
> thanks in advance
> -gaurav
> 
> 
> 
> DISCLAIMER AND CONFIDENTIALITY CAUTION:\ \ This message and ...{{dropped}}
> 
> __
> R-help@stat.math.ethz.ch 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.
> 
> 
>

__
R-help@stat.math.ethz.ch 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.


Re: [R] a very small query

2007-03-26 Thread Henrique Dallazuanna
Try:

search()

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

On 26/03/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Hi All
>
> what is the command to give me the listing of the loaded packages. I mean
> which are active and not the listing of all the installed packages as
> given by library()
>
> thanks in advance
> -gaurav
>
>
>
> 
> DISCLAIMER AND CONFIDENTIALITY CAUTION:\ \ This message and ...{{dropped}}
>
> __
> R-help@stat.math.ethz.ch 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.
>

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch 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.


[R] a very small query

2007-03-26 Thread gyadav

Hi All

what is the command to give me the listing of the loaded packages. I mean 
which are active and not the listing of all the installed packages as 
given by library()

thanks in advance
-gaurav



DISCLAIMER AND CONFIDENTIALITY CAUTION:\ \ This message and ...{{dropped}}

__
R-help@stat.math.ethz.ch 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.