# function to list all the objects loaded by the specified package
lsp <- function(pkg) {
cmd <- paste('ls(package:',pkg,')')
evalr(cmd)
}
lsp('regtools')
# outputs
# [1] "clusterApply" "clusterApplyLB" "clusterCall"
# [4] "clusterEvalQ" "clusterExport" "clusterMap"
# ...
Run the code above in your browser using DataLab