Collection of commonly used helper functions for project management: Initialize, distribute and some helper function.
install.packages("devtools") # if not already installed
devtools::install_github("nx10/r-floutil")
This package is not intended to be included in a project using library(...)
. It is best called directly with floutil::some_function()
.
floutil::init()
Initialize project directory with default folders, scripts and .gitignore file.
floutil::build()
Pack relevant files in a timestamped zip archive for distribution. Ignores user specific files like .Rproj
and .Rhistory
.
floutil::matchinfo(idcol1, idcol2)
Finds and displays duplicate IDs as well as IDs missing in either column.
These functions will work recursively on source("other_script.R")
.
floutil::report_dependencies("script.R")
(make sure to check scoping manually)
floutil::detect_duplicate_functions("script.R")
(make sure to check scoping and functions as parameters (appy etc.) manually)
floutil::detect_unused_functions("script.R")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.