美文网首页
R Tips: ":::" "::"

R Tips: ":::" "::"

作者: Thinkando | 来源:发表于2020-03-28 15:33 被阅读0次

    For a package pkg, pkg::name returns the value of the exported variable name in namespace pkg, whereas pkg:::name returns the value of the internal variable name. The package namespace will be loaded if it was not loaded before the call, but the package will not be attached to the search path.

    Specifying a variable or package that does not exist is an error.

    Note that pkg::name does not access the objects in the environment package:pkg (which does not exist until the package's namespace is attached): the latter may contain objects not exported from the namespace. It can access datasets made available by lazy-loading.

    • 一句话两个冒号的函数是供你调用的,三个冒号的函数是供两个冒号的函数调用的。

    相关文章

      网友评论

          本文标题:R Tips: ":::" "::"

          本文链接:https://www.haomeiwen.com/subject/uixsuhtx.html