I am trying to find the number of functions in each installed R package, specifically package ggplot2
, dplyr
, MASS
, ISwR
, babynames
. However, the last two packages mentioned shows 0 as output when I try to run the below code.
I have tried this in R studio
NROW(lsf.str("package:MASS"))
NROW(lsf.str("package:ggplot2"))
NROW(lsf.str("package:dplyr"))
NROW(lsf.str("package:ISwR"))
NROW(lsf.str("package:babynames"))
I just want to know if a package can exist without any functions in it.