There are usually two types of packages for R (package):
1 Binary Packages: This package belongs to the ready-to-use (ready-to-use), but depends on the platform, that is, the win and Linux platforms are different.
2 Source Package: These packages can be used across platforms, but need to be processed or compiled (compiled) before use.
. Libpaths (): View the installation directory for the package
Library (): View the installed packages directory
Installed.packages (): View installed package information
Library (mypackage): Load MyPackage Pack
GetOption ("Defaultpackages"): View the packages that are loaded automatically when you start R.
Help (package = ' mypackage '): See ' MyPackage '
Args (function): View parameters of functions
Example (function): Automatically run this function in the Help document example, great!
Demo ("Package"): Show some packages in demostration, need to look again??
Vignette (' MyPackage '): Some packages, especially Bioconductor's, have vignette, use functions to view
Openvignette (' MyPackage '): This function can also be viewed vignette, better with some
Rsitesearch ("Helpinfor"): Search for information about "Helpinfor" on R website
Help.start (): Check out the detailed HTML documentation for the installed package, which is a great command.
Update:
Search (): View the currently loaded package
Sessioninfo (): View packages loaded in R
Sys.getenv ("R_home"): Query R HOME installation Address
Sys.getenv ("Home"): Query user Home Address
Methods (): View all methods in a S3 generic function or all methods in a class (S3:s version 3)
Showmethods (class = "MyClass"): View methods of the S4 class
Findmethods ("Mymethods"): View the code of the method
Class (MyObject): View the classes of an object
GetClass ("Class/package"): View the specific contents of a class or package
Getslots ("class"): View slots for a class
Slotnames (MyObject): View a slot for an object.
You can use [email protected] to access the slot value of the object, this @ design is too cool, can be used continuously.
Query in-Package information: 1. Function/method: See the details of a "function" or "method"
2. Class?graph::graph: See an example of the details of "group". The source of this example is to query the graph package, look at the information of the class, input?? A graph::graph-class appears after graph.
LS ("Package:mypackage"): View all objects in "MyPackage".
Transferred from: http://blog.sina.com.cn/s/blog_61f013b80100ljgq.html
R language Pack-related commands