Creates and Manages Folder Functions for Portable Large-Scale R Analysis

If you find yourself working on multiple different projects in R, you'll want a series of folders pointing to raw data, processed data, plot results, intermediate table outputs, etc. This package makes it easier to do that by providing a quick and easy way to create and use functions for project-level directories.


Build Status

If you find yourself working on multiple different projects in R, you'll want to sort your input data and output results into folders containing raw data, processed data, plot results, intermediate table outputs, etc. This package makes it easier to do that by providing a quick and easy way to create and use functions for any directories, so you don't have to deal with annoying hard-coded absolute paths.

Go from this:

d = read.table("/long/and/annoying/path/to/hard/coded/file/data.txt")

to this:

d = read.table(ffIn("data.txt"))

Installing

devtools::install_github("databio/folderfun")

Quick start

See the vignettes for more information: http://code.databio.org/folderfun

News

folderfun [0.1.1] -- 2019-02-28

Fixed a few issues with double-slashes that could get added or reported.

folderfun [0.1] -- 2019-02-27

  • Packaged for CRAN
  • optOrEnvVar first looks up a name's value first as a option, then as an environment variable if the option value is unset or empty (string or vector).
  • setff invocation can take several forms, and more extensive variable search can be performed; name for accessor function can be interpreted as name to lookup exactly, as uppercase, or as lowercase according to optOrEnvVar.
  • Primary "value" argument to setff is now called path rather than location.

folderfun [0.0.1] -- 2018-12-11

This is the initial package release.

  • setff function establishes a variable accessor function.
  • listff function lists available variable accessor functions.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("folderfun")

0.1.2 by Nathan C. Sheffield, a month ago


http://code.databio.org/folderfun


Report a bug at http://github.com/databio/folderfun


Browse source code at https://github.com/cran/folderfun


Authors: Nathan C. Sheffield [aut, cre] , Michal Stolarczyk [ctb] , Vince Reuter [ctb]


Documentation:   PDF Manual  


BSD_2_clause + file LICENSE license


Suggests knitr, testthat


See at CRAN