Skip to content
Prev 848 / 21307 Next

[Bioc-devel] Install subset of R package

"Oliver Bembom" <bembom at gmail.com> writes:
Separating the package into two parts is a very reasonable solution
and is probably the best option.
It isn't clear that install time is when you want to make the choice.
Why force a reinstall if you don't have to?

One other option, which will also become tedious or impossible
depending on the complexity of the code is:

   * Put tcl/tk in Suggests

   * In .onLoad, attempt to load tcltk using require and store the
     result in an environment in your package's name space.  Then you
     can have conditional code based on whether or not tcltk is
     available.

The pkgDepTools package takes this approach in making optional
functionality from the RCurl package.  So that is a place to look.
Mostly this works great, but I'm fairly certain that once you start
trying to deal with S4 classes and methods in this way, things will
break down.

+ seth
Message-ID: <m2y7ofinh1.fsf@fhcrc.org>
In-Reply-To: <bb9caf670701060945y7ae83b2fg74065b774f553fab@mail.gmail.com> (Oliver Bembom's message of "Sat, 6 Jan 2007 09:45:50 -0800")