I am following this tutorial and would like to use and view the source code of a function that is not exported. But it failed.
The name of this unexported function is diag(), which exists in the coxme package.
When I type coxme::diag() in Console, I can find that the function diag() does exist.
> coxme::diag()
Error: 'diag' is not an exported object from 'namespace:coxme'
But when I type coxme:::diag(), I can't find this function. I don't know why. In this tutorial, the author successfully to find the function by typing usethis:::base_and_recommended().
> coxme:::diag
Error: object 'diag' not found
diagmakes sense for a mixed effects result?coxme::diag()error doesn't tell you that the function exists incoxme: you'll get the same error withcoxme::functionthatdoesntexist. If you searchdiagin coxme source, you'll see it'sbase::diag