2

I'm trying to use the function isdigit but R can't find it, even after I installed the qmrparser package and submitted the code library(qmrparser).

(I'm brand new to R so please explain like I'm 5!)

Tyler Rinker
  • 108,132
  • 65
  • 322
  • 519
Kristin
  • 19
  • 1
  • 2

1 Answers1

3

Try

 library(qmrparser)

to load / attach the package. Failing that, try

 qmrparser::isdigit()

to call it up explicitly using the :: operator along with the package name.

You can have thousands of packages installed, so installed does not automate loading (though you can arrange for that, but that is a different topic).

Edit: And if the function is not accessible even after loading try the 'triple-:' operator to access non-exported sysmbols:

 qmrparser:::isdigit()

Edit 2: Your premise was wrong as the function is called isDigit with a capital-D. So you have to type

 isDigit()

which will get you the function as it is exported via NAMESPACE.

Dirk Eddelbuettel
  • 360,940
  • 56
  • 644
  • 725