Source code of some packages can be accessed by loading package, putting cursor on the package name and pressing F2. For example:
library(ltm)
Yields the following (only first 5 lines of source code are shown below):
function (formula, constraint = NULL, IRT.param, start.val = NULL,
na.action = NULL, control = list())
{
cl <- match.call()
tm <- terms(formula)
I am trying to view source code of package called psych
library(psych)
But all I see is the following
1 function ()
2 {
3 }
Any idea why source code is not shown and how to find it? Thanks