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!)
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!)
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.