'.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 '.'?
Why .Diag and .asSparse are not accessible in R sessions?
4 messages · Peng Yu, Baptiste Auguie, Charlie Sharpsteen
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>:
'.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 '.'?
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
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:
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>:
'.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 '.'?
Peng Yu wrote:
How to control what functions/classes are exported to a given namespace?
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
View this message in context: http://n4.nabble.com/Why-Diag-and-asSparse-are-not-accessible-in-R-sessions-tp930880p930936.html Sent from the R help mailing list archive at Nabble.com.