knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

librely: Meta analysis of R scripts

The librely package is designed to provide a meta analysis of R scripts to aid in the workflow for a data science or software development project. The functionalities in this package interpret scripts to compile library/module dependencies, document specific functions imported in the script and measure the length of the script by the number of lines and characters.

The user can use LibRely to better understand the packages used in a script authored by someone else. Alternatively, a user can take advantage of the functionalities when preparing the ReadMe documentation in their project. The following functions are included in the LibRely package.

librely functions

To conduct the meta analysis of your R script the package includes the following three functions:

Demonstration

library(librely)

lib_search("../tests/testthat/file/script_for_test1.R")

lib_count("../tests/testthat/file/script_for_test1.R")

lib_lines("../tests/testthat/file/script_for_test1.R")


UBC-MDS/LibRely-R- documentation built on May 7, 2019, 7:14 p.m.