Rev 42961 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/base/man/ns-dblcolon.Rd% Part of the R package, http://www.R-project.org% Copyright 1995-2007 R Core Development Team% Distributed under GPL 2 or later\name{ns-dblcolon}\title{Double Colon and Triple Colon Operators}\alias{::}\alias{:::}\description{Accessing exported and internal variables in a name space.}\usage{pkg::namepkg:::name}\arguments{\item{pkg}{package name symbol or literal character string.}\item{name}{variable name symbol or literal character string.}}\details{The expression \code{pkg::name} returns the value of the exportedvariable \code{name} in package \code{pkg} if the package has a namespace. The expression \code{pkg:::name} returns the value of theinternal variable \code{name} in package \code{pkg} if the package hasa name space. The package will be loaded if it was not loaded alreadybefore the call. Assignment into name spaces is not supported.Note that it is typically a design mistake to use \code{:::}in your code since the corresponding object has probably been keptnamespace-internal for a good reason. Consider contacting the packagemaintainer if you feel the need to access the object for anything butmere inspection.If the package \code{pkg} does not have a name space but is on thesearch path then \code{pkg::name} returns the value of \code{name} inthe package environment.}\seealso{\code{\link{get}} to access an object masked by another of the same name.}\examples{base::logbase::"+"## Beware -- use ':::' at your own risk! (see "Details")stats:::coef.default}\keyword{programming}