README.md

floutil

Collection of commonly used helper functions for project management: Initialize, distribute and some helper function.

Installation

install.packages("devtools") # if not already installed
devtools::install_github("nx10/r-floutil")

Usage

This package is not intended to be included in a project using library(...). It is best called directly with floutil::some_function().

Initialize project

floutil::init()

Initialize project directory with default folders, scripts and .gitignore file.

Build + distribute project

floutil::build()

Pack relevant files in a timestamped zip archive for distribution. Ignores user specific files like .Rproj and .Rhistory.

Compare ID columns in different datasets

floutil::matchinfo(idcol1, idcol2)

Finds and displays duplicate IDs as well as IDs missing in either column.

Static analysis

These functions will work recursively on source("other_script.R").

List used packages

floutil::report_dependencies("script.R")

List duplicate functions

(make sure to check scoping manually)

floutil::detect_duplicate_functions("script.R")

List unused functions

(make sure to check scoping and functions as parameters (appy etc.) manually)

floutil::detect_unused_functions("script.R")


nx10/r-floutil documentation built on Oct. 23, 2020, 2:37 a.m.