Attaching a temporary namespace to the search path

后端 未结 1 1759
青春惊慌失措
青春惊慌失措 2021-01-21 03:27

This question is sort of a follow up to this post as I\'m still not fully convinced that, with respect to code robustness, it wouldn\'t be far better to make typing namesp

1条回答
  •  不思量自难忘°
    2021-01-21 03:32

    There is something wrong in your motivation: your namespace does NOT have to be attached to the search path in order to use the '::' notation, it is actually the opposite.

    The search path allows symbols to be picked by looking at all namespaces attached to the search path.

    So, as Hadley told you, you just have to use devtools::load_all(), that's all...

    0 讨论(0)
提交回复
热议问题