From jgrn at illinois.edu  Thu Oct  8 19:51:25 2015
From: jgrn at illinois.edu (Jonathan Greenberg)
Date: Thu, 08 Oct 2015 17:51:25 +0000
Subject: [Rd] library() in .Rd Examples (Depends vs. Imports)?
Message-ID: <CABG0rfvubYw7HVFA_AQW4wGr4NvXY_1dZv7JDUP7TmULuE94eg@mail.gmail.com>

I'm a little confused when documenting my code using Imports vs. Depends.
If I have an example in my .Rd that uses a library that is listed under
Imports, it doesn't work, but if it is listed under Depends, it does.  What
is the proper way to go about using examples that rely on an Imports?
Should I just if(require(somepackage)) in the example?  Or is there a more
elegant way of doing this?

--j

	[[alternative HTML version deleted]]



[Rd] library() in .Rd Examples (Depends vs. Imports)?
Jonathan Greenberg