How to tell what packages you have used in R

前端 未结 6 1356
闹比i
闹比i 2020-12-29 04:35

I have a very long R script with many if statements and exception cases. As i\'ve been going, if been importing and testing libraries as I\'ve gone and haven\'t really docum

6条回答
  •  攒了一身酷
    2020-12-29 05:14

    I found the list.functions.in.file() function from NCmisc (install.packages("NCmisc")) quite helpful for this:

    list.functions.in.file(filename, alphabetic = TRUE)

    For more info see this link: https://rdrr.io/cran/NCmisc/man/list.functions.in.file.html

提交回复
热议问题