[R] On-demand importing of a package

Jakson Alves de Aquino jalvesaq at gmail.com
Fri Nov 25 17:52:18 CET 2011

On Fri, Nov 25, 2011 at 1:21 PM, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote:


> I was framing this in terms of the Matrix example, but perhaps its
> easier to understand with the actual example which motivated this for
> me.  That is, the feature is that whenever sqldf is installed then
> RSQLite is installed too without having RSQLite automatically load
> when sqldf loads.


I think that the following procedure has the result that you want:

Put in the DESCRIPTION file:

Imports: RSQLite

And in the R code write something like:


Jakson Alves de Aquino
Federal University of Ceará
Social Sciences Department

More information about the R-help mailing list