From Martin Maechler <maechler@stat.math.ethz.ch>  Fri Jun  5 17:47:13 1998
From: Martin Maechler <maechler@stat.math.ethz.ch> (Martin Maechler)
Date: Fri, 5 Jun 1998 18:47:13 +0200
Subject: help on R primitives
In-Reply-To: <Pine.OSF.3.95.980605113348.26754A-100000@io.uwinnipeg.ca>
 (message from Bill Simpson on Fri, 5 Jun 1998 11:37:12 -0500 (CDT))
Message-ID: <199806051647.SAA02459@sophie.ethz.ch>

>>>>> "Bill" == Bill Simpson <wsimpson@uwinnipeg.ca> writes:

    Bill> Not sure if primitives is the right word, but look at this:
    >> help(for)
    Bill> Error: syntax error
    >> ?for
    Bill> + [hit ctrl-c to get out at this pt]

    Bill> Either way I try I can't get help on for. Can the help mechanism
    Bill> be modified so it is possible to get help on these guys?  Another
    Bill> example:
    >> help(if)
    Bill> Error: syntax error

I'm not sure if we can prevent these cases, without a lot of special case
coding ((it is pretty delicate to improve help(.)  [argument deparsing...]))

However, 

	" help on 'help' helps "  in this case :
	  ~~~~~~~~~~~~~~~~~~~~

> help()

Online Documentation

     help(topic, package = c(.packages(),.Autoloaded), lib.loc = .lib.loc)

     ?topic

Arguments:

   topic: a name or character string on which documentation
          is sought (but not a variable containing a charac-
          ter string!).


	..................

	..................

Examples:

     help()
     help(help)              # the same

     help(lapply)
     ?lapply                 # the same

     help("for")             # or ?"for", but the quotes are needed
     ?"+"


Martin Maechler <maechler@stat.math.ethz.ch>			<><
Seminar fuer Statistik, ETH-Zentrum SOL G1;	Sonneggstr.33
ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
phone: x-41-1-632-3408		fax: ...-1086
http://www.stat.math.ethz.ch/~maechler/
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


help on R primitives
Martin Maechler