Skip to content

Why .Diag and .asSparse are not accessible in R sessions?

4 messages · Peng Yu, Baptiste Auguie, Charlie Sharpsteen

#
'.Diag' and '.asSparse' are defined in contrast.R. I'm wondering why I
don't see them in my R session. Is it because that they start with
'.'?
#
Hi,

They're not exported from the stats namespace,

stats:::.Diag
stats:::.asSparse

?":::"

HTH,

baptiste

2009/11/29 Peng Yu <pengyu.ut at gmail.com>:
#
How to control what functions/classes are exported to a given namespace?

On Sun, Nov 29, 2009 at 3:34 PM, baptiste auguie
<baptiste.auguie at googlemail.com> wrote:
#
Peng Yu wrote:
Namespace exports are set by package authors in the NAMESPACE file of an R
package.  You could alter the  NAMESPACE and rebuild the package yourself,
but an easier way would be to just use the ":::" operator to access the
functions you require.


-Charlie