nschiett / fishproject

Set up a standardised R project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fishproject

Travis build status

The goal of fishproject is to create a general structure for your R project. It is called fishproject because I like fish, but it does not have anything to do wih fish.

Installation

You can install the released version of fishproject from github.

devtools::install_github("nschiett/fishproject")

Example

library(fishproject)
## basic example code
create_project()

Creates a structure like this:

myproject.Rproj
|___data/
|
|___R/
|   |___packages.R
|   |___functions.R
|   |___plan.R
|
|___text/
|
|___output/
|   |___plots/
|   |___data/
|   |___text/
|
|___make.R
|
|___README.Rmd
library(fishproject)
## basic example code
create_project(text = FALSE, drake = FALSE,
               rfiles = c("1_load", "2_wrangle", "3_analyze"))

Creates a structure like this:

myproject.Rproj
|___data/
|
|___R/
|   |___1_load.R
|   |___2_wrangle.R
|   |___3_analyze.R
|
|___output/
|   |___plots/
|   |___data/
|
|___README.Rmd

About

Set up a standardised R project

License:Other


Languages

Language:R 100.0%