Skip to content
Prev 117259 / 398498 Next

locked environment and inheritance

johan Faux <johanfaux at yahoo.com> writes:
You can also do:

  importClassesFrom(Matrix, Matrix, dMatrix)
^^^^^^^

I would not call library for such a case.  If you are importing
library in your package's namespace, then you probably want the
following in your DESCRIPTION file:

   Depends: Matrix, methods
   Imports: Matrix

[yes, there is a lot of duplication in how things are specified]
Again, the call to library should not be needed.
How do you intend to use such a class?  Is the real issue that you
don't want to depend on Matrix and only use it if it is available?
I think that might be possible, but that doesn't make it a good idea :-)
It might help to understand what your are trying to achieve overall.
Perhaps there are other approaches...

Also, at this point, the discussion is more appropriate for R-devel.
Perhaps you can move the conversation there?

Best,

+ seth