0

I'm learning R, and I can't figure out why sometimes I get "error: could not find function" even after I've installed the package containing that function.

But then it works if I use package::function()

Can someone please explain the difference? Thank you

Lee88
  • 1,185
  • 3
  • 15
  • 27
  • 1
    You probably forgotten to load the package using `library`. Usually you will use `package::function` when two packages have functions with the same name or when you want to avoid loading a package just for a single function. – David Arenburg Jun 29 '16 at 19:35
  • Possible dupe: [Is it a good practice to call functions in a package via ::](http://stackoverflow.com/q/23232791/903061) – Gregor Thomas Jun 29 '16 at 19:36
  • @DavidArenburg d'oh yes of course... thank you... a little embarrassed right now .... – Lee88 Jun 29 '16 at 19:44

0 Answers0