Learn R Programming

⚠️There's a newer version (0.1.4) of this package.Take me there.

folderfun: Manage disks with R folder functions

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

Copy Link

Version

Install

install.packages('folderfun')

Monthly Downloads

25

Version

0.1.2

License

BSD_2_clause + file LICENSE

Maintainer

Nathan Sheffield

Last Published

June 12th, 2019

Functions in folderfun (0.1.2)

listff

Display of project environment variables
setff

Creator of function to reference project path.
folderfun

Manages folder functions
optOrEnvVar

Retrieval of value associated with a name